[03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]accept exits with 7 [03:27:17]New connection [03:27:17]New thread 3066989924 created [03:27:17]Thread 3067133284 joined [03:27:17]Waiting for new connection... [03:27:17] Sock 7.Parse request [03:27:17]Sock 7.Check first char [03:27:17]Sock 7.First char is OK [03:27:17]request: POST /json_proto HTTP/1.0 [03:27:17]Method: POST [03:27:17]URL: /json_proto [03:27:17]Method is POST - this is cgi request [03:27:17]url: /json_proto [03:27:17]query_string will be loaded in cgi processing [03:27:17]execute_cgi json_proto POST (null) [03:27:17]execute_cgi path=json_proto method=POST [03:27:17]POST find Content-Length [03:27:17]Host: 172.17.39.195:8080 [03:27:17]Content-Length: 617 [03:27:17]Content-Type: application/json [03:27:17] [03:27:17]POST finish read [03:27:17]Found Content-Length = 617 [03:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220728", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:27:17]execute_script... [03:27: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 : (3)220728", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:27:17]POST & json_proto [03:27:17]process_json_proto [03:27:17]json parsed OK: [03:27:17]protocol is kg_v1.0 [03:27:17]action value=close_receipt [03:27:17]process_action close_receipt [03:27:17]cmd_close_receipt [03:27:17]MH_GetDate [03:27:17]Write to MH i2c: F0 00 00 A0 04 93 [03:27:17]Write i2c OK [03:27:17]MH_I2C_Read... [03:27:17]Read from MH i2c: F0 [03:27:17]MH_I2C_Read... [03:27:17]Read from MH i2c: F0 09 00 [03:27:17]MH_I2C_Read... [03:27:17]Read from MH i2c: F0 09 00 A0 04 00 96 A1 73 66 99 81 91 64 BB [03:27:17]GetLastDocTimeStamp 1718849444 [03:27:17]current date 1718854038 [03:27:17]FM_GetShiftState [03:27:17]SAM_PROTO_GetShiftState [03:27:17]wFMCommunicate request_size=4 [03:27:17]MH_SAM_APDU [03:27:17]CAPDU: 80 13 01 00 [03:27:17]Write to MH i2c: E2 08 00 A1 04 80 13 01 00 00 00 00 00 22 [03:27:17]Write i2c OK [03:27:17]MH_I2C_Read... [03:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:27:17]Read from MH i2c: E2 [03:27:17]MH_I2C_Read... [03:27:17]Read from MH i2c: E2 0E 00 [03:27:17]MH_I2C_Read... [03:27:17]Read from MH i2c: E2 0E 00 A1 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 FE [03:27:17]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [03:27:17]wFMCommunicate OK [03:27:17]SAM_PROTO_GetShiftState done [03:27:17]FM_GetShiftState done [03:27:17]opened in 1718843774 [03:27:17]opened+sec_in_day 1718930174 [03:27:17]quantity*price = 29000 [03:27:17]sum+1 = 29001 [03:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 20 20.06.2024 03:27 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76579 ФПД: 215253960662182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T032718&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76579&fm=215253960662182&tin=02508201610067®Number=0000000000095696&sum=29000 0 [03:27:18]StoreToDocumentArchive [03:27:18]shift 393 fd 76579 [03:27:18]save to /storage/0393/doc_00076579 [03:27:18]save last doc name /storage/0393/doc_00076579 to /storage/kkm_last_doc_name [03:27:18]save OK [03:27:18]Clear old archive folders... [03:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=265 [03:27:18]tlvbuf is 00DC7CC0 [03:27:18]SAM_PROTO_ClearQueue [03:27:18]wFMCommunicate request_size=4 [03:27:18]MH_SAM_APDU [03:27:18]CAPDU: 80 09 00 00 [03:27:18]Write to MH i2c: E2 08 00 AE 04 80 09 00 00 00 00 00 00 24 [03:27:18]Write i2c OK [03:27:18]MH_I2C_Read... [03:27:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:27:18]Read from MH i2c: E2 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [03:27:18]RAPDU: 90 00 [03:27:18]wFMCommunicate OK [03:27:18]SAM_PROTO_ClearQueue done [03:27:18]KKMCreateOFDPacket [03:27:18]OFDProtocolAddRootSTLVToBuf [03:27:18]FM_MakeSignedData [03:27:18]FM_MakeSignedData [03:27:18]SAM_PROTO_SignData [03:27:18]wFMCommunicate request_size=4 [03:27:18]MH_SAM_APDU [03:27:18]CAPDU: 80 0D 01 02 [03:27:18]Write to MH i2c: E2 08 00 AF 04 80 0D 01 02 00 00 00 00 2C [03:27:18]Write i2c OK [03:27:18]MH_I2C_Read... [03:27:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:27:18]Read from MH i2c: E2 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [03:27:18]RAPDU: 90 00 [03:27:18]wFMCommunicate OK [03:27:18]wFMCommunicate request_size=255 [03:27:18]MH_SAM_APDU [03:27:18]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 A1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 [03:27:18]Write to MH i2c: E2 02 01 B0 04 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 A1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 00 00 B5 [03:27:18]Write i2c OK [03:27:18]MH_I2C_Read... [03:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:27:18]Read from MH i2c: E2 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [03:27:18]RAPDU: 90 00 [03:27:18]wFMCommunicate OK [03:27:18]wFMCommunicate request_size=24 [03:27:18]MH_SAM_APDU [03:27:18]CAPDU: 80 0D 02 02 13 39 10 04 04 00 23 2B 01 00 35 04 06 00 C3 C5 B7 DC 9C A6 [03:27:18]Write to MH i2c: E2 1B 00 B1 04 80 0D 02 02 13 00 39 10 04 04 00 23 2B 01 00 35 04 06 00 C3 C5 B7 DC 9C A6 00 00 91 [03:27:18]Write i2c OK [03:27:18]MH_I2C_Read... [03:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:27:18]Read from MH i2c: E2 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [03:27:18]RAPDU: 90 00 [03:27:18]wFMCommunicate OK [03:27:18]wFMCommunicate request_size=4 [03:27:18]MH_SAM_APDU [03:27:18]CAPDU: 80 0D 03 02 [03:27:18]Write to MH i2c: E2 08 00 B2 04 80 0D 03 02 00 00 00 00 31 [03:27:18]Write i2c OK [03:27:18]MH_I2C_Read... [03:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:27:18]Read from MH i2c: E2 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 0B 00 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 0B 00 B2 04 00 8A 34 55 80 60 D1 90 7F 90 00 05 [03:27:18]RAPDU: 8A 34 55 80 60 D1 90 7F 90 00 [03:27:18]wFMCommunicate OK [03:27:18]SAM_PROTO_SignData done [03:27:18]FM_MakeSignedData done [03:27:18]CreateOFDProtocolMessage [03:27:18]wFMCommunicate request_size=4 [03:27:18]MH_SAM_APDU [03:27:18]CAPDU: 80 11 00 00 [03:27:18]Write to MH i2c: E2 08 00 B3 04 80 11 00 00 00 00 00 00 31 [03:27:18]Write i2c OK [03:27:18]MH_I2C_Read... [03:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:27:18]Read from MH i2c: E2 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 17 00 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: E2 17 00 B3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 81 [03:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:27:18]wFMCommunicate OK [03:27:18]CreateOFDProtocolMessage done [03:27:18]OFDSenderStorePacket 76579 [03:27:18]StoreOFDPacket docnum=76579 [03:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1D 01 00 00 4A 1C 15 01 9B 1E 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 A1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2B 01 00 35 04 06 00 C3 C5 B7 DC 9C A6 8A 34 55 80 60 D1 90 7F [03:27:18]CheckFolder [03:27:18]dirname=/storage/ofd_packets [03:27:18]CheckFolder done [03:27:18]ProducePacketName [03:27:18]name=ofd_packets/00076579 [03:27:18]NVStorageSaveData ofd_packets/00076579 [03:27:18]File name is /storage/ofd_packets/00076579 [03:27:18]Write 315 bytes [03:27:18]NVStorageSaveData done [03:27:18]OFDSenderStorePacket done [03:27:18]KKMCreateOFDPacket done [03:27:18]NVStorageSaveData kkm_last_timestamp [03:27:18]File name is /storage/kkm_last_timestamp [03:27:18]Write 4 bytes [03:27:18]NVStorageSaveData done [03:27:18]ExternCall_PrintAddStr [03:27:18]wPrintStart [03:27:18]Write to MH i2c: 01 00 00 B4 04 B8 [03:27:18]Write i2c OK [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: 01 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: 01 07 00 [03:27:18]MH_I2C_Read... [03:27:18]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [03:27:18]RasterBufferAndPrint [03:27:18]line Счет N : (3)220728 [03:27:18]line ИНН: 02508201610067 [03:27:18]line Контрольно-Кассовый Чек [03:27:18]line ПРОДАЖА [03:27:18]line Товар: 4700001610012 [03:27:18]line Пиво Арпа 0,5л [03:27:18]line 2.000 * 145.00 [03:27:18]line = 290.00 [03:27:18]line НДС 12% НСП 1% [03:27:18]line > о реализуемом товаре [03:27:18]line ИТОГО: 290.00 [03:27:18]line НСП 1% : 2.57 [03:27:18]line НДС 12% : 30.80 [03:27:18]line Наличными: 290.00 [03:27:18]line Безнал.: 0.00 [03:27:18]line Место: АЗС № 144 "Партнер Нефть" [03:27:18]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [03:27:18]line СНО: Общий режим [03:27:18]line Чек 20 20.06.2024 03:27 [03:27:18]line Смена: 393 ФФД: 1.0 [03:27:18]line ЗНМ: 0300000170 [03:27:18]line РНМ: 0000000000095696 [03:27:18]line Версия ККМ: 001 [03:27:18]line ФМ: 0000000000875009 [03:27:18]line ФД: 76579 [03:27:18]line ФПД: 215253960662182 [03:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T032718&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76579&fm=215253960662182&tin=02508201610067®Number=0000000000095696&sum=29000 [03:27:19]OFD Sender: Processing packet 76579 [packets to send 351, broken 350] [03:27:19]ProducePacketName [03:27:19]name=ofd_packets/00076579 [03:27:19]OFD Sender: To server: pG, [03:27:19]CommunicateWithHost lk.salyk.kg:30040 [03:27:19]ConnectInit lk.salyk.kg [03:27:19]line 0 [03:27:19]written 0, free lines is 4095 [03:27:19]Connected sock=9 [03:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1D 01 00 00 4A 1C 15 01 9B 1E 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 A1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2B 01 00 35 04 06 00 C3 C5 B7 DC 9C A6 8A 34 55 80 60 D1 90 7F [03:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A0 96 47 00 4B 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2B 01 00 F4 03 04 00 38 48 73 66 B6 04 01 00 00 4A 9E AB 2A 09 0D 2D 9E [03:27:19]CommunicateWithHost err = 0 [03:27:19]CheckOFDResponse [03:27:19]1017 (14) - 77093643461234 [03:27:19]1041 (16) - 0000000000875009 [03:27:19]1040 (4) - 76579 [03:27:19]1012 (4) - 19.06.2024 21:06 [03:27:19]1206 (1) - 0 [03:27:19]OFD Sender: Remove packet 76579 [03:27:19]ProducePacketName [03:27:19]name=ofd_packets/00076579 [03:27:19]NVStorageDeleteData [03:27:19]Write to MH i2c: 01 00 00 DC 04 E0 [03:27:19]Write i2c OK [03:27:19]MH_I2C_Read... [03:27:19]Read from MH i2c: 01 [03:27:19]MH_I2C_Read... [03:27:19]Read from MH i2c: 01 07 00 [03:27:19]MH_I2C_Read... [03:27:19]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 10 0D 04 [03:27:19]RasterBufferAndPrint [03:27:19]line [03:27:19]line [03:27:19]line [03:27:19]line [03:27:19]line [03:27:19]written 0, free lines is 3350 [03:27:19]MH_Cut [03:27:19]Write to MH i2c: D1 01 00 E3 04 01 B9 [03:27:19]Write i2c OK [03:27:19]MH_I2C_Read... [03:27:19]Read from MH i2c: D1 [03:27:19]MH_I2C_Read... [03:27:19]Read from MH i2c: D1 01 00 [03:27:19]MH_I2C_Read... [03:27:19]Read from MH i2c: D1 01 00 E3 04 00 B8 [03:27:19]Write to MH i2c: 01 00 00 E4 04 E8 [03:27:19]Write i2c OK [03:27:19]MH_I2C_Read... [03:27:19]OFD Sender: No OFD packet to send [03:27:20]*** Cut start [03:27:20]*** Partial cut [03:27:20]*** CUTSNS_PIN = 1 [03:27:20]*** CUTSNS_PIN = 0 [03:27:20]*** Brake cut motor [03:27:20]Read from MH i2c: 01 [03:27:20]MH_I2C_Read... [03:27:20]*** Stop cut motor [03:27:20]*** Cut end [03:27:20]Read from MH i2c: 01 07 00 [03:27:20]MH_I2C_Read... [03:27:20]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [03:27:20]process_action close_receipt done [03:27:20]requested_data is exist [03:27:20]produce_requested_data [03:27:20]requested_item fm.sn is exist - process it [03:27:20]wFMCommunicate request_size=4 [03:27:20]MH_SAM_APDU [03:27:20]CAPDU: 80 11 00 00 [03:27:20]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [03:27:20]Write i2c OK [03:27:20]MH_I2C_Read... [03:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:27:20]Read from MH i2c: E2 [03:27:20]MH_I2C_Read... [03:27:20]Read from MH i2c: E2 17 00 [03:27:20]MH_I2C_Read... [03:27:20]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B3 [03:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:27:20]wFMCommunicate OK [03:27:20]requested_item fd.num is exist - process it [03:27:20]SAM_PROTO_GetFieldsCounters [03:27:20]wFMCommunicate request_size=4 [03:27:20]MH_SAM_APDU [03:27:20]CAPDU: 80 13 00 00 [03:27:20]Write to MH i2c: E2 08 00 E6 04 80 13 00 00 00 00 00 00 66 [03:27:20]Write i2c OK [03:27:20]MH_I2C_Read... [03:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:27:21]Read from MH i2c: E2 [03:27:21]MH_I2C_Read... [03:27:21]Read from MH i2c: E2 62 00 [03:27:21]MH_I2C_Read... [03:27:21]Read from MH i2c: E2 62 00 E6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 23 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [03:27:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 23 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:27:21]wFMCommunicate OK [03:27:21]SAM_PROTO_GetFieldsCounters done [03:27:21]requested_item shift.num is exist - process it [03:27:21]requested_item shift.opened is exist - process it [03:27:21]req_shift_opened [03:27:21]FM_GetShiftState [03:27:21]SAM_PROTO_GetShiftState [03:27:21]wFMCommunicate request_size=4 [03:27:21]MH_SAM_APDU [03:27:21]CAPDU: 80 13 01 00 [03:27:21]Write to MH i2c: E2 08 00 E7 04 80 13 01 00 00 00 00 00 68 [03:27:21]Write i2c OK [03:27:21]MH_I2C_Read... [03:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:27:21]Read from MH i2c: E2 [03:27:21]MH_I2C_Read... [03:27:21]Read from MH i2c: E2 0E 00 [03:27:21]MH_I2C_Read... [03:27:21]Read from MH i2c: E2 0E 00 E7 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 44 [03:27:21]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [03:27:21]wFMCommunicate OK [03:27:21]SAM_PROTO_GetShiftState done [03:27:21]FM_GetShiftState done [03:27:21]req_shift_opened done [03:27:21]requested_item shift.open_date is exist - process it [03:27:21]req_shift_open_date [03:27:21]req_shift_open_date done [03:27:21]produce_requested_data done [03:27:21]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76579,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [03:27:21]process_action_free close_receipt [03:27:21]json_value_free [03:27:21]json_value_free done [03:27:21]process_json_proto returns [03:27:21]Send response to host [03:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76579,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [03:27:21]free response buf [03:27:21]execute_script done [03:27:21]execute_script returns [03:27:21]free content buf [03:27:21]Sock 7.Close socket [03:27:21]Sock 7.Thread stoped [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]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:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:27]accept exits with 10 [03:40:27]New connection [03:40:27]New thread 3067133284 created [03:40:27]Thread 3066989924 joined [03:40:27]Waiting for new connection... [03:40:27] Sock 10.Parse request [03:40:27]Sock 10.Check first char [03:40:27]Sock 10.First char is OK [03:40:27]request: POST /json_proto HTTP/1.0 [03:40:27]Method: POST [03:40:27]URL: /json_proto [03:40:27]Method is POST - this is cgi request [03:40:27]url: /json_proto [03:40:27]query_string will be loaded in cgi processing [03:40:27]execute_cgi json_proto POST (null) [03:40:27]execute_cgi path=json_proto method=POST [03:40:27]POST find Content-Length [03:40:27]Host: 172.17.39.195:8080 [03:40:27]Content-Length: 1243 [03:40:27]Content-Type: application/json [03:40:27] [03:40:27]POST finish read [03:40:27]Found Content-Length = 1243 [03:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220729", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 162.00, "quantity" : 2.000, "sum" : 324.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1084.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:27]execute_script... [03:40: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 : (3)220729", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 162.00, "quantity" : 2.000, "sum" : 324.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150929", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,7\u043B", "price" : 700.00, "quantity" : 1.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1084.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:27]POST & json_proto [03:40:27]process_json_proto [03:40:27]json parsed OK: [03:40:27]protocol is kg_v1.0 [03:40:27]action value=close_receipt [03:40:27]process_action close_receipt [03:40:27]cmd_close_receipt [03:40:27]MH_GetDate [03:40:27]Write to MH i2c: F0 00 00 E8 04 DB [03:40:27]Write i2c OK [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: F0 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: F0 09 00 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: F0 09 00 E8 04 00 AC A4 73 66 99 81 91 64 1C [03:40:27]GetLastDocTimeStamp 1718854038 [03:40:27]current date 1718854828 [03:40:27]FM_GetShiftState [03:40:27]SAM_PROTO_GetShiftState [03:40:27]wFMCommunicate request_size=4 [03:40:27]MH_SAM_APDU [03:40:27]CAPDU: 80 13 01 00 [03:40:27]Write to MH i2c: E2 08 00 E9 04 80 13 01 00 00 00 00 00 6A [03:40:27]Write i2c OK [03:40:27]MH_I2C_Read... [03:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:27]Read from MH i2c: E2 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 0E 00 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 0E 00 E9 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 46 [03:40:27]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [03:40:27]wFMCommunicate OK [03:40:27]SAM_PROTO_GetShiftState done [03:40:27]FM_GetShiftState done [03:40:27]opened in 1718843774 [03:40:27]opened+sec_in_day 1718930174 [03:40:27]quantity*price = 32400 [03:40:27]sum+1 = 32401 [03:40:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003150929 Новая Водка Organic 40% 0,7л 1.000 * 700.00 = 700.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1084.00 НСП 1% : 9.59 НДС 12% : 115.12 Наличными: 1084.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 21 20.06.2024 03:40 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76580 ФПД: 104860560362503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T034028&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76580&fm=104860560362503&tin=02508201610067®Number=0000000000095696&sum=108400 0 [03:40:28]StoreToDocumentArchive [03:40:28]shift 393 fd 76580 [03:40:28]save to /storage/0393/doc_00076580 [03:40:28]save last doc name /storage/0393/doc_00076580 to /storage/kkm_last_doc_name [03:40:28]save OK [03:40:28]Clear old archive folders... [03:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=516 [03:40:28]tlvbuf is 00DEAE10 [03:40:28]SAM_PROTO_ClearQueue [03:40:28]wFMCommunicate request_size=4 [03:40:28]MH_SAM_APDU [03:40:28]CAPDU: 80 09 00 00 [03:40:28]Write to MH i2c: E2 08 00 F6 04 80 09 00 00 00 00 00 00 6C [03:40:28]Write i2c OK [03:40:28]MH_I2C_Read... [03:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:40:28]Read from MH i2c: E2 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: E2 03 00 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [03:40:28]RAPDU: 90 00 [03:40:28]wFMCommunicate OK [03:40:28]SAM_PROTO_ClearQueue done [03:40:28]KKMCreateOFDPacket [03:40:28]OFDProtocolAddRootSTLVToBuf [03:40:28]FM_MakeSignedData [03:40:28]FM_MakeSignedData [03:40:28]SAM_PROTO_SignData [03:40:28]wFMCommunicate request_size=4 [03:40:28]MH_SAM_APDU [03:40:28]CAPDU: 80 0D 01 02 [03:40:28]Write to MH i2c: E2 08 00 F7 04 80 0D 01 02 00 00 00 00 74 [03:40:28]Write i2c OK [03:40:28]MH_I2C_Read... [03:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:40:28]Read from MH i2c: E2 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: E2 03 00 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [03:40:28]RAPDU: 90 00 [03:40:28]wFMCommunicate OK [03:40:28]wFMCommunicate request_size=255 [03:40:28]MH_SAM_APDU [03:40:28]CAPDU: 80 0D 02 02 FA 03 00 04 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 90 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 [03:40:28]Write to MH i2c: E2 02 01 F8 04 80 0D 02 02 FA 00 03 00 04 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 90 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 00 00 7E [03:40:28]Write i2c OK [03:40:28]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 03 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [03:40:29]RAPDU: 90 00 [03:40:29]wFMCommunicate OK [03:40:29]wFMCommunicate request_size=255 [03:40:29]MH_SAM_APDU [03:40:29]CAPDU: 80 0D 02 02 FA 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 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 A7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2C 00 00 00 00 07 04 06 00 70 A7 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 AC A4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [03:40:29]Write to MH i2c: E2 02 01 F9 04 80 0D 02 02 FA 00 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 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 A7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2C 00 00 00 00 07 04 06 00 70 A7 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 AC A4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 7C [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 03 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [03:40:29]RAPDU: 90 00 [03:40:29]wFMCommunicate OK [03:40:29]wFMCommunicate request_size=25 [03:40:29]MH_SAM_APDU [03:40:29]CAPDU: 80 0D 02 02 14 30 39 10 04 04 00 24 2B 01 00 35 04 06 00 5F 5E C0 73 8C 07 [03:40:29]Write to MH i2c: E2 1C 00 FA 04 80 0D 02 02 14 00 30 39 10 04 04 00 24 2B 01 00 35 04 06 00 5F 5E C0 73 8C 07 00 00 33 [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 03 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [03:40:29]RAPDU: 90 00 [03:40:29]wFMCommunicate OK [03:40:29]wFMCommunicate request_size=4 [03:40:29]MH_SAM_APDU [03:40:29]CAPDU: 80 0D 03 02 [03:40:29]Write to MH i2c: E2 08 00 FB 04 80 0D 03 02 00 00 00 00 7A [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 0B 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 0B 00 FB 04 00 41 D0 F2 8B F1 BD 08 38 90 00 F7 [03:40:29]RAPDU: 41 D0 F2 8B F1 BD 08 38 90 00 [03:40:29]wFMCommunicate OK [03:40:29]SAM_PROTO_SignData done [03:40:29]FM_MakeSignedData done [03:40:29]CreateOFDProtocolMessage [03:40:29]wFMCommunicate request_size=4 [03:40:29]MH_SAM_APDU [03:40:29]CAPDU: 80 11 00 00 [03:40:29]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 17 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CA [03:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:40:29]wFMCommunicate OK [03:40:29]CreateOFDProtocolMessage done [03:40:29]OFDSenderStorePacket 76580 [03:40:29]StoreOFDPacket docnum=76580 [03:40:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 18 02 00 00 A3 63 10 02 B5 04 5A 03 01 00 03 00 04 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 90 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 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 A7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2C 00 00 00 00 07 04 06 00 70 A7 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 AC A4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 24 2B 01 00 35 04 06 00 5F 5E C0 73 8C 07 41 D0 F2 8B F1 BD 08 38 [03:40:29]CheckFolder [03:40:29]dirname=/storage/ofd_packets [03:40:29]CheckFolder done [03:40:29]ProducePacketName [03:40:29]name=ofd_packets/00076580 [03:40:29]NVStorageSaveData ofd_packets/00076580 [03:40:29]File name is /storage/ofd_packets/00076580 [03:40:29]Write 566 bytes [03:40:29]NVStorageSaveData done [03:40:29]OFDSenderStorePacket done [03:40:29]KKMCreateOFDPacket done [03:40:29]NVStorageSaveData kkm_last_timestamp [03:40:29]File name is /storage/kkm_last_timestamp [03:40:29]Write 4 bytes [03:40:29]NVStorageSaveData done [03:40:29]ExternCall_PrintAddStr [03:40:29]wPrintStart [03:40:29]Write to MH i2c: 01 00 00 FD 04 01 [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: 01 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: 01 07 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 FF 0F 16 [03:40:29]RasterBufferAndPrint [03:40:29]line Счет N : (3)220729 [03:40:29]line ИНН: 02508201610067 [03:40:29]line Контрольно-Кассовый Чек [03:40:29]line ПРОДАЖА [03:40:29]line Товар: 4700000480517 [03:40:29]line Пиво Живое 1л ПЭТ [03:40:29]line 2.000 * 162.00 [03:40:29]line = 324.00 [03:40:29]line НДС 12% НСП 1% [03:40:29]line > о реализуемом товаре [03:40:29]line Товар: 4700000160792 [03:40:29]line Снек Курут классический (круглый) [03:40:29]line 1.000 * 60.00 [03:40:29]line = 60.00 [03:40:29]line НДС 12% НСП 1% [03:40:29]line > о реализуемом товаре [03:40:29]line Товар: 4700003150929 [03:40:29]line Новая Водка Organic 40% 0,7л [03:40:29]line 1.000 * 700.00 [03:40:29]line = 700.00 [03:40:29]line НДС 12% НСП 1% [03:40:29]line > о реализуемом товаре [03:40:29]line ИТОГО: 1084.00 [03:40:29]line НСП 1% : 9.59 [03:40:29]line НДС 12% : 115.12 [03:40:29]line Наличными: 1084.00 [03:40:29]line Безнал.: 0.00 [03:40:29]line Место: АЗС № 144 "Партнер Нефть" [03:40:29]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [03:40:29]line СНО: Общий режим [03:40:29]line Чек 21 20.06.2024 03:40 [03:40:29]line Смена: 393 ФФД: 1.0 [03:40:29]line ЗНМ: 0300000170 [03:40:29]line РНМ: 0000000000095696 [03:40:29]line Версия ККМ: 001 [03:40:29]line ФМ: 0000000000875009 [03:40:29]line ФД: 76580 [03:40:29]line ФПД: 104860560362503 [03:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T034028&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76580&fm=104860560362503&tin=02508201610067®Number=0000000000095696&sum=108400 [03:40:29]line 0 [03:40:29]OFD Sender: Processing packet 76580 [packets to send 351, broken 350] [03:40:29]ProducePacketName [03:40:29]name=ofd_packets/00076580 [03:40:29]OFD Sender: To server: pG, [03:40:29]CommunicateWithHost lk.salyk.kg:30040 [03:40:29]ConnectInit lk.salyk.kg [03:40:29]written 0, free lines is 4095 [03:40:29]Connected sock=9 [03:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 18 02 00 00 A3 63 10 02 B5 04 5A 03 01 00 03 00 04 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 90 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 32 39 06 04 27 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 11 01 00 00 00 13 04 06 00 70 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 A7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 2C 00 00 00 00 07 04 06 00 70 A7 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 AC A4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 24 2B 01 00 35 04 06 00 5F 5E C0 73 8C 07 41 D0 F2 8B F1 BD 08 38 [03:40:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B5 EA 47 00 D2 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 24 2B 01 00 F4 03 04 00 4F 4B 73 66 B6 04 01 00 00 3C 0C DE F8 94 F3 21 1B [03:40:30]CommunicateWithHost err = 0 [03:40:30]CheckOFDResponse [03:40:30]1017 (14) - 77093643461234 [03:40:30]1041 (16) - 0000000000875009 [03:40:30]1040 (4) - 76580 [03:40:30]1012 (4) - 19.06.2024 21:19 [03:40:30]1206 (1) - 0 [03:40:30]OFD Sender: Remove packet 76580 [03:40:30]ProducePacketName [03:40:30]name=ofd_packets/00076580 [03:40:30]NVStorageDeleteData [03:40:30]Write to MH i2c: 01 00 00 32 05 37 [03:40:30]Write i2c OK [03:40:30]MH_I2C_Read... [03:40:30]Read from MH i2c: 01 [03:40:30]MH_I2C_Read... [03:40:30]Read from MH i2c: 01 07 00 [03:40:30]MH_I2C_Read... [03:40:30]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 48 0C 92 [03:40:30]RasterBufferAndPrint [03:40:30]line [03:40:30]line [03:40:30]line [03:40:30]line [03:40:30]line [03:40:30]written 0, free lines is 3152 [03:40:30]MH_Cut [03:40:30]Write to MH i2c: D1 01 00 39 05 01 10 [03:40:30]Write i2c OK [03:40:30]MH_I2C_Read... [03:40:30]Read from MH i2c: D1 [03:40:30]MH_I2C_Read... [03:40:30]Read from MH i2c: D1 01 00 [03:40:30]MH_I2C_Read... [03:40:30]Read from MH i2c: D1 01 00 39 05 00 0F [03:40:30]Write to MH i2c: 01 00 00 3A 05 3F [03:40:30]Write i2c OK [03:40:30]MH_I2C_Read... [03:40:30]OFD Sender: No OFD packet to send [03:40:31]*** Cut start [03:40:31]*** Partial cut [03:40:31]*** CUTSNS_PIN = 1 [03:40:31]*** CUTSNS_PIN = 0 [03:40:31]*** Brake cut motor [03:40:31]Read from MH i2c: 01 [03:40:31]MH_I2C_Read... [03:40:31]*** Stop cut motor [03:40:31]*** Cut end [03:40:31]Read from MH i2c: 01 07 00 [03:40:31]MH_I2C_Read... [03:40:31]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [03:40:31]process_action close_receipt done [03:40:31]requested_data is exist [03:40:31]produce_requested_data [03:40:31]requested_item fm.sn is exist - process it [03:40:31]wFMCommunicate request_size=4 [03:40:31]MH_SAM_APDU [03:40:31]CAPDU: 80 11 00 00 [03:40:31]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [03:40:31]Write i2c OK [03:40:31]MH_I2C_Read... [03:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:31]Read from MH i2c: E2 [03:40:31]MH_I2C_Read... [03:40:31]Read from MH i2c: E2 17 00 [03:40:31]MH_I2C_Read... [03:40:31]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0A [03:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:40:31]wFMCommunicate OK [03:40:31]requested_item fd.num is exist - process it [03:40:31]SAM_PROTO_GetFieldsCounters [03:40:31]wFMCommunicate request_size=4 [03:40:31]MH_SAM_APDU [03:40:31]CAPDU: 80 13 00 00 [03:40:31]Write to MH i2c: E2 08 00 3C 05 80 13 00 00 00 00 00 00 BD [03:40:31]Write i2c OK [03:40:31]MH_I2C_Read... [03:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:40:32]Read from MH i2c: E2 [03:40:32]MH_I2C_Read... [03:40:32]Read from MH i2c: E2 62 00 [03:40:32]MH_I2C_Read... [03:40:32]Read from MH i2c: E2 62 00 3C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 24 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [03:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 24 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:40:32]wFMCommunicate OK [03:40:32]SAM_PROTO_GetFieldsCounters done [03:40:32]requested_item shift.num is exist - process it [03:40:32]requested_item shift.opened is exist - process it [03:40:32]req_shift_opened [03:40:32]FM_GetShiftState [03:40:32]SAM_PROTO_GetShiftState [03:40:32]wFMCommunicate request_size=4 [03:40:32]MH_SAM_APDU [03:40:32]CAPDU: 80 13 01 00 [03:40:32]Write to MH i2c: E2 08 00 3D 05 80 13 01 00 00 00 00 00 BF [03:40:32]Write i2c OK [03:40:32]MH_I2C_Read... [03:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:32]Read from MH i2c: E2 [03:40:32]MH_I2C_Read... [03:40:32]Read from MH i2c: E2 0E 00 [03:40:32]MH_I2C_Read... [03:40:32]Read from MH i2c: E2 0E 00 3D 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 9B [03:40:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [03:40:32]wFMCommunicate OK [03:40:32]SAM_PROTO_GetShiftState done [03:40:32]FM_GetShiftState done [03:40:32]req_shift_opened done [03:40:32]requested_item shift.open_date is exist - process it [03:40:32]req_shift_open_date [03:40:32]req_shift_open_date done [03:40:32]produce_requested_data done [03:40:32]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76580,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [03:40:32]process_action_free close_receipt [03:40:32]json_value_free [03:40:32]json_value_free done [03:40:32]process_json_proto returns [03:40:32]Send response to host [03:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76580,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [03:40:32]free response buf [03:40:32]execute_script done [03:40:32]execute_script returns [03:40:32]free content buf [03:40:32]Sock 10.Close socket [03:40:32]Sock 10.Thread stoped [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: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: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:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]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: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:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:50]accept exits with 7 [04:07:50]New connection [04:07:50]New thread 3066989924 created [04:07:50]Thread 3067133284 joined [04:07:50]Waiting for new connection... [04:07:50] Sock 7.Parse request [04:07:50]Sock 7.Check first char [04:07:50]Sock 7.First char is OK [04:07:50]request: POST /json_proto HTTP/1.0 [04:07:50]Method: POST [04:07:50]URL: /json_proto [04:07:50]Method is POST - this is cgi request [04:07:50]url: /json_proto [04:07:50]query_string will be loaded in cgi processing [04:07:50]execute_cgi json_proto POST (null) [04:07:50]execute_cgi path=json_proto method=POST [04:07:50]POST find Content-Length [04:07:50]Host: 172.17.39.195:8080 [04:07:50]Content-Length: 614 [04:07:50]Content-Type: application/json [04:07:50] [04:07:50]POST finish read [04:07:50]Found Content-Length = 614 [04:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220730", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:50]execute_script... [04:07:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220730", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:50]POST & json_proto [04:07:50]process_json_proto [04:07:50]json parsed OK: [04:07:50]protocol is kg_v1.0 [04:07:50]action value=close_receipt [04:07:50]process_action close_receipt [04:07:50]cmd_close_receipt [04:07:50]MH_GetDate [04:07:50]Write to MH i2c: F0 00 00 3E 05 32 [04:07:50]Write i2c OK [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: F0 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: F0 09 00 [04:07:50]MH_I2C_Read... [04:07:50]Read from MH i2c: F0 09 00 3E 05 00 18 AB 73 66 99 81 91 64 E6 [04:07:50]GetLastDocTimeStamp 1718854828 [04:07:50]current date 1718856472 [04:07:50]FM_GetShiftState [04:07:50]SAM_PROTO_GetShiftState [04:07:50]wFMCommunicate request_size=4 [04:07:50]MH_SAM_APDU [04:07:50]CAPDU: 80 13 01 00 [04:07:50]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [04:07:50]Write i2c OK [04:07:50]MH_I2C_Read... [04:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:51]Read from MH i2c: E2 [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: E2 0E 00 [04:07:51]MH_I2C_Read... [04:07:51]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 9D [04:07:51]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [04:07:51]wFMCommunicate OK [04:07:51]SAM_PROTO_GetShiftState done [04:07:51]FM_GetShiftState done [04:07:51]opened in 1718843774 [04:07:51]opened+sec_in_day 1718930174 [04:07:51]quantity*price = 11000 [04:07:51]sum+1 = 11001 [04:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 22 20.06.2024 04:07 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76581 ФПД: 11096934589820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T040752&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76581&fm=11096934589820&tin=02508201610067®Number=0000000000095696&sum=11000 0 [04:07:52]StoreToDocumentArchive [04:07:52]shift 393 fd 76581 [04:07:52]save to /storage/0393/doc_00076581 [04:07:52]save last doc name /storage/0393/doc_00076581 to /storage/kkm_last_doc_name [04:07:52]save OK [04:07:52]Clear old archive folders... [04:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=266 [04:07:52]tlvbuf is 00DE8670 [04:07:52]SAM_PROTO_ClearQueue [04:07:52]wFMCommunicate request_size=4 [04:07:52]MH_SAM_APDU [04:07:52]CAPDU: 80 09 00 00 [04:07:52]Write to MH i2c: E2 08 00 4C 05 80 09 00 00 00 00 00 00 C3 [04:07:52]Write i2c OK [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 [04:07:52]MH_I2C_Read... [04:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:07:52]Read from MH i2c: E2 03 00 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [04:07:52]RAPDU: 90 00 [04:07:52]wFMCommunicate OK [04:07:52]SAM_PROTO_ClearQueue done [04:07:52]KKMCreateOFDPacket [04:07:52]OFDProtocolAddRootSTLVToBuf [04:07:52]FM_MakeSignedData [04:07:52]FM_MakeSignedData [04:07:52]SAM_PROTO_SignData [04:07:52]wFMCommunicate request_size=4 [04:07:52]MH_SAM_APDU [04:07:52]CAPDU: 80 0D 01 02 [04:07:52]Write to MH i2c: E2 08 00 4D 05 80 0D 01 02 00 00 00 00 CB [04:07:52]Write i2c OK [04:07:52]MH_I2C_Read... [04:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:07:52]Read from MH i2c: E2 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 03 00 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [04:07:52]RAPDU: 90 00 [04:07:52]wFMCommunicate OK [04:07:52]wFMCommunicate request_size=255 [04:07:52]MH_SAM_APDU [04:07:52]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 18 AB 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [04:07:52]Write to MH i2c: E2 02 01 4E 05 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 18 AB 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 84 [04:07:52]Write i2c OK [04:07:52]MH_I2C_Read... [04:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:52]Read from MH i2c: E2 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 03 00 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [04:07:52]RAPDU: 90 00 [04:07:52]wFMCommunicate OK [04:07:52]wFMCommunicate request_size=25 [04:07:52]MH_SAM_APDU [04:07:52]CAPDU: 80 0D 02 02 14 30 39 10 04 04 00 25 2B 01 00 35 04 06 00 0A 17 B4 D8 25 7C [04:07:52]Write to MH i2c: E2 1C 00 4F 05 80 0D 02 02 14 00 30 39 10 04 04 00 25 2B 01 00 35 04 06 00 0A 17 B4 D8 25 7C 00 00 55 [04:07:52]Write i2c OK [04:07:52]MH_I2C_Read... [04:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:52]Read from MH i2c: E2 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 03 00 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [04:07:52]RAPDU: 90 00 [04:07:52]wFMCommunicate OK [04:07:52]wFMCommunicate request_size=4 [04:07:52]MH_SAM_APDU [04:07:52]CAPDU: 80 0D 03 02 [04:07:52]Write to MH i2c: E2 08 00 50 05 80 0D 03 02 00 00 00 00 D0 [04:07:52]Write i2c OK [04:07:52]MH_I2C_Read... [04:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:07:52]Read from MH i2c: E2 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 0B 00 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 0B 00 50 05 00 41 DF A3 B6 68 F0 BB 5F 90 00 BC [04:07:52]RAPDU: 41 DF A3 B6 68 F0 BB 5F 90 00 [04:07:52]wFMCommunicate OK [04:07:52]SAM_PROTO_SignData done [04:07:52]FM_MakeSignedData done [04:07:52]CreateOFDProtocolMessage [04:07:52]wFMCommunicate request_size=4 [04:07:52]MH_SAM_APDU [04:07:52]CAPDU: 80 11 00 00 [04:07:52]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [04:07:52]Write i2c OK [04:07:52]MH_I2C_Read... [04:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:52]Read from MH i2c: E2 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 17 00 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 20 [04:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:07:52]wFMCommunicate OK [04:07:52]CreateOFDProtocolMessage done [04:07:52]OFDSenderStorePacket 76581 [04:07:52]StoreOFDPacket docnum=76581 [04:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 19 86 16 01 62 2D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 18 AB 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2B 01 00 35 04 06 00 0A 17 B4 D8 25 7C 41 DF A3 B6 68 F0 BB 5F [04:07:52]CheckFolder [04:07:52]dirname=/storage/ofd_packets [04:07:52]CheckFolder done [04:07:52]ProducePacketName [04:07:52]name=ofd_packets/00076581 [04:07:52]NVStorageSaveData ofd_packets/00076581 [04:07:52]File name is /storage/ofd_packets/00076581 [04:07:52]Write 316 bytes [04:07:52]NVStorageSaveData done [04:07:52]OFDSenderStorePacket done [04:07:52]KKMCreateOFDPacket done [04:07:52]NVStorageSaveData kkm_last_timestamp [04:07:52]File name is /storage/kkm_last_timestamp [04:07:52]Write 4 bytes [04:07:52]NVStorageSaveData done [04:07:52]ExternCall_PrintAddStr [04:07:52]wPrintStart [04:07:52]Write to MH i2c: 01 00 00 52 05 57 [04:07:52]Write i2c OK [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: 01 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: 01 07 00 [04:07:52]MH_I2C_Read... [04:07:52]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [04:07:52]RasterBufferAndPrint [04:07:52]line Счет N : (3)220730 [04:07:52]line ИНН: 02508201610067 [04:07:52]line Контрольно-Кассовый Чек [04:07:52]line ПРОДАЖА [04:07:52]line Товар: 4870001570071 [04:07:52]line Напиток Pepsi 1л [04:07:52]line 1.000 * 110.00 [04:07:52]line = 110.00 [04:07:52]line НДС 12% НСП 1% [04:07:52]line > о реализуемом товаре [04:07:52]line ИТОГО: 110.00 [04:07:52]line НСП 1% : 0.97 [04:07:52]line НДС 12% : 11.68 [04:07:52]line Наличными: 110.00 [04:07:52]line Безнал.: 0.00 [04:07:52]line Место: АЗС № 144 "Партнер Нефть" [04:07:52]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [04:07:52]line СНО: Общий режим [04:07:52]line Чек 22 20.06.2024 04:07 [04:07:52]line Смена: 393 ФФД: 1.0 [04:07:52]line ЗНМ: 0300000170 [04:07:52]line РНМ: 0000000000095696 [04:07:52]line Версия ККМ: 001 [04:07:52]line ФМ: 0000000000875009 [04:07:52]line ФД: 76581 [04:07:52]line ФПД: 11096934589820 [04:07:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T040752&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76581&fm=11096934589820&tin=02508201610067®Number=0000000000095696&sum=11000 [04:07:52]line 0 [04:07:52]written 0, free lines is 4095 [04:07:52]OFD Sender: Processing packet 76581 [packets to send 351, broken 350] [04:07:52]ProducePacketName [04:07:52]name=ofd_packets/00076581 [04:07:52]OFD Sender: To server: pG, [04:07:52]CommunicateWithHost lk.salyk.kg:30040 [04:07:52]ConnectInit lk.salyk.kg [04:07:52]Connected sock=10 [04:07:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 19 86 16 01 62 2D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 18 AB 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2B 01 00 35 04 06 00 0A 17 B4 D8 25 7C 41 DF A3 B6 68 F0 BB 5F [04:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 7C D5 47 00 57 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2B 01 00 F4 03 04 00 BA 51 73 66 B6 04 01 00 00 45 7C 90 3C 3E F9 95 D9 [04:07:53]CommunicateWithHost err = 0 [04:07:53]CheckOFDResponse [04:07:53]1017 (14) - 77093643461234 [04:07:53]1041 (16) - 0000000000875009 [04:07:53]1040 (4) - 76581 [04:07:53]1012 (4) - 19.06.2024 21:46 [04:07:53]1206 (1) - 0 [04:07:53]OFD Sender: Remove packet 76581 [04:07:53]ProducePacketName [04:07:53]name=ofd_packets/00076581 [04:07:53]NVStorageDeleteData [04:07:53]Write to MH i2c: 01 00 00 7A 05 7F [04:07:53]Write i2c OK [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: 01 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: 01 07 00 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 1D 0D B0 [04:07:53]RasterBufferAndPrint [04:07:53]line [04:07:53]line [04:07:53]line [04:07:53]line [04:07:53]line [04:07:53]written 0, free lines is 3363 [04:07:53]MH_Cut [04:07:53]Write to MH i2c: D1 01 00 81 05 01 58 [04:07:53]Write i2c OK [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: D1 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: D1 01 00 [04:07:53]MH_I2C_Read... [04:07:53]Read from MH i2c: D1 01 00 81 05 00 57 [04:07:53]Write to MH i2c: 01 00 00 82 05 87 [04:07:53]Write i2c OK [04:07:53]MH_I2C_Read... [04:07:53]OFD Sender: No OFD packet to send [04:07:53]*** Cut start [04:07:53]*** Partial cut [04:07:53]*** CUTSNS_PIN = 1 [04:07:53]*** CUTSNS_PIN = 0 [04:07:54]*** Brake cut motor [04:07:54]Read from MH i2c: 01 [04:07:54]MH_I2C_Read... [04:07:54]*** Stop cut motor [04:07:54]*** Cut end [04:07:54]Read from MH i2c: 01 07 00 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [04:07:54]process_action close_receipt done [04:07:54]requested_data is exist [04:07:54]produce_requested_data [04:07:54]requested_item fm.sn is exist - process it [04:07:54]wFMCommunicate request_size=4 [04:07:54]MH_SAM_APDU [04:07:54]CAPDU: 80 11 00 00 [04:07:54]Write to MH i2c: E2 08 00 83 05 80 11 00 00 00 00 00 00 02 [04:07:54]Write i2c OK [04:07:54]MH_I2C_Read... [04:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:54]Read from MH i2c: E2 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 17 00 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 17 00 83 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 52 [04:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:07:54]wFMCommunicate OK [04:07:54]requested_item fd.num is exist - process it [04:07:54]SAM_PROTO_GetFieldsCounters [04:07:54]wFMCommunicate request_size=4 [04:07:54]MH_SAM_APDU [04:07:54]CAPDU: 80 13 00 00 [04:07:54]Write to MH i2c: E2 08 00 84 05 80 13 00 00 00 00 00 00 05 [04:07:54]Write i2c OK [04:07:54]MH_I2C_Read... [04:07:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:07:54]Read from MH i2c: E2 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 62 00 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 62 00 84 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 25 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [04:07:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 25 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:07:54]wFMCommunicate OK [04:07:54]SAM_PROTO_GetFieldsCounters done [04:07:54]requested_item shift.num is exist - process it [04:07:54]requested_item shift.opened is exist - process it [04:07:54]req_shift_opened [04:07:54]FM_GetShiftState [04:07:54]SAM_PROTO_GetShiftState [04:07:54]wFMCommunicate request_size=4 [04:07:54]MH_SAM_APDU [04:07:54]CAPDU: 80 13 01 00 [04:07:54]Write to MH i2c: E2 08 00 85 05 80 13 01 00 00 00 00 00 07 [04:07:54]Write i2c OK [04:07:54]MH_I2C_Read... [04:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:54]Read from MH i2c: E2 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 0E 00 [04:07:54]MH_I2C_Read... [04:07:54]Read from MH i2c: E2 0E 00 85 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E3 [04:07:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [04:07:54]wFMCommunicate OK [04:07:54]SAM_PROTO_GetShiftState done [04:07:54]FM_GetShiftState done [04:07:54]req_shift_opened done [04:07:54]requested_item shift.open_date is exist - process it [04:07:54]req_shift_open_date [04:07:54]req_shift_open_date done [04:07:54]produce_requested_data done [04:07:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76581,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [04:07:54]process_action_free close_receipt [04:07:54]json_value_free [04:07:54]json_value_free done [04:07:54]process_json_proto returns [04:07:54]Send response to host [04:07:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76581,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [04:07:54]free response buf [04:07:54]execute_script done [04:07:54]execute_script returns [04:07:54]free content buf [04:07:54]Sock 7.Close socket [04:07:54]Sock 7.Thread stoped [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [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: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:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:30]accept exits with 9 [04:50:30]New connection [04:50:30]New thread 3067133284 created [04:50:30] Sock 9.Parse request [04:50:30]Thread 3066989924 joined [04:50:30]Sock 9.Check first char [04:50:30]Waiting for new connection... [04:50:30]Sock 9.First char is OK [04:50:30]request: POST /json_proto HTTP/1.0 [04:50:30]Method: POST [04:50:30]URL: /json_proto [04:50:30]Method is POST - this is cgi request [04:50:30]url: /json_proto [04:50:30]query_string will be loaded in cgi processing [04:50:30]execute_cgi json_proto POST (null) [04:50:30]execute_cgi path=json_proto method=POST [04:50:30]POST find Content-Length [04:50:30]Host: 172.17.39.195:8080 [04:50:30]Content-Length: 624 [04:50:30]Content-Type: application/json [04:50:30] [04:50:30]POST finish read [04:50:30]Found Content-Length = 624 [04:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220731", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:30]execute_script... [04:50: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 : (3)220731", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:30]POST & json_proto [04:50:30]process_json_proto [04:50:30]json parsed OK: [04:50:30]protocol is kg_v1.0 [04:50:30]action value=close_receipt [04:50:30]process_action close_receipt [04:50:30]cmd_close_receipt [04:50:30]MH_GetDate [04:50:30]Write to MH i2c: F0 00 00 86 05 7A [04:50:30]Write i2c OK [04:50:30]MH_I2C_Read... [04:50:30]Read from MH i2c: F0 [04:50:30]MH_I2C_Read... [04:50:30]Read from MH i2c: F0 09 00 [04:50:30]MH_I2C_Read... [04:50:30]Read from MH i2c: F0 09 00 86 05 00 18 B5 73 66 99 81 91 64 38 [04:50:30]GetLastDocTimeStamp 1718856472 [04:50:30]current date 1718859032 [04:50:30]FM_GetShiftState [04:50:30]SAM_PROTO_GetShiftState [04:50:30]wFMCommunicate request_size=4 [04:50:30]MH_SAM_APDU [04:50:30]CAPDU: 80 13 01 00 [04:50:30]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [04:50:30]Write i2c OK [04:50:30]MH_I2C_Read... [04:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:30]Read from MH i2c: E2 [04:50:30]MH_I2C_Read... [04:50:30]Read from MH i2c: E2 0E 00 [04:50:30]MH_I2C_Read... [04:50:30]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E5 [04:50:30]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [04:50:30]wFMCommunicate OK [04:50:30]SAM_PROTO_GetShiftState done [04:50:30]FM_GetShiftState done [04:50:30]opened in 1718843774 [04:50:30]opened+sec_in_day 1718930174 [04:50:30]quantity*price = 30000 [04:50:30]sum+1 = 30001 [04:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 23 20.06.2024 04:50 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76582 ФПД: 112123380258749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T045032&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76582&fm=112123380258749&tin=02508201610067®Number=0000000000095696&sum=30000 0 [04:50:32]StoreToDocumentArchive [04:50:32]shift 393 fd 76582 [04:50:32]save to /storage/0393/doc_00076582 [04:50:32]save last doc name /storage/0393/doc_00076582 to /storage/kkm_last_doc_name [04:50:32]save OK [04:50:32]Clear old archive folders... [04:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=268 [04:50:32]tlvbuf is B6F06A10 [04:50:32]SAM_PROTO_ClearQueue [04:50:32]wFMCommunicate request_size=4 [04:50:32]MH_SAM_APDU [04:50:32]CAPDU: 80 09 00 00 [04:50:32]Write to MH i2c: E2 08 00 94 05 80 09 00 00 00 00 00 00 0B [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:50:32]Read from MH i2c: E2 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [04:50:32]RAPDU: 90 00 [04:50:32]wFMCommunicate OK [04:50:32]SAM_PROTO_ClearQueue done [04:50:32]KKMCreateOFDPacket [04:50:32]OFDProtocolAddRootSTLVToBuf [04:50:32]FM_MakeSignedData [04:50:32]FM_MakeSignedData [04:50:32]SAM_PROTO_SignData [04:50:32]wFMCommunicate request_size=4 [04:50:32]MH_SAM_APDU [04:50:32]CAPDU: 80 0D 01 02 [04:50:32]Write to MH i2c: E2 08 00 95 05 80 0D 01 02 00 00 00 00 13 [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:50:32]Read from MH i2c: E2 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [04:50:32]RAPDU: 90 00 [04:50:32]wFMCommunicate OK [04:50:32]wFMCommunicate request_size=255 [04:50:32]MH_SAM_APDU [04:50:32]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 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 18 B5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [04:50:32]Write to MH i2c: E2 02 01 96 05 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 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 18 B5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 0F [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:32]Read from MH i2c: E2 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [04:50:32]RAPDU: 90 00 [04:50:32]wFMCommunicate OK [04:50:32]wFMCommunicate request_size=27 [04:50:32]MH_SAM_APDU [04:50:32]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 26 2B 01 00 35 04 06 00 65 F9 C2 40 57 BD [04:50:32]Write to MH i2c: E2 1E 00 97 05 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 26 2B 01 00 35 04 06 00 65 F9 C2 40 57 BD 00 00 2D [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:32]Read from MH i2c: E2 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [04:50:32]RAPDU: 90 00 [04:50:32]wFMCommunicate OK [04:50:32]wFMCommunicate request_size=4 [04:50:32]MH_SAM_APDU [04:50:32]CAPDU: 80 0D 03 02 [04:50:32]Write to MH i2c: E2 08 00 98 05 80 0D 03 02 00 00 00 00 18 [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:50:32]Read from MH i2c: E2 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 0B 00 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 0B 00 98 05 00 00 55 28 33 1E E8 09 BB 90 00 93 [04:50:32]RAPDU: 00 55 28 33 1E E8 09 BB 90 00 [04:50:32]wFMCommunicate OK [04:50:32]SAM_PROTO_SignData done [04:50:32]FM_MakeSignedData done [04:50:32]CreateOFDProtocolMessage [04:50:32]wFMCommunicate request_size=4 [04:50:32]MH_SAM_APDU [04:50:32]CAPDU: 80 11 00 00 [04:50:32]Write to MH i2c: E2 08 00 99 05 80 11 00 00 00 00 00 00 18 [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:32]Read from MH i2c: E2 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 17 00 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: E2 17 00 99 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 68 [04:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:50:32]wFMCommunicate OK [04:50:32]CreateOFDProtocolMessage done [04:50:32]OFDSenderStorePacket 76582 [04:50:32]StoreOFDPacket docnum=76582 [04:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 56 C2 18 01 B4 5D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 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 18 B5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 26 2B 01 00 35 04 06 00 65 F9 C2 40 57 BD 00 55 28 33 1E E8 09 BB [04:50:32]CheckFolder [04:50:32]dirname=/storage/ofd_packets [04:50:32]CheckFolder done [04:50:32]ProducePacketName [04:50:32]name=ofd_packets/00076582 [04:50:32]NVStorageSaveData ofd_packets/00076582 [04:50:32]File name is /storage/ofd_packets/00076582 [04:50:32]Write 318 bytes [04:50:32]NVStorageSaveData done [04:50:32]OFDSenderStorePacket done [04:50:32]KKMCreateOFDPacket done [04:50:32]NVStorageSaveData kkm_last_timestamp [04:50:32]File name is /storage/kkm_last_timestamp [04:50:32]Write 4 bytes [04:50:32]NVStorageSaveData done [04:50:32]ExternCall_PrintAddStr [04:50:32]wPrintStart [04:50:32]Write to MH i2c: 01 00 00 9A 05 9F [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: 01 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: 01 07 00 [04:50:32]MH_I2C_Read... [04:50:32]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [04:50:32]RasterBufferAndPrint [04:50:32]line Счет N : (3)220731 [04:50:32]line ИНН: 02508201610067 [04:50:32]line Контрольно-Кассовый Чек [04:50:32]line ПРОДАЖА [04:50:32]line Товар: 4600721021627 [04:50:32]line Пиво БАД 0,5л ст [04:50:32]line 2.000 * 150.00 [04:50:32]line = 300.00 [04:50:32]line НДС 12% НСП 1% [04:50:32]line > о реализуемом товаре [04:50:32]line ИТОГО: 300.00 [04:50:32]line НСП 1% : 2.65 [04:50:32]line НДС 12% : 31.86 [04:50:32]line Наличными: 300.00 [04:50:32]line Безнал.: 0.00 [04:50:32]line Место: АЗС № 144 "Партнер Нефть" [04:50:32]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [04:50:32]line СНО: Общий режим [04:50:32]line Чек 23 20.06.2024 04:50 [04:50:32]line Смена: 393 ФФД: 1.0 [04:50:32]line ЗНМ: 0300000170 [04:50:32]line РНМ: 0000000000095696 [04:50:32]line Версия ККМ: 001 [04:50:32]line ФМ: 0000000000875009 [04:50:32]line ФД: 76582 [04:50:32]line ФПД: 112123380258749 [04:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T045032&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76582&fm=112123380258749&tin=02508201610067®Number=0000000000095696&sum=30000 [04:50:32]line 0 [04:50:32]OFD Sender: Processing packet 76582 [packets to send 351, broken 350] [04:50:32]ProducePacketName [04:50:32]name=ofd_packets/00076582 [04:50:32]OFD Sender: To server: pG, [04:50:32]CommunicateWithHost lk.salyk.kg:30040 [04:50:32]ConnectInit lk.salyk.kg [04:50:32]written 0, free lines is 4095 [04:50:33]Connected sock=10 [04:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 56 C2 18 01 B4 5D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 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 18 B5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 26 2B 01 00 35 04 06 00 65 F9 C2 40 57 BD 00 55 28 33 1E E8 09 BB [04:50:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 BA 3D 47 00 EB C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 26 2B 01 00 F4 03 04 00 BA 5B 73 66 B6 04 01 00 00 4B BD A3 4B B4 65 66 93 [04:50:33]CommunicateWithHost err = 0 [04:50:33]CheckOFDResponse [04:50:33]1017 (14) - 77093643461234 [04:50:33]1041 (16) - 0000000000875009 [04:50:33]1040 (4) - 76582 [04:50:33]1012 (4) - 19.06.2024 22:29 [04:50:33]1206 (1) - 0 [04:50:33]OFD Sender: Remove packet 76582 [04:50:33]ProducePacketName [04:50:33]name=ofd_packets/00076582 [04:50:33]NVStorageDeleteData [04:50:33]Write to MH i2c: 01 00 00 C2 05 C7 [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 07 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 02 0D DD [04:50:33]RasterBufferAndPrint [04:50:33]line [04:50:33]line [04:50:33]line [04:50:33]line [04:50:33]line [04:50:33]written 0, free lines is 3337 [04:50:33]MH_Cut [04:50:33]Write to MH i2c: D1 01 00 C9 05 01 A0 [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: D1 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: D1 01 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: D1 01 00 C9 05 00 9F [04:50:33]Write to MH i2c: 01 00 00 CA 05 CF [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]OFD Sender: No OFD packet to send [04:50:34]*** Cut start [04:50:34]*** Partial cut [04:50:34]*** CUTSNS_PIN = 1 [04:50:34]*** CUTSNS_PIN = 0 [04:50:34]*** Brake cut motor [04:50:34]Read from MH i2c: 01 [04:50:34]MH_I2C_Read... [04:50:34]*** Stop cut motor [04:50:34]*** Cut end [04:50:34]Read from MH i2c: 01 07 00 [04:50:34]MH_I2C_Read... [04:50:34]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [04:50:34]process_action close_receipt done [04:50:34]requested_data is exist [04:50:34]produce_requested_data [04:50:34]requested_item fm.sn is exist - process it [04:50:34]wFMCommunicate request_size=4 [04:50:34]MH_SAM_APDU [04:50:34]CAPDU: 80 11 00 00 [04:50:34]Write to MH i2c: E2 08 00 CB 05 80 11 00 00 00 00 00 00 4A [04:50:34]Write i2c OK [04:50:34]MH_I2C_Read... [04:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:34]Read from MH i2c: E2 [04:50:34]MH_I2C_Read... [04:50:34]Read from MH i2c: E2 17 00 [04:50:34]MH_I2C_Read... [04:50:34]Read from MH i2c: E2 17 00 CB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9A [04:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:50:34]wFMCommunicate OK [04:50:34]requested_item fd.num is exist - process it [04:50:34]SAM_PROTO_GetFieldsCounters [04:50:34]wFMCommunicate request_size=4 [04:50:34]MH_SAM_APDU [04:50:34]CAPDU: 80 13 00 00 [04:50:34]Write to MH i2c: E2 08 00 CC 05 80 13 00 00 00 00 00 00 4D [04:50:34]Write i2c OK [04:50:34]MH_I2C_Read... [04:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:50:34]Read from MH i2c: E2 [04:50:34]MH_I2C_Read... [04:50:34]Read from MH i2c: E2 62 00 [04:50:34]MH_I2C_Read... [04:50:34]Read from MH i2c: E2 62 00 CC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 26 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [04:50:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 26 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:50:34]wFMCommunicate OK [04:50:34]SAM_PROTO_GetFieldsCounters done [04:50:34]requested_item shift.num is exist - process it [04:50:34]requested_item shift.opened is exist - process it [04:50:34]req_shift_opened [04:50:34]FM_GetShiftState [04:50:34]SAM_PROTO_GetShiftState [04:50:34]wFMCommunicate request_size=4 [04:50:34]MH_SAM_APDU [04:50:34]CAPDU: 80 13 01 00 [04:50:34]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [04:50:34]Write i2c OK [04:50:34]MH_I2C_Read... [04:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:34]Read from MH i2c: E2 [04:50:34]MH_I2C_Read... [04:50:34]Read from MH i2c: E2 0E 00 [04:50:34]MH_I2C_Read... [04:50:34]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 2B [04:50:34]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [04:50:34]wFMCommunicate OK [04:50:34]SAM_PROTO_GetShiftState done [04:50:34]FM_GetShiftState done [04:50:34]req_shift_opened done [04:50:34]requested_item shift.open_date is exist - process it [04:50:34]req_shift_open_date [04:50:34]req_shift_open_date done [04:50:34]produce_requested_data done [04:50:34]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76582,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [04:50:34]process_action_free close_receipt [04:50:34]json_value_free [04:50:34]json_value_free done [04:50:34]process_json_proto returns [04:50:34]Send response to host [04:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76582,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [04:50:34]free response buf [04:50:34]execute_script done [04:50:34]execute_script returns [04:50:34]free content buf [04:50:34]Sock 9.Close socket [04:50:34]Sock 9.Thread stoped [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]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: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: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:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:55]accept exits with 7 [05:58:55]New connection [05:58:55]New thread 3066989924 created [05:58:55]Thread 3067133284 joined [05:58:55]Waiting for new connection... [05:58:55] Sock 7.Parse request [05:58:55]Sock 7.Check first char [05:58:55]Sock 7.First char is OK [05:58:55]request: POST /json_proto HTTP/1.0 [05:58:55]Method: POST [05:58:55]URL: /json_proto [05:58:55]Method is POST - this is cgi request [05:58:55]url: /json_proto [05:58:55]query_string will be loaded in cgi processing [05:58:55]execute_cgi json_proto POST (null) [05:58:55]execute_cgi path=json_proto method=POST [05:58:55]POST find Content-Length [05:58:55]Host: 172.17.39.195:8080 [05:58:55]Content-Length: 655 [05:58:55]Content-Type: application/json [05:58:55] [05:58:55]POST finish read [05:58:55]Found Content-Length = 655 [05:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220732", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:55]execute_script... [05:58: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 : (3)220732", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:55]POST & json_proto [05:58:55]process_json_proto [05:58:55]json parsed OK: [05:58:55]protocol is kg_v1.0 [05:58:55]action value=close_receipt [05:58:55]process_action close_receipt [05:58:55]cmd_close_receipt [05:58:55]MH_GetDate [05:58:55]Write to MH i2c: F0 00 00 CE 05 C2 [05:58:55]Write i2c OK [05:58:55]MH_I2C_Read... [05:58:55]Read from MH i2c: F0 [05:58:55]MH_I2C_Read... [05:58:55]Read from MH i2c: F0 09 00 [05:58:55]MH_I2C_Read... [05:58:55]Read from MH i2c: F0 09 00 CE 05 00 21 C5 73 66 99 81 91 64 99 [05:58:55]GetLastDocTimeStamp 1718859032 [05:58:55]current date 1718863137 [05:58:55]FM_GetShiftState [05:58:55]SAM_PROTO_GetShiftState [05:58:55]wFMCommunicate request_size=4 [05:58:55]MH_SAM_APDU [05:58:55]CAPDU: 80 13 01 00 [05:58:55]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [05:58:55]Write i2c OK [05:58:55]MH_I2C_Read... [05:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:55]Read from MH i2c: E2 [05:58:55]MH_I2C_Read... [05:58:55]Read from MH i2c: E2 0E 00 [05:58:55]MH_I2C_Read... [05:58:55]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 2D [05:58:55]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [05:58:55]wFMCommunicate OK [05:58:55]SAM_PROTO_GetShiftState done [05:58:55]FM_GetShiftState done [05:58:55]opened in 1718843774 [05:58:55]opened+sec_in_day 1718930174 [05:58:55]quantity*price = 26000 [05:58:55]sum+1 = 26001 [05:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 24 20.06.2024 05:58 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76583 ФПД: 72677612358052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T055857&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76583&fm=72677612358052&tin=02508201610067®Number=0000000000095696&sum=26000 0 [05:58:56]StoreToDocumentArchive [05:58:56]shift 393 fd 76583 [05:58:56]save to /storage/0393/doc_00076583 [05:58:56]save last doc name /storage/0393/doc_00076583 to /storage/kkm_last_doc_name [05:58:56]save OK [05:58:56]Clear old archive folders... [05:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=279 [05:58:56]tlvbuf is 00DC88A0 [05:58:56]SAM_PROTO_ClearQueue [05:58:56]wFMCommunicate request_size=4 [05:58:56]MH_SAM_APDU [05:58:56]CAPDU: 80 09 00 00 [05:58:56]Write to MH i2c: E2 08 00 DC 05 80 09 00 00 00 00 00 00 53 [05:58:56]Write i2c OK [05:58:56]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [05:58:57]RAPDU: 90 00 [05:58:57]wFMCommunicate OK [05:58:57]SAM_PROTO_ClearQueue done [05:58:57]KKMCreateOFDPacket [05:58:57]OFDProtocolAddRootSTLVToBuf [05:58:57]FM_MakeSignedData [05:58:57]FM_MakeSignedData [05:58:57]SAM_PROTO_SignData [05:58:57]wFMCommunicate request_size=4 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 0D 01 02 [05:58:57]Write to MH i2c: E2 08 00 DD 05 80 0D 01 02 00 00 00 00 5B [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [05:58:57]RAPDU: 90 00 [05:58:57]wFMCommunicate OK [05:58:57]wFMCommunicate request_size=255 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 21 C5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 [05:58:57]Write to MH i2c: E2 02 01 DE 05 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 21 C5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 00 00 C0 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [05:58:57]RAPDU: 90 00 [05:58:57]wFMCommunicate OK [05:58:57]wFMCommunicate request_size=38 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2B 01 00 35 04 06 00 42 19 93 44 89 A4 [05:58:57]Write to MH i2c: E2 29 00 DF 05 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2B 01 00 35 04 06 00 42 19 93 44 89 A4 00 00 96 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [05:58:57]RAPDU: 90 00 [05:58:57]wFMCommunicate OK [05:58:57]wFMCommunicate request_size=4 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 0D 03 02 [05:58:57]Write to MH i2c: E2 08 00 E0 05 80 0D 03 02 00 00 00 00 60 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 0B 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 0B 00 E0 05 00 02 2A EA 97 34 13 7A 8F 90 00 5E [05:58:57]RAPDU: 02 2A EA 97 34 13 7A 8F 90 00 [05:58:57]wFMCommunicate OK [05:58:57]SAM_PROTO_SignData done [05:58:57]FM_MakeSignedData done [05:58:57]CreateOFDProtocolMessage [05:58:57]wFMCommunicate request_size=4 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 11 00 00 [05:58:57]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 17 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B0 [05:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [05:58:57]wFMCommunicate OK [05:58:57]CreateOFDProtocolMessage done [05:58:57]OFDSenderStorePacket 76583 [05:58:57]StoreOFDPacket docnum=76583 [05:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 DD 78 23 01 32 7F 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 21 C5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2B 01 00 35 04 06 00 42 19 93 44 89 A4 02 2A EA 97 34 13 7A 8F [05:58:57]CheckFolder [05:58:57]dirname=/storage/ofd_packets [05:58:57]CheckFolder done [05:58:57]ProducePacketName [05:58:57]name=ofd_packets/00076583 [05:58:57]NVStorageSaveData ofd_packets/00076583 [05:58:57]File name is /storage/ofd_packets/00076583 [05:58:57]Write 329 bytes [05:58:57]NVStorageSaveData done [05:58:57]OFDSenderStorePacket done [05:58:57]KKMCreateOFDPacket done [05:58:57]NVStorageSaveData kkm_last_timestamp [05:58:57]File name is /storage/kkm_last_timestamp [05:58:57]Write 4 bytes [05:58:57]NVStorageSaveData done [05:58:57]OFD Sender: Processing packet 76583 [packets to send 351, broken 350] [05:58:57]ProducePacketName [05:58:57]name=ofd_packets/00076583 [05:58:57]OFD Sender: To server: pG, [05:58:57]CommunicateWithHost lk.salyk.kg:30040 [05:58:57]ConnectInit lk.salyk.kg [05:58:57]ExternCall_PrintAddStr [05:58:57]wPrintStart [05:58:57]Write to MH i2c: 01 00 00 E2 05 E7 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: 01 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: 01 07 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [05:58:57]RasterBufferAndPrint [05:58:57]line Счет N : (3)220732 [05:58:57]line ИНН: 02508201610067 [05:58:57]line Контрольно-Кассовый Чек [05:58:57]line ПРОДАЖА [05:58:57]line Товар: 4700002083914 [05:58:57]line Водка Сары челек 0,35л [05:58:57]line 1.000 * 260.00 [05:58:57]line = 260.00 [05:58:57]line НДС 12% НСП 1% [05:58:57]line > о реализуемом товаре [05:58:57]line ИТОГО: 260.00 [05:58:57]line НСП 1% : 2.30 [05:58:57]line НДС 12% : 27.61 [05:58:57]line Наличными: 260.00 [05:58:57]line Безнал.: 0.00 [05:58:57]line Место: АЗС № 144 "Партнер Нефть" [05:58:57]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [05:58:57]line СНО: Общий режим [05:58:57]line Чек 24 20.06.2024 05:58 [05:58:57]line Смена: 393 ФФД: 1.0 [05:58:57]line ЗНМ: 0300000170 [05:58:57]line РНМ: 0000000000095696 [05:58:57]line Версия ККМ: 001 [05:58:57]line ФМ: 0000000000875009 [05:58:57]line ФД: 76583 [05:58:57]line ФПД: 72677612358052 [05:58:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T055857&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76583&fm=72677612358052&tin=02508201610067®Number=0000000000095696&sum=26000 [05:58:57]line 0 [05:58:57]written 0, free lines is 4095 [05:58:57]Connected sock=11 [05:58:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 DD 78 23 01 32 7F 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 21 C5 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2B 01 00 35 04 06 00 42 19 93 44 89 A4 02 2A EA 97 34 13 7A 8F [05:58:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 30 DD 47 00 C0 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2B 01 00 F4 03 04 00 C3 6B 73 66 B6 04 01 00 00 0F 3A 34 CA DE A1 56 32 [05:58:57]CommunicateWithHost err = 0 [05:58:57]CheckOFDResponse [05:58:57]1017 (14) - 77093643461234 [05:58:57]1041 (16) - 0000000000875009 [05:58:57]1040 (4) - 76583 [05:58:57]1012 (4) - 19.06.2024 23:37 [05:58:57]1206 (1) - 0 [05:58:57]OFD Sender: Remove packet 76583 [05:58:57]ProducePacketName [05:58:57]name=ofd_packets/00076583 [05:58:57]NVStorageDeleteData [05:58:57]Write to MH i2c: 01 00 00 0A 06 10 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: 01 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: 01 07 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 0C 0D 30 [05:58:57]RasterBufferAndPrint [05:58:57]line [05:58:57]line [05:58:57]line [05:58:57]line [05:58:57]line [05:58:57]written 0, free lines is 3346 [05:58:58]MH_Cut [05:58:58]Write to MH i2c: D1 01 00 11 06 01 E9 [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: D1 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: D1 01 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: D1 01 00 11 06 00 E8 [05:58:58]Write to MH i2c: 01 00 00 12 06 18 [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]OFD Sender: No OFD packet to send [05:58:58]*** Cut start [05:58:58]*** Partial cut [05:58:58]*** CUTSNS_PIN = 1 [05:58:58]*** CUTSNS_PIN = 0 [05:58:58]*** Brake cut motor [05:58:59]Read from MH i2c: 01 [05:58:59]MH_I2C_Read... [05:58:59]*** Stop cut motor [05:58:59]*** Cut end [05:58:59]Read from MH i2c: 01 07 00 [05:58:59]MH_I2C_Read... [05:58:59]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 FF 0F 2D [05:58:59]process_action close_receipt done [05:58:59]requested_data is exist [05:58:59]produce_requested_data [05:58:59]requested_item fm.sn is exist - process it [05:58:59]wFMCommunicate request_size=4 [05:58:59]MH_SAM_APDU [05:58:59]CAPDU: 80 11 00 00 [05:58:59]Write to MH i2c: E2 08 00 13 06 80 11 00 00 00 00 00 00 93 [05:58:59]Write i2c OK [05:58:59]MH_I2C_Read... [05:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:59]Read from MH i2c: E2 [05:58:59]MH_I2C_Read... [05:58:59]Read from MH i2c: E2 17 00 [05:58:59]MH_I2C_Read... [05:58:59]Read from MH i2c: E2 17 00 13 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E3 [05:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [05:58:59]wFMCommunicate OK [05:58:59]requested_item fd.num is exist - process it [05:58:59]SAM_PROTO_GetFieldsCounters [05:58:59]wFMCommunicate request_size=4 [05:58:59]MH_SAM_APDU [05:58:59]CAPDU: 80 13 00 00 [05:58:59]Write to MH i2c: E2 08 00 14 06 80 13 00 00 00 00 00 00 96 [05:58:59]Write i2c OK [05:58:59]MH_I2C_Read... [05:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:59]Read from MH i2c: E2 [05:58:59]MH_I2C_Read... [05:58:59]Read from MH i2c: E2 62 00 [05:58:59]MH_I2C_Read... [05:58:59]Read from MH i2c: E2 62 00 14 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 27 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [05:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 27 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:58:59]wFMCommunicate OK [05:58:59]SAM_PROTO_GetFieldsCounters done [05:58:59]requested_item shift.num is exist - process it [05:58:59]requested_item shift.opened is exist - process it [05:58:59]req_shift_opened [05:58:59]FM_GetShiftState [05:58:59]SAM_PROTO_GetShiftState [05:58:59]wFMCommunicate request_size=4 [05:58:59]MH_SAM_APDU [05:58:59]CAPDU: 80 13 01 00 [05:58:59]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [05:58:59]Write i2c OK [05:58:59]MH_I2C_Read... [05:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:59]Read from MH i2c: E2 [05:58:59]MH_I2C_Read... [05:58:59]Read from MH i2c: E2 0E 00 [05:58:59]MH_I2C_Read... [05:58:59]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 74 [05:58:59]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [05:58:59]wFMCommunicate OK [05:58:59]SAM_PROTO_GetShiftState done [05:58:59]FM_GetShiftState done [05:58:59]req_shift_opened done [05:58:59]requested_item shift.open_date is exist - process it [05:58:59]req_shift_open_date [05:58:59]req_shift_open_date done [05:58:59]produce_requested_data done [05:58:59]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76583,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [05:58:59]process_action_free close_receipt [05:58:59]json_value_free [05:58:59]json_value_free done [05:58:59]process_json_proto returns [05:58:59]Send response to host [05:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76583,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [05:58:59]free response buf [05:58:59]execute_script done [05:58:59]execute_script returns [05:58:59]free content buf [05:58:59]Sock 7.Close socket [05:58:59]Sock 7.Thread stoped [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:05]accept exits with 9 [06:07:05]New connection [06:07:05]New thread 3067133284 created [06:07:05]Thread 3066989924 joined [06:07:05]Waiting for new connection... [06:07:05] Sock 9.Parse request [06:07:05]Sock 9.Check first char [06:07:05]Sock 9.First char is OK [06:07:05]request: POST /json_proto HTTP/1.0 [06:07:05]Method: POST [06:07:05]URL: /json_proto [06:07:05]Method is POST - this is cgi request [06:07:05]url: /json_proto [06:07:05]query_string will be loaded in cgi processing [06:07:05]execute_cgi json_proto POST (null) [06:07:05]execute_cgi path=json_proto method=POST [06:07:05]POST find Content-Length [06:07:05]Host: 172.17.39.195:8080 [06:07:05]Content-Length: 851 [06:07:05]Content-Type: application/json [06:07:05] [06:07:05]POST finish read [06:07:05]Found Content-Length = 851 [06:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220733", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:05]execute_script... [06:07:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220733", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:05]POST & json_proto [06:07:05]process_json_proto [06:07:05]json parsed OK: [06:07:05]protocol is kg_v1.0 [06:07:05]action value=close_receipt [06:07:05]process_action close_receipt [06:07:05]cmd_close_receipt [06:07:05]MH_GetDate [06:07:05]Write to MH i2c: F0 00 00 16 06 0B [06:07:05]Write i2c OK [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: F0 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: F0 09 00 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: F0 09 00 16 06 00 0A C7 73 66 99 81 91 64 CD [06:07:05]GetLastDocTimeStamp 1718863137 [06:07:05]current date 1718863626 [06:07:05]FM_GetShiftState [06:07:05]SAM_PROTO_GetShiftState [06:07:05]wFMCommunicate request_size=4 [06:07:05]MH_SAM_APDU [06:07:05]CAPDU: 80 13 01 00 [06:07:05]Write to MH i2c: E2 08 00 17 06 80 13 01 00 00 00 00 00 9A [06:07:05]Write i2c OK [06:07:05]MH_I2C_Read... [06:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:05]Read from MH i2c: E2 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: E2 0E 00 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: E2 0E 00 17 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 76 [06:07:05]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [06:07:05]wFMCommunicate OK [06:07:05]SAM_PROTO_GetShiftState done [06:07:05]FM_GetShiftState done [06:07:05]opened in 1718843774 [06:07:05]opened+sec_in_day 1718930174 [06:07:05]quantity*price = 14000 [06:07:05]sum+1 = 14001 [06:07:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 25 20.06.2024 06:07 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76584 ФПД: 243932044765518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T060706&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76584&fm=243932044765518&tin=02508201610067®Number=0000000000095696&sum=25000 0 [06:07:06]StoreToDocumentArchive [06:07:06]shift 393 fd 76584 [06:07:06]save to /storage/0393/doc_00076584 [06:07:06]save last doc name /storage/0393/doc_00076584 to /storage/kkm_last_doc_name [06:07:06]save OK [06:07:06]Clear old archive folders... [06:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=369 [06:07:06]tlvbuf is 00DCB900 [06:07:06]SAM_PROTO_ClearQueue [06:07:06]wFMCommunicate request_size=4 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 09 00 00 [06:07:06]Write to MH i2c: E2 08 00 24 06 80 09 00 00 00 00 00 00 9C [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [06:07:06]RAPDU: 90 00 [06:07:06]wFMCommunicate OK [06:07:06]SAM_PROTO_ClearQueue done [06:07:06]KKMCreateOFDPacket [06:07:06]OFDProtocolAddRootSTLVToBuf [06:07:06]FM_MakeSignedData [06:07:06]FM_MakeSignedData [06:07:06]SAM_PROTO_SignData [06:07:06]wFMCommunicate request_size=4 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 0D 01 02 [06:07:06]Write to MH i2c: E2 08 00 25 06 80 0D 01 02 00 00 00 00 A4 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [06:07:06]RAPDU: 90 00 [06:07:06]wFMCommunicate OK [06:07:06]wFMCommunicate request_size=255 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 [06:07:06]Write to MH i2c: E2 02 01 26 06 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 00 00 32 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [06:07:06]RAPDU: 90 00 [06:07:06]wFMCommunicate OK [06:07:06]wFMCommunicate request_size=128 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 0D 02 02 7B F3 03 06 00 5F 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 19 00 00 00 F4 03 04 00 0A C7 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2B 01 00 35 04 06 00 DD DA DA E0 A9 4E [06:07:06]Write to MH i2c: E2 83 00 27 06 80 0D 02 02 7B 00 F3 03 06 00 5F 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 19 00 00 00 F4 03 04 00 0A C7 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2B 01 00 35 04 06 00 DD DA DA E0 A9 4E 00 00 55 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [06:07:06]RAPDU: 90 00 [06:07:06]wFMCommunicate OK [06:07:06]wFMCommunicate request_size=4 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 0D 03 02 [06:07:06]Write to MH i2c: E2 08 00 28 06 80 0D 03 02 00 00 00 00 A9 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 0B 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 0B 00 28 06 00 50 37 C7 1E 07 15 F4 3E 90 00 64 [06:07:06]RAPDU: 50 37 C7 1E 07 15 F4 3E 90 00 [06:07:06]wFMCommunicate OK [06:07:06]SAM_PROTO_SignData done [06:07:06]FM_MakeSignedData done [06:07:06]CreateOFDProtocolMessage [06:07:06]wFMCommunicate request_size=4 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 11 00 00 [06:07:06]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 17 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F9 [06:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:07:06]wFMCommunicate OK [06:07:06]CreateOFDProtocolMessage done [06:07:06]OFDSenderStorePacket 76584 [06:07:06]StoreOFDPacket docnum=76584 [06:07:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 85 01 00 00 0F 3B 7D 01 40 9D 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 5F 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 19 00 00 00 F4 03 04 00 0A C7 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2B 01 00 35 04 06 00 DD DA DA E0 A9 4E 50 37 C7 1E 07 15 F4 3E [06:07:06]CheckFolder [06:07:06]dirname=/storage/ofd_packets [06:07:06]CheckFolder done [06:07:06]ProducePacketName [06:07:06]name=ofd_packets/00076584 [06:07:06]NVStorageSaveData ofd_packets/00076584 [06:07:06]File name is /storage/ofd_packets/00076584 [06:07:06]Write 419 bytes [06:07:06]NVStorageSaveData done [06:07:06]OFDSenderStorePacket done [06:07:06]KKMCreateOFDPacket done [06:07:06]NVStorageSaveData kkm_last_timestamp [06:07:06]File name is /storage/kkm_last_timestamp [06:07:06]Write 4 bytes [06:07:06]NVStorageSaveData done [06:07:06]ExternCall_PrintAddStr [06:07:06]wPrintStart [06:07:06]Write to MH i2c: 01 00 00 2A 06 30 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: 01 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: 01 07 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [06:07:06]RasterBufferAndPrint [06:07:06]line Счет N : (3)220733 [06:07:06]line ИНН: 02508201610067 [06:07:06]line Контрольно-Кассовый Чек [06:07:06]line ПРОДАЖА [06:07:06]line Товар: 48747059 [06:07:06]line Сигареты Winston Legend Blue [06:07:06]line 1.000 * 140.00 [06:07:06]line = 140.00 [06:07:06]line НДС 12% НСП 1% [06:07:06]line > о реализуемом товаре [06:07:06]line Товар: 4870001570071 [06:07:06]line Напиток Pepsi 1л [06:07:06]line 1.000 * 110.00 [06:07:07]line = 110.00 [06:07:07]line НДС 12% НСП 1% [06:07:07]line > о реализуемом товаре [06:07:07]line ИТОГО: 250.00 [06:07:07]line НСП 1% : 2.21 [06:07:07]line НДС 12% : 26.55 [06:07:07]line Наличными: 250.00 [06:07:07]line Безнал.: 0.00 [06:07:07]line Место: АЗС № 144 "Партнер Нефть" [06:07:07]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [06:07:07]line СНО: Общий режим [06:07:07]line Чек 25 20.06.2024 06:07 [06:07:07]line Смена: 393 ФФД: 1.0 [06:07:07]line ЗНМ: 0300000170 [06:07:07]line РНМ: 0000000000095696 [06:07:07]line Версия ККМ: 001 [06:07:07]line ФМ: 0000000000875009 [06:07:07]line ФД: 76584 [06:07:07]line ФПД: 243932044765518 [06:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T060706&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76584&fm=243932044765518&tin=02508201610067®Number=0000000000095696&sum=25000 [06:07:07]line 0 [06:07:07]OFD Sender: Processing packet 76584 [packets to send 351, broken 350] [06:07:07]ProducePacketName [06:07:07]name=ofd_packets/00076584 [06:07:07]OFD Sender: To server: pG, [06:07:07]CommunicateWithHost lk.salyk.kg:30040 [06:07:07]ConnectInit lk.salyk.kg [06:07:07]written 0, free lines is 4095 [06:07:07]Write to MH i2c: 01 00 00 59 06 5F [06:07:07]Write i2c OK [06:07:07]MH_I2C_Read... [06:07:07]Read from MH i2c: 01 [06:07:07]MH_I2C_Read... [06:07:07]Read from MH i2c: 01 07 00 [06:07:07]MH_I2C_Read... [06:07:07]Read from MH i2c: 01 07 00 59 06 00 00 00 00 00 6F 0C E1 [06:07:07]RasterBufferAndPrint [06:07:07]line [06:07:07]line [06:07:07]line [06:07:07]line [06:07:07]line [06:07:07]written 0, free lines is 3189 [06:07:07]MH_Cut [06:07:07]Write to MH i2c: D1 01 00 60 06 01 38 [06:07:07]Write i2c OK [06:07:07]MH_I2C_Read... [06:07:07]Read from MH i2c: D1 [06:07:07]MH_I2C_Read... [06:07:07]Read from MH i2c: D1 01 00 [06:07:07]MH_I2C_Read... [06:07:07]Read from MH i2c: D1 01 00 60 06 00 37 [06:07:07]Write to MH i2c: 01 00 00 61 06 67 [06:07:07]Write i2c OK [06:07:07]MH_I2C_Read... [06:07:08]Connected sock=11 [06:07:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 85 01 00 00 0F 3B 7D 01 40 9D 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 5F 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 19 00 00 00 F4 03 04 00 0A C7 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2B 01 00 35 04 06 00 DD DA DA E0 A9 4E 50 37 C7 1E 07 15 F4 3E [06:07:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 BB F6 47 00 FD 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2B 01 00 F4 03 04 00 AD 6D 73 66 B6 04 01 00 00 BD A1 11 5C E0 B2 40 E9 [06:07:08]CommunicateWithHost err = 0 [06:07:08]CheckOFDResponse [06:07:08]1017 (14) - 77093643461234 [06:07:08]1041 (16) - 0000000000875009 [06:07:08]1040 (4) - 76584 [06:07:08]1012 (4) - 19.06.2024 23:45 [06:07:08]1206 (1) - 0 [06:07:08]OFD Sender: Remove packet 76584 [06:07:08]ProducePacketName [06:07:08]name=ofd_packets/00076584 [06:07:08]NVStorageDeleteData [06:07:08]*** Cut start [06:07:08]*** Partial cut [06:07:08]*** CUTSNS_PIN = 1 [06:07:08]*** CUTSNS_PIN = 0 [06:07:08]*** Brake cut motor [06:07:08]OFD Sender: No OFD packet to send [06:07:09]Read from MH i2c: 01 [06:07:09]MH_I2C_Read... [06:07:09]*** Stop cut motor [06:07:09]*** Cut end [06:07:09]Read from MH i2c: 01 07 00 [06:07:09]MH_I2C_Read... [06:07:09]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [06:07:09]process_action close_receipt done [06:07:09]requested_data is exist [06:07:09]produce_requested_data [06:07:09]requested_item fm.sn is exist - process it [06:07:09]wFMCommunicate request_size=4 [06:07:09]MH_SAM_APDU [06:07:09]CAPDU: 80 11 00 00 [06:07:09]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [06:07:09]Write i2c OK [06:07:09]MH_I2C_Read... [06:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:09]Read from MH i2c: E2 [06:07:09]MH_I2C_Read... [06:07:09]Read from MH i2c: E2 17 00 [06:07:09]MH_I2C_Read... [06:07:09]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 32 [06:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:07:09]wFMCommunicate OK [06:07:09]requested_item fd.num is exist - process it [06:07:09]SAM_PROTO_GetFieldsCounters [06:07:09]wFMCommunicate request_size=4 [06:07:09]MH_SAM_APDU [06:07:09]CAPDU: 80 13 00 00 [06:07:09]Write to MH i2c: E2 08 00 63 06 80 13 00 00 00 00 00 00 E5 [06:07:09]Write i2c OK [06:07:09]MH_I2C_Read... [06:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:09]Read from MH i2c: E2 [06:07:09]MH_I2C_Read... [06:07:09]Read from MH i2c: E2 62 00 [06:07:09]MH_I2C_Read... [06:07:09]Read from MH i2c: E2 62 00 63 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 28 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [06:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 28 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:09]wFMCommunicate OK [06:07:09]SAM_PROTO_GetFieldsCounters done [06:07:09]requested_item shift.num is exist - process it [06:07:09]requested_item shift.opened is exist - process it [06:07:09]req_shift_opened [06:07:09]FM_GetShiftState [06:07:09]SAM_PROTO_GetShiftState [06:07:09]wFMCommunicate request_size=4 [06:07:09]MH_SAM_APDU [06:07:09]CAPDU: 80 13 01 00 [06:07:09]Write to MH i2c: E2 08 00 64 06 80 13 01 00 00 00 00 00 E7 [06:07:09]Write i2c OK [06:07:09]MH_I2C_Read... [06:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:09]Read from MH i2c: E2 [06:07:09]MH_I2C_Read... [06:07:09]Read from MH i2c: E2 0E 00 [06:07:09]MH_I2C_Read... [06:07:09]Read from MH i2c: E2 0E 00 64 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C3 [06:07:09]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [06:07:09]wFMCommunicate OK [06:07:09]SAM_PROTO_GetShiftState done [06:07:09]FM_GetShiftState done [06:07:09]req_shift_opened done [06:07:09]requested_item shift.open_date is exist - process it [06:07:09]req_shift_open_date [06:07:09]req_shift_open_date done [06:07:09]produce_requested_data done [06:07:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76584,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [06:07:09]process_action_free close_receipt [06:07:09]json_value_free [06:07:09]json_value_free done [06:07:09]process_json_proto returns [06:07:09]Send response to host [06:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76584,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [06:07:09]free response buf [06:07:09]execute_script done [06:07:09]execute_script returns [06:07:09]free content buf [06:07:09]Sock 9.Close socket [06:07:09]Sock 9.Thread stoped [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [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: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:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [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: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:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]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: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: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: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: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:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:21]accept exits with 10 [06:42:21]New connection [06:42:21]New thread 3066989924 created [06:42:21]Thread 3067133284 joined [06:42:21]Waiting for new connection... [06:42:21] Sock 10.Parse request [06:42:21]Sock 10.Check first char [06:42:21]Sock 10.First char is OK [06:42:21]request: POST /json_proto HTTP/1.0 [06:42:21]Method: POST [06:42:21]URL: /json_proto [06:42:21]Method is POST - this is cgi request [06:42:21]url: /json_proto [06:42:21]query_string will be loaded in cgi processing [06:42:21]execute_cgi json_proto POST (null) [06:42:21]execute_cgi path=json_proto method=POST [06:42:21]POST find Content-Length [06:42:21]Host: 172.17.39.195:8080 [06:42:21]Content-Length: 621 [06:42:21]Content-Type: application/json [06:42:21] [06:42:21]POST finish read [06:42:21]Found Content-Length = 621 [06:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220734", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:21]execute_script... [06:42:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220734", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:21]POST & json_proto [06:42:21]process_json_proto [06:42:21]json parsed OK: [06:42:21]protocol is kg_v1.0 [06:42:21]action value=close_receipt [06:42:21]process_action close_receipt [06:42:21]cmd_close_receipt [06:42:21]MH_GetDate [06:42:21]Write to MH i2c: F0 00 00 65 06 5A [06:42:21]Write i2c OK [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: F0 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: F0 09 00 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: F0 09 00 65 06 00 4F CF 73 66 99 81 91 64 69 [06:42:21]GetLastDocTimeStamp 1718863626 [06:42:21]current date 1718865743 [06:42:21]FM_GetShiftState [06:42:21]SAM_PROTO_GetShiftState [06:42:21]wFMCommunicate request_size=4 [06:42:21]MH_SAM_APDU [06:42:21]CAPDU: 80 13 01 00 [06:42:21]Write to MH i2c: E2 08 00 66 06 80 13 01 00 00 00 00 00 E9 [06:42:21]Write i2c OK [06:42:21]MH_I2C_Read... [06:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:21]Read from MH i2c: E2 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: E2 0E 00 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: E2 0E 00 66 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C5 [06:42:21]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [06:42:21]wFMCommunicate OK [06:42:21]SAM_PROTO_GetShiftState done [06:42:21]FM_GetShiftState done [06:42:21]opened in 1718843774 [06:42:21]opened+sec_in_day 1718930174 [06:42:21]quantity*price = 14000 [06:42:21]sum+1 = 14001 [06:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 26 20.06.2024 06:42 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76585 ФПД: 217700224950531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064223&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76585&fm=217700224950531&tin=02508201610067®Number=0000000000095696&sum=14000 0 [06:42:22]StoreToDocumentArchive [06:42:22]shift 393 fd 76585 [06:42:22]save to /storage/0393/doc_00076585 [06:42:22]save last doc name /storage/0393/doc_00076585 to /storage/kkm_last_doc_name [06:42:22]save OK [06:42:22]Clear old archive folders... [06:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=273 [06:42:22]tlvbuf is 00DE7050 [06:42:22]SAM_PROTO_ClearQueue [06:42:22]wFMCommunicate request_size=4 [06:42:22]MH_SAM_APDU [06:42:22]CAPDU: 80 09 00 00 [06:42:22]Write to MH i2c: E2 08 00 73 06 80 09 00 00 00 00 00 00 EB [06:42:22]Write i2c OK [06:42:22]MH_I2C_Read... [06:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:22]Read from MH i2c: E2 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 03 00 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [06:42:22]RAPDU: 90 00 [06:42:22]wFMCommunicate OK [06:42:22]SAM_PROTO_ClearQueue done [06:42:22]KKMCreateOFDPacket [06:42:22]OFDProtocolAddRootSTLVToBuf [06:42:22]FM_MakeSignedData [06:42:22]FM_MakeSignedData [06:42:22]SAM_PROTO_SignData [06:42:22]wFMCommunicate request_size=4 [06:42:22]MH_SAM_APDU [06:42:22]CAPDU: 80 0D 01 02 [06:42:22]Write to MH i2c: E2 08 00 74 06 80 0D 01 02 00 00 00 00 F3 [06:42:22]Write i2c OK [06:42:22]MH_I2C_Read... [06:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:22]Read from MH i2c: E2 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 03 00 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [06:42:22]RAPDU: 90 00 [06:42:22]wFMCommunicate OK [06:42:22]wFMCommunicate request_size=255 [06:42:22]MH_SAM_APDU [06:42:22]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4F CF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [06:42:22]Write to MH i2c: E2 02 01 75 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4F CF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 8D [06:42:22]Write i2c OK [06:42:22]MH_I2C_Read... [06:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:22]Read from MH i2c: E2 [06:42:22]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 03 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [06:42:23]RAPDU: 90 00 [06:42:23]wFMCommunicate OK [06:42:23]wFMCommunicate request_size=32 [06:42:23]MH_SAM_APDU [06:42:23]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2B 01 00 35 04 06 00 C5 FF 48 93 61 03 [06:42:23]Write to MH i2c: E2 23 00 76 06 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2B 01 00 35 04 06 00 C5 FF 48 93 61 03 00 00 A8 [06:42:23]Write i2c OK [06:42:23]MH_I2C_Read... [06:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:23]Read from MH i2c: E2 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 03 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [06:42:23]RAPDU: 90 00 [06:42:23]wFMCommunicate OK [06:42:23]wFMCommunicate request_size=4 [06:42:23]MH_SAM_APDU [06:42:23]CAPDU: 80 0D 03 02 [06:42:23]Write to MH i2c: E2 08 00 77 06 80 0D 03 02 00 00 00 00 F8 [06:42:23]Write i2c OK [06:42:23]MH_I2C_Read... [06:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:23]Read from MH i2c: E2 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 0B 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 0B 00 77 06 00 8C 83 F9 87 58 0B A4 BB 90 00 4A [06:42:23]RAPDU: 8C 83 F9 87 58 0B A4 BB 90 00 [06:42:23]wFMCommunicate OK [06:42:23]SAM_PROTO_SignData done [06:42:23]FM_MakeSignedData done [06:42:23]CreateOFDProtocolMessage [06:42:23]wFMCommunicate request_size=4 [06:42:23]MH_SAM_APDU [06:42:23]CAPDU: 80 11 00 00 [06:42:23]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [06:42:23]Write i2c OK [06:42:23]MH_I2C_Read... [06:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:23]Read from MH i2c: E2 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 17 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 48 [06:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:42:23]wFMCommunicate OK [06:42:23]CreateOFDProtocolMessage done [06:42:23]OFDSenderStorePacket 76585 [06:42:23]StoreOFDPacket docnum=76585 [06:42:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 1C E4 1D 01 60 3C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4F CF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2B 01 00 35 04 06 00 C5 FF 48 93 61 03 8C 83 F9 87 58 0B A4 BB [06:42:23]CheckFolder [06:42:23]dirname=/storage/ofd_packets [06:42:23]CheckFolder done [06:42:23]ProducePacketName [06:42:23]name=ofd_packets/00076585 [06:42:23]NVStorageSaveData ofd_packets/00076585 [06:42:23]File name is /storage/ofd_packets/00076585 [06:42:23]Write 323 bytes [06:42:23]NVStorageSaveData done [06:42:23]OFDSenderStorePacket done [06:42:23]KKMCreateOFDPacket done [06:42:23]NVStorageSaveData kkm_last_timestamp [06:42:23]File name is /storage/kkm_last_timestamp [06:42:23]Write 4 bytes [06:42:23]NVStorageSaveData done [06:42:23]ExternCall_PrintAddStr [06:42:23]wPrintStart [06:42:23]Write to MH i2c: 01 00 00 79 06 7F [06:42:23]Write i2c OK [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: 01 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: 01 07 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [06:42:23]RasterBufferAndPrint [06:42:23]line Счет N : (3)220734 [06:42:23]line ИНН: 02508201610067 [06:42:23]line Контрольно-Кассовый Чек [06:42:23]line ПРОДАЖА [06:42:23]line Товар: 48743570 [06:42:23]line Сигареты Winston XStyle Blue [06:42:23]line 1.000 * 140.00 [06:42:23]line = 140.00 [06:42:23]line НДС 12% НСП 1% [06:42:23]line > о реализуемом товаре [06:42:23]line ИТОГО: 140.00 [06:42:23]line НСП 1% : 1.24 [06:42:23]line НДС 12% : 14.87 [06:42:23]line Наличными: 140.00 [06:42:23]line Безнал.: 0.00 [06:42:23]line Место: АЗС № 144 "Партнер Нефть" [06:42:23]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [06:42:23]line СНО: Общий режим [06:42:23]line Чек 26 20.06.2024 06:42 [06:42:23]line Смена: 393 ФФД: 1.0 [06:42:23]line ЗНМ: 0300000170 [06:42:23]line РНМ: 0000000000095696 [06:42:23]line Версия ККМ: 001 [06:42:23]line ФМ: 0000000000875009 [06:42:23]line ФД: 76585 [06:42:23]line ФПД: 217700224950531 [06:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064223&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76585&fm=217700224950531&tin=02508201610067®Number=0000000000095696&sum=14000 [06:42:23]line 0 [06:42:23]written 0, free lines is 4095 [06:42:23]OFD Sender: Processing packet 76585 [packets to send 351, broken 350] [06:42:23]ProducePacketName [06:42:23]name=ofd_packets/00076585 [06:42:23]OFD Sender: To server: pG, [06:42:23]CommunicateWithHost lk.salyk.kg:30040 [06:42:23]ConnectInit lk.salyk.kg [06:42:23]Connected sock=9 [06:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 1C E4 1D 01 60 3C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4F CF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2B 01 00 35 04 06 00 C5 FF 48 93 61 03 8C 83 F9 87 58 0B A4 BB [06:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E8 99 47 00 E8 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2B 01 00 F4 03 04 00 F0 75 73 66 B6 04 01 00 00 1B D8 C8 82 AF 66 EB 8F [06:42:23]CommunicateWithHost err = 0 [06:42:23]CheckOFDResponse [06:42:23]1017 (14) - 77093643461234 [06:42:23]1041 (16) - 0000000000875009 [06:42:23]1040 (4) - 76585 [06:42:23]1012 (4) - 20.06.2024 00:21 [06:42:23]1206 (1) - 0 [06:42:23]OFD Sender: Remove packet 76585 [06:42:23]ProducePacketName [06:42:23]name=ofd_packets/00076585 [06:42:23]NVStorageDeleteData [06:42:23]Write to MH i2c: 01 00 00 A1 06 A7 [06:42:23]Write i2c OK [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: 01 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: 01 07 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 F3 0C AD [06:42:23]RasterBufferAndPrint [06:42:23]line [06:42:23]line [06:42:23]line [06:42:23]line [06:42:23]line [06:42:23]written 0, free lines is 3323 [06:42:23]MH_Cut [06:42:23]Write to MH i2c: D1 01 00 A8 06 01 80 [06:42:23]Write i2c OK [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: D1 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: D1 01 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: D1 01 00 A8 06 00 7F [06:42:23]Write to MH i2c: 01 00 00 A9 06 AF [06:42:23]Write i2c OK [06:42:23]MH_I2C_Read... [06:42:24]OFD Sender: No OFD packet to send [06:42:24]*** Cut start [06:42:24]*** Partial cut [06:42:24]*** CUTSNS_PIN = 1 [06:42:24]*** CUTSNS_PIN = 0 [06:42:24]*** Brake cut motor [06:42:24]Read from MH i2c: 01 [06:42:24]MH_I2C_Read... [06:42:24]*** Stop cut motor [06:42:24]*** Cut end [06:42:24]Read from MH i2c: 01 07 00 [06:42:24]MH_I2C_Read... [06:42:24]Read from MH i2c: 01 07 00 A9 06 00 00 00 00 00 FF 0F C4 [06:42:24]process_action close_receipt done [06:42:24]requested_data is exist [06:42:24]produce_requested_data [06:42:24]requested_item fm.sn is exist - process it [06:42:24]wFMCommunicate request_size=4 [06:42:24]MH_SAM_APDU [06:42:24]CAPDU: 80 11 00 00 [06:42:24]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [06:42:24]Write i2c OK [06:42:24]MH_I2C_Read... [06:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:25]Read from MH i2c: E2 [06:42:25]MH_I2C_Read... [06:42:25]Read from MH i2c: E2 17 00 [06:42:25]MH_I2C_Read... [06:42:25]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7A [06:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:42:25]wFMCommunicate OK [06:42:25]requested_item fd.num is exist - process it [06:42:25]SAM_PROTO_GetFieldsCounters [06:42:25]wFMCommunicate request_size=4 [06:42:25]MH_SAM_APDU [06:42:25]CAPDU: 80 13 00 00 [06:42:25]Write to MH i2c: E2 08 00 AB 06 80 13 00 00 00 00 00 00 2D [06:42:25]Write i2c OK [06:42:25]MH_I2C_Read... [06:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:25]Read from MH i2c: E2 [06:42:25]MH_I2C_Read... [06:42:25]Read from MH i2c: E2 62 00 [06:42:25]MH_I2C_Read... [06:42:25]Read from MH i2c: E2 62 00 AB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 29 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [06:42:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 29 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:42:25]wFMCommunicate OK [06:42:25]SAM_PROTO_GetFieldsCounters done [06:42:25]requested_item shift.num is exist - process it [06:42:25]requested_item shift.opened is exist - process it [06:42:25]req_shift_opened [06:42:25]FM_GetShiftState [06:42:25]SAM_PROTO_GetShiftState [06:42:25]wFMCommunicate request_size=4 [06:42:25]MH_SAM_APDU [06:42:25]CAPDU: 80 13 01 00 [06:42:25]Write to MH i2c: E2 08 00 AC 06 80 13 01 00 00 00 00 00 2F [06:42:25]Write i2c OK [06:42:25]MH_I2C_Read... [06:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:25]Read from MH i2c: E2 [06:42:25]MH_I2C_Read... [06:42:25]Read from MH i2c: E2 0E 00 [06:42:25]MH_I2C_Read... [06:42:25]Read from MH i2c: E2 0E 00 AC 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 0B [06:42:25]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [06:42:25]wFMCommunicate OK [06:42:25]SAM_PROTO_GetShiftState done [06:42:25]FM_GetShiftState done [06:42:25]req_shift_opened done [06:42:25]requested_item shift.open_date is exist - process it [06:42:25]req_shift_open_date [06:42:25]req_shift_open_date done [06:42:25]produce_requested_data done [06:42:25]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76585,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [06:42:25]process_action_free close_receipt [06:42:25]json_value_free [06:42:25]json_value_free done [06:42:25]process_json_proto returns [06:42:25]Send response to host [06:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76585,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [06:42:25]free response buf [06:42:25]execute_script done [06:42:25]execute_script returns [06:42:25]free content buf [06:42:25]Sock 10.Close socket [06:42:25]Sock 10.Thread stoped [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:15]accept exits with 7 [06:46:15]New connection [06:46:15]New thread 3067133284 created [06:46:15]Thread 3066989924 joined [06:46:15]Waiting for new connection... [06:46:15] Sock 7.Parse request [06:46:15]Sock 7.Check first char [06:46:15]Sock 7.First char is OK [06:46:15]request: POST /json_proto HTTP/1.0 [06:46:15]Method: POST [06:46:15]URL: /json_proto [06:46:15]Method is POST - this is cgi request [06:46:15]url: /json_proto [06:46:15]query_string will be loaded in cgi processing [06:46:15]execute_cgi json_proto POST (null) [06:46:15]execute_cgi path=json_proto method=POST [06:46:15]POST find Content-Length [06:46:15]Host: 172.17.39.195:8080 [06:46:15]Content-Length: 654 [06:46:15]Content-Type: application/json [06:46:15] [06:46:15]POST finish read [06:46:15]Found Content-Length = 654 [06:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220735", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:15]execute_script... [06:46:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220735", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:15]POST & json_proto [06:46:15]process_json_proto [06:46:15]json parsed OK: [06:46:15]protocol is kg_v1.0 [06:46:15]action value=close_receipt [06:46:15]process_action close_receipt [06:46:15]cmd_close_receipt [06:46:15]MH_GetDate [06:46:15]Write to MH i2c: F0 00 00 AD 06 A2 [06:46:15]Write i2c OK [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: F0 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: F0 09 00 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: F0 09 00 AD 06 00 39 D0 73 66 99 81 91 64 9C [06:46:15]GetLastDocTimeStamp 1718865743 [06:46:15]current date 1718865977 [06:46:15]FM_GetShiftState [06:46:15]SAM_PROTO_GetShiftState [06:46:15]wFMCommunicate request_size=4 [06:46:15]MH_SAM_APDU [06:46:15]CAPDU: 80 13 01 00 [06:46:15]Write to MH i2c: E2 08 00 AE 06 80 13 01 00 00 00 00 00 31 [06:46:15]Write i2c OK [06:46:15]MH_I2C_Read... [06:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:15]Read from MH i2c: E2 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: E2 0E 00 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: E2 0E 00 AE 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 0D [06:46:15]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [06:46:15]wFMCommunicate OK [06:46:15]SAM_PROTO_GetShiftState done [06:46:15]FM_GetShiftState done [06:46:15]opened in 1718843774 [06:46:15]opened+sec_in_day 1718930174 [06:46:15]quantity*price = 9500 [06:46:15]sum+1 = 9501 [06:46:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 27 20.06.2024 06:46 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76586 ФПД: 148828250659305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064617&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76586&fm=148828250659305&tin=02508201610067®Number=0000000000095696&sum=9500 0 [06:46:16]StoreToDocumentArchive [06:46:16]shift 393 fd 76586 [06:46:16]save to /storage/0393/doc_00076586 [06:46:16]save last doc name /storage/0393/doc_00076586 to /storage/kkm_last_doc_name [06:46:16]save OK [06:46:16]Clear old archive folders... [06:46:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:46:16]tlvbuf is 00DCCAC0 [06:46:16]SAM_PROTO_ClearQueue [06:46:16]wFMCommunicate request_size=4 [06:46:16]MH_SAM_APDU [06:46:16]CAPDU: 80 09 00 00 [06:46:16]Write to MH i2c: E2 08 00 BB 06 80 09 00 00 00 00 00 00 33 [06:46:16]Write i2c OK [06:46:16]MH_I2C_Read... [06:46:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:16]Read from MH i2c: E2 [06:46:16]MH_I2C_Read... [06:46:16]Read from MH i2c: E2 03 00 [06:46:16]MH_I2C_Read... [06:46:16]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [06:46:16]RAPDU: 90 00 [06:46:16]wFMCommunicate OK [06:46:16]SAM_PROTO_ClearQueue done [06:46:16]KKMCreateOFDPacket [06:46:16]OFDProtocolAddRootSTLVToBuf [06:46:16]FM_MakeSignedData [06:46:16]FM_MakeSignedData [06:46:16]SAM_PROTO_SignData [06:46:16]wFMCommunicate request_size=4 [06:46:16]MH_SAM_APDU [06:46:16]CAPDU: 80 0D 01 02 [06:46:16]Write to MH i2c: E2 08 00 BC 06 80 0D 01 02 00 00 00 00 3B [06:46:16]Write i2c OK [06:46:16]MH_I2C_Read... [06:46:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:16]Read from MH i2c: E2 [06:46:16]MH_I2C_Read... [06:46:16]Read from MH i2c: E2 03 00 [06:46:16]MH_I2C_Read... [06:46:16]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [06:46:16]RAPDU: 90 00 [06:46:16]wFMCommunicate OK [06:46:16]wFMCommunicate request_size=255 [06:46:16]MH_SAM_APDU [06:46:16]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 D0 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:46:16]Write to MH i2c: E2 02 01 BD 06 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 D0 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 62 [06:46:16]Write i2c OK [06:46:16]MH_I2C_Read... [06:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:17]Read from MH i2c: E2 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 03 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [06:46:17]RAPDU: 90 00 [06:46:17]wFMCommunicate OK [06:46:17]wFMCommunicate request_size=52 [06:46:17]MH_SAM_APDU [06:46:17]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2B 01 00 35 04 06 00 87 5B C7 03 59 E9 [06:46:17]Write to MH i2c: E2 37 00 BE 06 80 0D 02 02 2F 00 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2B 01 00 35 04 06 00 87 5B C7 03 59 E9 00 00 4C [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:17]Read from MH i2c: E2 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 03 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [06:46:17]RAPDU: 90 00 [06:46:17]wFMCommunicate OK [06:46:17]wFMCommunicate request_size=4 [06:46:17]MH_SAM_APDU [06:46:17]CAPDU: 80 0D 03 02 [06:46:17]Write to MH i2c: E2 08 00 BF 06 80 0D 03 02 00 00 00 00 40 [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:17]Read from MH i2c: E2 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 0B 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 0B 00 BF 06 00 5D 1F A9 00 B5 F3 F2 60 90 00 60 [06:46:17]RAPDU: 5D 1F A9 00 B5 F3 F2 60 90 00 [06:46:17]wFMCommunicate OK [06:46:17]SAM_PROTO_SignData done [06:46:17]FM_MakeSignedData done [06:46:17]CreateOFDProtocolMessage [06:46:17]wFMCommunicate request_size=4 [06:46:17]MH_SAM_APDU [06:46:17]CAPDU: 80 11 00 00 [06:46:17]Write to MH i2c: E2 08 00 C0 06 80 11 00 00 00 00 00 00 40 [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:17]Read from MH i2c: E2 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 17 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 17 00 C0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 90 [06:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:46:17]wFMCommunicate OK [06:46:17]CreateOFDProtocolMessage done [06:46:17]OFDSenderStorePacket 76586 [06:46:17]StoreOFDPacket docnum=76586 [06:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 01 00 00 2D 2D 31 01 13 83 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 D0 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2B 01 00 35 04 06 00 87 5B C7 03 59 E9 5D 1F A9 00 B5 F3 F2 60 [06:46:17]CheckFolder [06:46:17]dirname=/storage/ofd_packets [06:46:17]CheckFolder done [06:46:17]ProducePacketName [06:46:17]name=ofd_packets/00076586 [06:46:17]NVStorageSaveData ofd_packets/00076586 [06:46:17]File name is /storage/ofd_packets/00076586 [06:46:17]Write 343 bytes [06:46:17]NVStorageSaveData done [06:46:17]OFDSenderStorePacket done [06:46:17]KKMCreateOFDPacket done [06:46:17]NVStorageSaveData kkm_last_timestamp [06:46:17]File name is /storage/kkm_last_timestamp [06:46:17]Write 4 bytes [06:46:17]NVStorageSaveData done [06:46:17]ExternCall_PrintAddStr [06:46:17]wPrintStart [06:46:17]Write to MH i2c: 01 00 00 C1 06 C7 [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: 01 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: 01 07 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [06:46:17]RasterBufferAndPrint [06:46:17]line Счет N : (3)220735 [06:46:17]line ИНН: 02508201610067 [06:46:17]line Контрольно-Кассовый Чек [06:46:17]line ПРОДАЖА [06:46:17]line Товар: 4700000480050 [06:46:17]line Напиток Nitro Energy эн green ж/б 0,45л [06:46:17]line 1.000 * 95.00 [06:46:17]line = 95.00 [06:46:17]line НДС 12% НСП 1% [06:46:17]line > о реализуемом товаре [06:46:17]line ИТОГО: 95.00 [06:46:17]line НСП 1% : 0.84 [06:46:17]line НДС 12% : 10.09 [06:46:17]line Наличными: 95.00 [06:46:17]line Безнал.: 0.00 [06:46:17]line Место: АЗС № 144 "Партнер Нефть" [06:46:17]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [06:46:17]line СНО: Общий режим [06:46:17]line Чек 27 20.06.2024 06:46 [06:46:17]line Смена: 393 ФФД: 1.0 [06:46:17]line ЗНМ: 0300000170 [06:46:17]line РНМ: 0000000000095696 [06:46:17]line Версия ККМ: 001 [06:46:17]line ФМ: 0000000000875009 [06:46:17]line ФД: 76586 [06:46:17]line ФПД: 148828250659305 [06:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064617&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76586&fm=148828250659305&tin=02508201610067®Number=0000000000095696&sum=9500 [06:46:17]line 0 [06:46:17]written 0, free lines is 4095 [06:46:17]OFD Sender: Processing packet 76586 [packets to send 351, broken 350] [06:46:17]ProducePacketName [06:46:17]name=ofd_packets/00076586 [06:46:17]OFD Sender: To server: pG, [06:46:17]CommunicateWithHost lk.salyk.kg:30040 [06:46:17]ConnectInit lk.salyk.kg [06:46:17]Connected sock=10 [06:46:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 01 00 00 2D 2D 31 01 13 83 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 D0 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2B 01 00 35 04 06 00 87 5B C7 03 59 E9 5D 1F A9 00 B5 F3 F2 60 [06:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 5D C8 47 00 94 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2B 01 00 F4 03 04 00 DB 76 73 66 B6 04 01 00 00 91 CA 9E 6F 39 74 E9 5A [06:46:17]CommunicateWithHost err = 0 [06:46:17]CheckOFDResponse [06:46:17]1017 (14) - 77093643461234 [06:46:17]1041 (16) - 0000000000875009 [06:46:17]1040 (4) - 76586 [06:46:17]1012 (4) - 20.06.2024 00:24 [06:46:17]1206 (1) - 0 [06:46:17]OFD Sender: Remove packet 76586 [06:46:17]ProducePacketName [06:46:17]name=ofd_packets/00076586 [06:46:17]NVStorageDeleteData [06:46:17]Write to MH i2c: 01 00 00 EA 06 F0 [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: 01 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: 01 07 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 ED 0C F0 [06:46:17]RasterBufferAndPrint [06:46:17]line [06:46:17]line [06:46:17]line [06:46:17]line [06:46:17]line [06:46:17]written 0, free lines is 3315 [06:46:17]MH_Cut [06:46:17]Write to MH i2c: D1 01 00 F1 06 01 C9 [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: D1 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: D1 01 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: D1 01 00 F1 06 00 C8 [06:46:17]Write to MH i2c: 01 00 00 F2 06 F8 [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:18]OFD Sender: No OFD packet to send [06:46:18]*** Cut start [06:46:18]*** Partial cut [06:46:18]*** CUTSNS_PIN = 1 [06:46:18]*** CUTSNS_PIN = 0 [06:46:18]*** Brake cut motor [06:46:19]Read from MH i2c: 01 [06:46:19]MH_I2C_Read... [06:46:19]*** Stop cut motor [06:46:19]*** Cut end [06:46:19]Read from MH i2c: 01 07 00 [06:46:19]MH_I2C_Read... [06:46:19]Read from MH i2c: 01 07 00 F2 06 00 00 00 00 00 FF 0F 0D [06:46:19]process_action close_receipt done [06:46:19]requested_data is exist [06:46:19]produce_requested_data [06:46:19]requested_item fm.sn is exist - process it [06:46:19]wFMCommunicate request_size=4 [06:46:19]MH_SAM_APDU [06:46:19]CAPDU: 80 11 00 00 [06:46:19]Write to MH i2c: E2 08 00 F3 06 80 11 00 00 00 00 00 00 73 [06:46:19]Write i2c OK [06:46:19]MH_I2C_Read... [06:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:19]Read from MH i2c: E2 [06:46:19]MH_I2C_Read... [06:46:19]Read from MH i2c: E2 17 00 [06:46:19]MH_I2C_Read... [06:46:19]Read from MH i2c: E2 17 00 F3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C3 [06:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:46:19]wFMCommunicate OK [06:46:19]requested_item fd.num is exist - process it [06:46:19]SAM_PROTO_GetFieldsCounters [06:46:19]wFMCommunicate request_size=4 [06:46:19]MH_SAM_APDU [06:46:19]CAPDU: 80 13 00 00 [06:46:19]Write to MH i2c: E2 08 00 F4 06 80 13 00 00 00 00 00 00 76 [06:46:19]Write i2c OK [06:46:19]MH_I2C_Read... [06:46:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:19]Read from MH i2c: E2 [06:46:19]MH_I2C_Read... [06:46:19]Read from MH i2c: E2 62 00 [06:46:19]MH_I2C_Read... [06:46:19]Read from MH i2c: E2 62 00 F4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [06:46:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:19]wFMCommunicate OK [06:46:19]SAM_PROTO_GetFieldsCounters done [06:46:19]requested_item shift.num is exist - process it [06:46:19]requested_item shift.opened is exist - process it [06:46:19]req_shift_opened [06:46:19]FM_GetShiftState [06:46:19]SAM_PROTO_GetShiftState [06:46:19]wFMCommunicate request_size=4 [06:46:19]MH_SAM_APDU [06:46:19]CAPDU: 80 13 01 00 [06:46:19]Write to MH i2c: E2 08 00 F5 06 80 13 01 00 00 00 00 00 78 [06:46:19]Write i2c OK [06:46:19]MH_I2C_Read... [06:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:19]Read from MH i2c: E2 [06:46:19]MH_I2C_Read... [06:46:19]Read from MH i2c: E2 0E 00 [06:46:19]MH_I2C_Read... [06:46:19]Read from MH i2c: E2 0E 00 F5 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 54 [06:46:19]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [06:46:19]wFMCommunicate OK [06:46:19]SAM_PROTO_GetShiftState done [06:46:19]FM_GetShiftState done [06:46:19]req_shift_opened done [06:46:19]requested_item shift.open_date is exist - process it [06:46:19]req_shift_open_date [06:46:19]req_shift_open_date done [06:46:19]produce_requested_data done [06:46:19]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76586,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [06:46:19]process_action_free close_receipt [06:46:19]json_value_free [06:46:19]json_value_free done [06:46:19]process_json_proto returns [06:46:19]Send response to host [06:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76586,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [06:46:19]free response buf [06:46:19]execute_script done [06:46:19]execute_script returns [06:46:19]free content buf [06:46:19]Sock 7.Close socket [06:46:19]Sock 7.Thread stoped [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35: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]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: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:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]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:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:43]accept exits with 9 [07:50:43]New connection [07:50:43]New thread 3066989924 created [07:50:43]Thread 3067133284 joined [07:50:43]Waiting for new connection... [07:50:43] Sock 9.Parse request [07:50:43]Sock 9.Check first char [07:50:43]Sock 9.First char is OK [07:50:43]request: POST /json_proto HTTP/1.0 [07:50:43]Method: POST [07:50:43]URL: /json_proto [07:50:43]Method is POST - this is cgi request [07:50:43]url: /json_proto [07:50:43]query_string will be loaded in cgi processing [07:50:43]execute_cgi json_proto POST (null) [07:50:43]execute_cgi path=json_proto method=POST [07:50:43]POST find Content-Length [07:50:43]Host: 172.17.39.195:8080 [07:50:43]Content-Length: 623 [07:50:43]Content-Type: application/json [07:50:43] [07:50:43]POST finish read [07:50:43]Found Content-Length = 623 [07:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220736", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:43]execute_script... [07:50: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 : (3)220736", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:43]POST & json_proto [07:50:43]process_json_proto [07:50:43]json parsed OK: [07:50:43]protocol is kg_v1.0 [07:50:43]action value=close_receipt [07:50:43]process_action close_receipt [07:50:43]cmd_close_receipt [07:50:43]MH_GetDate [07:50:43]Write to MH i2c: F0 00 00 F6 06 EB [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: F0 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: F0 09 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: F0 09 00 F6 06 00 55 DF 73 66 99 81 91 64 10 [07:50:43]GetLastDocTimeStamp 1718865977 [07:50:43]current date 1718869845 [07:50:43]FM_GetShiftState [07:50:43]SAM_PROTO_GetShiftState [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 13 01 00 [07:50:43]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0E 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 56 [07:50:43]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [07:50:43]wFMCommunicate OK [07:50:43]SAM_PROTO_GetShiftState done [07:50:43]FM_GetShiftState done [07:50:43]opened in 1718843774 [07:50:43]opened+sec_in_day 1718930174 [07:50:43]quantity*price = 14000 [07:50:43]sum+1 = 14001 [07:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 28 20.06.2024 07:50 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76587 ФПД: 280524682795296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075045&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76587&fm=280524682795296&tin=02508201610067®Number=0000000000095696&sum=14000 0 [07:50:44]StoreToDocumentArchive [07:50:44]shift 393 fd 76587 [07:50:44]save to /storage/0393/doc_00076587 [07:50:44]save last doc name /storage/0393/doc_00076587 to /storage/kkm_last_doc_name [07:50:44]save OK [07:50:44]Clear old archive folders... [07:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:50:44]tlvbuf is 00DCC830 [07:50:44]SAM_PROTO_ClearQueue [07:50:44]wFMCommunicate request_size=4 [07:50:44]MH_SAM_APDU [07:50:44]CAPDU: 80 09 00 00 [07:50:44]Write to MH i2c: E2 08 00 04 07 80 09 00 00 00 00 00 00 7D [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:44]Read from MH i2c: E2 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [07:50:44]RAPDU: 90 00 [07:50:44]wFMCommunicate OK [07:50:44]SAM_PROTO_ClearQueue done [07:50:44]KKMCreateOFDPacket [07:50:44]OFDProtocolAddRootSTLVToBuf [07:50:44]FM_MakeSignedData [07:50:44]FM_MakeSignedData [07:50:44]SAM_PROTO_SignData [07:50:44]wFMCommunicate request_size=4 [07:50:44]MH_SAM_APDU [07:50:44]CAPDU: 80 0D 01 02 [07:50:44]Write to MH i2c: E2 08 00 05 07 80 0D 01 02 00 00 00 00 85 [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:44]Read from MH i2c: E2 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [07:50:44]RAPDU: 90 00 [07:50:44]wFMCommunicate OK [07:50:44]wFMCommunicate request_size=255 [07:50:44]MH_SAM_APDU [07:50:44]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 55 DF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 [07:50:44]Write to MH i2c: E2 02 01 06 07 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 55 DF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 00 00 D2 [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 03 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [07:50:45]RAPDU: 90 00 [07:50:45]wFMCommunicate OK [07:50:45]wFMCommunicate request_size=34 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2B 01 00 35 04 06 00 FF 22 BE 11 99 20 [07:50:45]Write to MH i2c: E2 25 00 07 07 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2B 01 00 35 04 06 00 FF 22 BE 11 99 20 00 00 46 [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 03 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [07:50:45]RAPDU: 90 00 [07:50:45]wFMCommunicate OK [07:50:45]wFMCommunicate request_size=4 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 0D 03 02 [07:50:45]Write to MH i2c: E2 08 00 08 07 80 0D 03 02 00 00 00 00 8A [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 0B 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 0B 00 08 07 00 D5 52 16 EC 1B 8D C0 22 90 00 3E [07:50:45]RAPDU: D5 52 16 EC 1B 8D C0 22 90 00 [07:50:45]wFMCommunicate OK [07:50:45]SAM_PROTO_SignData done [07:50:45]FM_MakeSignedData done [07:50:45]CreateOFDProtocolMessage [07:50:45]wFMCommunicate request_size=4 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 11 00 00 [07:50:45]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 17 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DA [07:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:50:45]wFMCommunicate OK [07:50:45]CreateOFDProtocolMessage done [07:50:45]OFDSenderStorePacket 76587 [07:50:45]StoreOFDPacket docnum=76587 [07:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 E1 D4 1F 01 D9 D3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 55 DF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2B 01 00 35 04 06 00 FF 22 BE 11 99 20 D5 52 16 EC 1B 8D C0 22 [07:50:45]CheckFolder [07:50:45]dirname=/storage/ofd_packets [07:50:45]CheckFolder done [07:50:45]ProducePacketName [07:50:45]name=ofd_packets/00076587 [07:50:45]NVStorageSaveData ofd_packets/00076587 [07:50:45]File name is /storage/ofd_packets/00076587 [07:50:45]Write 325 bytes [07:50:45]NVStorageSaveData done [07:50:45]OFDSenderStorePacket done [07:50:45]KKMCreateOFDPacket done [07:50:45]NVStorageSaveData kkm_last_timestamp [07:50:45]File name is /storage/kkm_last_timestamp [07:50:45]Write 4 bytes [07:50:45]NVStorageSaveData done [07:50:45]ExternCall_PrintAddStr [07:50:45]wPrintStart [07:50:45]Write to MH i2c: 01 00 00 0A 07 11 [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 07 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 FF 0F 26 [07:50:45]RasterBufferAndPrint [07:50:45]line Счет N : (3)220736 [07:50:45]line ИНН: 02508201610067 [07:50:45]line Контрольно-Кассовый Чек [07:50:45]line ПРОДАЖА [07:50:45]line Товар: 48743587 [07:50:45]line Сигареты Winston XStyle Silver [07:50:45]line 1.000 * 140.00 [07:50:45]line = 140.00 [07:50:45]line НДС 12% НСП 1% [07:50:45]line > о реализуемом товаре [07:50:45]line ИТОГО: 140.00 [07:50:45]line НСП 1% : 1.24 [07:50:45]line НДС 12% : 14.87 [07:50:45]line Наличными: 140.00 [07:50:45]line Безнал.: 0.00 [07:50:45]line Место: АЗС № 144 "Партнер Нефть" [07:50:45]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [07:50:45]line СНО: Общий режим [07:50:45]line Чек 28 20.06.2024 07:50 [07:50:45]line Смена: 393 ФФД: 1.0 [07:50:45]line ЗНМ: 0300000170 [07:50:45]line РНМ: 0000000000095696 [07:50:45]line Версия ККМ: 001 [07:50:45]line ФМ: 0000000000875009 [07:50:45]line ФД: 76587 [07:50:45]line ФПД: 280524682795296 [07:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075045&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76587&fm=280524682795296&tin=02508201610067®Number=0000000000095696&sum=14000 [07:50:45]line 0 [07:50:45]OFD Sender: Processing packet 76587 [packets to send 351, broken 350] [07:50:45]ProducePacketName [07:50:45]name=ofd_packets/00076587 [07:50:45]OFD Sender: To server: pG, [07:50:45]CommunicateWithHost lk.salyk.kg:30040 [07:50:45]ConnectInit lk.salyk.kg [07:50:45]written 0, free lines is 4095 [07:50:45]Connected sock=10 [07:50:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 E1 D4 1F 01 D9 D3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 55 DF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2B 01 00 35 04 06 00 FF 22 BE 11 99 20 D5 52 16 EC 1B 8D C0 22 [07:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 0A 39 47 00 D3 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2B 01 00 F4 03 04 00 F7 85 73 66 B6 04 01 00 00 2E AC D5 1C EB 96 7F 49 [07:50:46]CommunicateWithHost err = 0 [07:50:46]CheckOFDResponse [07:50:46]1017 (14) - 77093643461234 [07:50:46]1041 (16) - 0000000000875009 [07:50:46]1040 (4) - 76587 [07:50:46]1012 (4) - 20.06.2024 01:29 [07:50:46]1206 (1) - 0 [07:50:46]OFD Sender: Remove packet 76587 [07:50:46]ProducePacketName [07:50:46]name=ofd_packets/00076587 [07:50:46]NVStorageDeleteData [07:50:46]Write to MH i2c: 01 00 00 33 07 3A [07:50:46]Write i2c OK [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: 01 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: 01 07 00 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 D8 0C 25 [07:50:46]RasterBufferAndPrint [07:50:46]line [07:50:46]line [07:50:46]line [07:50:46]line [07:50:46]line [07:50:46]written 0, free lines is 3294 [07:50:46]MH_Cut [07:50:46]Write to MH i2c: D1 01 00 3A 07 01 13 [07:50:46]Write i2c OK [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: D1 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: D1 01 00 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: D1 01 00 3A 07 00 12 [07:50:46]Write to MH i2c: 01 00 00 3B 07 42 [07:50:46]Write i2c OK [07:50:46]MH_I2C_Read... [07:50:46]OFD Sender: No OFD packet to send [07:50:46]*** Cut start [07:50:46]*** Partial cut [07:50:46]*** CUTSNS_PIN = 1 [07:50:46]*** CUTSNS_PIN = 0 [07:50:47]*** Brake cut motor [07:50:47]Read from MH i2c: 01 [07:50:47]MH_I2C_Read... [07:50:47]*** Stop cut motor [07:50:47]*** Cut end [07:50:47]Read from MH i2c: 01 07 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 FF 0F 57 [07:50:47]process_action close_receipt done [07:50:47]requested_data is exist [07:50:47]produce_requested_data [07:50:47]requested_item fm.sn is exist - process it [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 11 00 00 [07:50:47]Write to MH i2c: E2 08 00 3C 07 80 11 00 00 00 00 00 00 BD [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 17 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 17 00 3C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0D [07:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:50:47]wFMCommunicate OK [07:50:47]requested_item fd.num is exist - process it [07:50:47]SAM_PROTO_GetFieldsCounters [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 13 00 00 [07:50:47]Write to MH i2c: E2 08 00 3D 07 80 13 00 00 00 00 00 00 C0 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 62 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 62 00 3D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [07:50:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:47]wFMCommunicate OK [07:50:47]SAM_PROTO_GetFieldsCounters done [07:50:47]requested_item shift.num is exist - process it [07:50:47]requested_item shift.opened is exist - process it [07:50:47]req_shift_opened [07:50:47]FM_GetShiftState [07:50:47]SAM_PROTO_GetShiftState [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 13 01 00 [07:50:47]Write to MH i2c: E2 08 00 3E 07 80 13 01 00 00 00 00 00 C2 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 0E 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 0E 00 3E 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 9E [07:50:47]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [07:50:47]wFMCommunicate OK [07:50:47]SAM_PROTO_GetShiftState done [07:50:47]FM_GetShiftState done [07:50:47]req_shift_opened done [07:50:47]requested_item shift.open_date is exist - process it [07:50:47]req_shift_open_date [07:50:47]req_shift_open_date done [07:50:47]produce_requested_data done [07:50:47]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76587,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [07:50:47]process_action_free close_receipt [07:50:47]json_value_free [07:50:47]json_value_free done [07:50:47]process_json_proto returns [07:50:47]Send response to host [07:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76587,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [07:50:47]free response buf [07:50:47]execute_script done [07:50:47]execute_script returns [07:50:47]free content buf [07:50:47]Sock 9.Close socket [07:50:47]Sock 9.Thread stoped [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:03]accept exits with 7 [08:12:03]New connection [08:12:03]New thread 3067133284 created [08:12:03]Thread 3066989924 joined [08:12:03]Waiting for new connection... [08:12:03] Sock 7.Parse request [08:12:03]Sock 7.Check first char [08:12:03]Sock 7.First char is OK [08:12:03]request: POST /json_proto HTTP/1.0 [08:12:03]Method: POST [08:12:03]URL: /json_proto [08:12:03]Method is POST - this is cgi request [08:12:03]url: /json_proto [08:12:03]query_string will be loaded in cgi processing [08:12:03]execute_cgi json_proto POST (null) [08:12:03]execute_cgi path=json_proto method=POST [08:12:03]POST find Content-Length [08:12:03]Host: 172.17.39.195:8080 [08:12:03]Content-Length: 621 [08:12:03]Content-Type: application/json [08:12:03] [08:12:03]POST finish read [08:12:03]Found Content-Length = 621 [08:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220737", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:03]execute_script... [08:12: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 : (3)220737", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:03]POST & json_proto [08:12:03]process_json_proto [08:12:03]json parsed OK: [08:12:03]protocol is kg_v1.0 [08:12:03]action value=close_receipt [08:12:03]process_action close_receipt [08:12:03]cmd_close_receipt [08:12:03]MH_GetDate [08:12:03]Write to MH i2c: F0 00 00 3F 07 35 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: F0 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: F0 09 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: F0 09 00 3F 07 00 55 E4 73 66 99 81 91 64 5F [08:12:03]GetLastDocTimeStamp 1718869845 [08:12:03]current date 1718871125 [08:12:03]FM_GetShiftState [08:12:03]SAM_PROTO_GetShiftState [08:12:03]wFMCommunicate request_size=4 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 13 01 00 [08:12:03]Write to MH i2c: E2 08 00 40 07 80 13 01 00 00 00 00 00 C4 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 0E 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 0E 00 40 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A0 [08:12:03]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:12:03]wFMCommunicate OK [08:12:03]SAM_PROTO_GetShiftState done [08:12:03]FM_GetShiftState done [08:12:03]opened in 1718843774 [08:12:03]opened+sec_in_day 1718930174 [08:12:03]quantity*price = 14000 [08:12:03]sum+1 = 14001 [08:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 29 20.06.2024 08:12 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76588 ФПД: 117875036616243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T081205&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76588&fm=117875036616243&tin=02508201610067®Number=0000000000095696&sum=14000 0 [08:12:04]StoreToDocumentArchive [08:12:04]shift 393 fd 76588 [08:12:04]save to /storage/0393/doc_00076588 [08:12:04]save last doc name /storage/0393/doc_00076588 to /storage/kkm_last_doc_name [08:12:04]save OK [08:12:04]Clear old archive folders... [08:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:12:04]tlvbuf is 00DBCBF0 [08:12:04]SAM_PROTO_ClearQueue [08:12:04]wFMCommunicate request_size=4 [08:12:04]MH_SAM_APDU [08:12:04]CAPDU: 80 09 00 00 [08:12:04]Write to MH i2c: E2 08 00 4D 07 80 09 00 00 00 00 00 00 C6 [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:04]Read from MH i2c: E2 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 03 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [08:12:04]RAPDU: 90 00 [08:12:04]wFMCommunicate OK [08:12:04]SAM_PROTO_ClearQueue done [08:12:04]KKMCreateOFDPacket [08:12:04]OFDProtocolAddRootSTLVToBuf [08:12:04]FM_MakeSignedData [08:12:04]FM_MakeSignedData [08:12:04]SAM_PROTO_SignData [08:12:04]wFMCommunicate request_size=4 [08:12:04]MH_SAM_APDU [08:12:04]CAPDU: 80 0D 01 02 [08:12:04]Write to MH i2c: E2 08 00 4E 07 80 0D 01 02 00 00 00 00 CE [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:04]Read from MH i2c: E2 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 03 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [08:12:04]RAPDU: 90 00 [08:12:04]wFMCommunicate OK [08:12:04]wFMCommunicate request_size=255 [08:12:04]MH_SAM_APDU [08:12:04]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 55 E4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [08:12:04]Write to MH i2c: E2 02 01 4F 07 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 55 E4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 72 [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 03 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 03 00 4F 07 00 90 00 CA [08:12:05]RAPDU: 90 00 [08:12:05]wFMCommunicate OK [08:12:05]wFMCommunicate request_size=32 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2B 01 00 35 04 06 00 6B 34 EB AF 76 33 [08:12:05]Write to MH i2c: E2 23 00 50 07 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2B 01 00 35 04 06 00 6B 34 EB AF 76 33 00 00 65 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 03 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [08:12:05]RAPDU: 90 00 [08:12:05]wFMCommunicate OK [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 0D 03 02 [08:12:05]Write to MH i2c: E2 08 00 51 07 80 0D 03 02 00 00 00 00 D3 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0B 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0B 00 51 07 00 2C DC 1B 80 E6 F2 35 21 90 00 A5 [08:12:05]RAPDU: 2C DC 1B 80 E6 F2 35 21 90 00 [08:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_SignData done [08:12:05]FM_MakeSignedData done [08:12:05]CreateOFDProtocolMessage [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 11 00 00 [08:12:05]Write to MH i2c: E2 08 00 52 07 80 11 00 00 00 00 00 00 D3 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 52 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 23 [08:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:12:05]wFMCommunicate OK [08:12:05]CreateOFDProtocolMessage done [08:12:05]OFDSenderStorePacket 76588 [08:12:05]StoreOFDPacket docnum=76588 [08:12:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 7D 57 1D 01 15 54 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 55 E4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2B 01 00 35 04 06 00 6B 34 EB AF 76 33 2C DC 1B 80 E6 F2 35 21 [08:12:05]CheckFolder [08:12:05]dirname=/storage/ofd_packets [08:12:05]CheckFolder done [08:12:05]ProducePacketName [08:12:05]name=ofd_packets/00076588 [08:12:05]NVStorageSaveData ofd_packets/00076588 [08:12:05]File name is /storage/ofd_packets/00076588 [08:12:05]Write 323 bytes [08:12:05]NVStorageSaveData done [08:12:05]OFDSenderStorePacket done [08:12:05]KKMCreateOFDPacket done [08:12:05]NVStorageSaveData kkm_last_timestamp [08:12:05]File name is /storage/kkm_last_timestamp [08:12:05]Write 4 bytes [08:12:05]NVStorageSaveData done [08:12:05]ExternCall_PrintAddStr [08:12:05]wPrintStart [08:12:05]Write to MH i2c: 01 00 00 53 07 5A [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: 01 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: 01 07 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [08:12:05]RasterBufferAndPrint [08:12:05]line Счет N : (3)220737 [08:12:05]line ИНН: 02508201610067 [08:12:05]line Контрольно-Кассовый Чек [08:12:05]line ПРОДАЖА [08:12:05]line Товар: 48747059 [08:12:05]line Сигареты Winston Legend Blue [08:12:05]line 1.000 * 140.00 [08:12:05]line = 140.00 [08:12:05]line НДС 12% НСП 1% [08:12:05]line > о реализуемом товаре [08:12:05]line ИТОГО: 140.00 [08:12:05]line НСП 1% : 1.24 [08:12:05]line НДС 12% : 14.87 [08:12:05]line Наличными: 140.00 [08:12:05]line Безнал.: 0.00 [08:12:05]line Место: АЗС № 144 "Партнер Нефть" [08:12:05]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:12:05]line СНО: Общий режим [08:12:05]line Чек 29 20.06.2024 08:12 [08:12:05]line Смена: 393 ФФД: 1.0 [08:12:05]line ЗНМ: 0300000170 [08:12:05]line РНМ: 0000000000095696 [08:12:05]line Версия ККМ: 001 [08:12:05]line ФМ: 0000000000875009 [08:12:05]line ФД: 76588 [08:12:05]line ФПД: 117875036616243 [08:12:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T081205&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76588&fm=117875036616243&tin=02508201610067®Number=0000000000095696&sum=14000 [08:12:05]line 0 [08:12:05]OFD Sender: Processing packet 76588 [packets to send 351, broken 350] [08:12:05]ProducePacketName [08:12:05]name=ofd_packets/00076588 [08:12:05]OFD Sender: To server: pG, [08:12:05]CommunicateWithHost lk.salyk.kg:30040 [08:12:05]ConnectInit lk.salyk.kg [08:12:05]written 0, free lines is 4095 [08:12:05]Connected sock=10 [08:12:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 7D 57 1D 01 15 54 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 55 E4 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2B 01 00 35 04 06 00 6B 34 EB AF 76 33 2C DC 1B 80 E6 F2 35 21 [08:12:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 53 B7 47 00 D1 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2B 01 00 F4 03 04 00 F7 8A 73 66 B6 04 01 00 00 EB 47 AD 4E 82 D9 84 53 [08:12:05]CommunicateWithHost err = 0 [08:12:05]CheckOFDResponse [08:12:05]1017 (14) - 77093643461234 [08:12:05]1041 (16) - 0000000000875009 [08:12:05]1040 (4) - 76588 [08:12:05]1012 (4) - 20.06.2024 01:50 [08:12:05]1206 (1) - 0 [08:12:05]OFD Sender: Remove packet 76588 [08:12:05]ProducePacketName [08:12:05]name=ofd_packets/00076588 [08:12:05]NVStorageDeleteData [08:12:06]Write to MH i2c: 01 00 00 7C 07 83 [08:12:06]Write i2c OK [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: 01 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: 01 07 00 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 D9 0C 6F [08:12:06]RasterBufferAndPrint [08:12:06]line [08:12:06]line [08:12:06]line [08:12:06]line [08:12:06]line [08:12:06]written 0, free lines is 3296 [08:12:06]MH_Cut [08:12:06]Write to MH i2c: D1 01 00 83 07 01 5C [08:12:06]Write i2c OK [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: D1 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: D1 01 00 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: D1 01 00 83 07 00 5B [08:12:06]Write to MH i2c: 01 00 00 84 07 8B [08:12:06]Write i2c OK [08:12:06]MH_I2C_Read... [08:12:06]OFD Sender: No OFD packet to send [08:12:06]*** Cut start [08:12:06]*** Partial cut [08:12:06]*** CUTSNS_PIN = 1 [08:12:06]*** CUTSNS_PIN = 0 [08:12:07]*** Brake cut motor [08:12:07]Read from MH i2c: 01 [08:12:07]MH_I2C_Read... [08:12:07]*** Stop cut motor [08:12:07]*** Cut end [08:12:07]Read from MH i2c: 01 07 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 FF 0F A0 [08:12:07]process_action close_receipt done [08:12:07]requested_data is exist [08:12:07]produce_requested_data [08:12:07]requested_item fm.sn is exist - process it [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 11 00 00 [08:12:07]Write to MH i2c: E2 08 00 85 07 80 11 00 00 00 00 00 00 06 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 17 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 17 00 85 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 56 [08:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:12:07]wFMCommunicate OK [08:12:07]requested_item fd.num is exist - process it [08:12:07]SAM_PROTO_GetFieldsCounters [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 13 00 00 [08:12:07]Write to MH i2c: E2 08 00 86 07 80 13 00 00 00 00 00 00 09 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 62 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 62 00 86 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:07]wFMCommunicate OK [08:12:07]SAM_PROTO_GetFieldsCounters done [08:12:07]requested_item shift.num is exist - process it [08:12:07]requested_item shift.opened is exist - process it [08:12:07]req_shift_opened [08:12:07]FM_GetShiftState [08:12:07]SAM_PROTO_GetShiftState [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 13 01 00 [08:12:07]Write to MH i2c: E2 08 00 87 07 80 13 01 00 00 00 00 00 0B [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 0E 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 0E 00 87 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E7 [08:12:07]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:12:07]wFMCommunicate OK [08:12:07]SAM_PROTO_GetShiftState done [08:12:07]FM_GetShiftState done [08:12:07]req_shift_opened done [08:12:07]requested_item shift.open_date is exist - process it [08:12:07]req_shift_open_date [08:12:07]req_shift_open_date done [08:12:07]produce_requested_data done [08:12:07]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76588,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:12:07]process_action_free close_receipt [08:12:07]json_value_free [08:12:07]json_value_free done [08:12:07]process_json_proto returns [08:12:07]Send response to host [08:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76588,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:12:07]free response buf [08:12:07]execute_script done [08:12:07]execute_script returns [08:12:07]free content buf [08:12:07]Sock 7.Close socket [08:12:07]Sock 7.Thread stoped [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: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:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]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: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:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20: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:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:04]accept exits with 9 [08:31:04]New connection [08:31:04]New thread 3066989924 created [08:31:04]Thread 3067133284 joined [08:31:04]Waiting for new connection... [08:31:04] Sock 9.Parse request [08:31:04]Sock 9.Check first char [08:31:04]Sock 9.First char is OK [08:31:04]request: POST /json_proto HTTP/1.0 [08:31:04]Method: POST [08:31:04]URL: /json_proto [08:31:04]Method is POST - this is cgi request [08:31:04]url: /json_proto [08:31:04]query_string will be loaded in cgi processing [08:31:04]execute_cgi json_proto POST (null) [08:31:04]execute_cgi path=json_proto method=POST [08:31:04]POST find Content-Length [08:31:04]Host: 172.17.39.195:8080 [08:31:04]Content-Length: 621 [08:31:04]Content-Type: application/json [08:31:04] [08:31:04]POST finish read [08:31:04]Found Content-Length = 621 [08:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220738", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:04]execute_script... [08:31: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 : (3)220738", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:04]POST & json_proto [08:31:04]process_json_proto [08:31:04]json parsed OK: [08:31:04]protocol is kg_v1.0 [08:31:04]action value=close_receipt [08:31:04]process_action close_receipt [08:31:04]cmd_close_receipt [08:31:04]MH_GetDate [08:31:04]Write to MH i2c: F0 00 00 88 07 7E [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: F0 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: F0 09 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: F0 09 00 88 07 00 CA E8 73 66 99 81 91 64 21 [08:31:04]GetLastDocTimeStamp 1718871125 [08:31:04]current date 1718872266 [08:31:04]FM_GetShiftState [08:31:04]SAM_PROTO_GetShiftState [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 13 01 00 [08:31:04]Write to MH i2c: E2 08 00 89 07 80 13 01 00 00 00 00 00 0D [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 0E 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 0E 00 89 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E9 [08:31:04]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:31:04]wFMCommunicate OK [08:31:04]SAM_PROTO_GetShiftState done [08:31:04]FM_GetShiftState done [08:31:04]opened in 1718843774 [08:31:04]opened+sec_in_day 1718930174 [08:31:04]quantity*price = 14000 [08:31:04]sum+1 = 14001 [08:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 30 20.06.2024 08:31 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76589 ФПД: 272074266660915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083107&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76589&fm=272074266660915&tin=02508201610067®Number=0000000000095696&sum=14000 0 [08:31:05]StoreToDocumentArchive [08:31:05]shift 393 fd 76589 [08:31:05]save to /storage/0393/doc_00076589 [08:31:05]save last doc name /storage/0393/doc_00076589 to /storage/kkm_last_doc_name [08:31:05]save OK [08:31:05]Clear old archive folders... [08:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:31:05]tlvbuf is 00DE4620 [08:31:05]SAM_PROTO_ClearQueue [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 09 00 00 [08:31:05]Write to MH i2c: E2 08 00 96 07 80 09 00 00 00 00 00 00 0F [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 96 07 00 90 00 11 [08:31:05]RAPDU: 90 00 [08:31:05]wFMCommunicate OK [08:31:05]SAM_PROTO_ClearQueue done [08:31:05]KKMCreateOFDPacket [08:31:05]OFDProtocolAddRootSTLVToBuf [08:31:05]FM_MakeSignedData [08:31:05]FM_MakeSignedData [08:31:05]SAM_PROTO_SignData [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 0D 01 02 [08:31:05]Write to MH i2c: E2 08 00 97 07 80 0D 01 02 00 00 00 00 17 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 97 07 00 90 00 12 [08:31:05]RAPDU: 90 00 [08:31:05]wFMCommunicate OK [08:31:05]wFMCommunicate request_size=255 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 CB E8 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [08:31:05]Write to MH i2c: E2 02 01 98 07 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 CB E8 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 36 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 98 07 00 90 00 13 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=32 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2B 01 00 35 04 06 00 F7 73 3A 04 50 33 [08:31:06]Write to MH i2c: E2 23 00 99 07 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2B 01 00 35 04 06 00 F7 73 3A 04 50 33 00 00 F8 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 03 02 [08:31:06]Write to MH i2c: E2 08 00 9A 07 80 0D 03 02 00 00 00 00 1C [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0B 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0B 00 9A 07 00 85 32 00 50 B9 B9 84 8E 90 00 A8 [08:31:06]RAPDU: 85 32 00 50 B9 B9 84 8E 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_SignData done [08:31:06]FM_MakeSignedData done [08:31:06]CreateOFDProtocolMessage [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 11 00 00 [08:31:06]Write to MH i2c: E2 08 00 9B 07 80 11 00 00 00 00 00 00 1C [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 9B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6C [08:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:31:06]wFMCommunicate OK [08:31:06]CreateOFDProtocolMessage done [08:31:06]OFDSenderStorePacket 76589 [08:31:06]StoreOFDPacket docnum=76589 [08:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 0F 57 1D 01 03 32 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 CB E8 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2B 01 00 35 04 06 00 F7 73 3A 04 50 33 85 32 00 50 B9 B9 84 8E [08:31:06]CheckFolder [08:31:06]dirname=/storage/ofd_packets [08:31:06]CheckFolder done [08:31:06]ProducePacketName [08:31:06]name=ofd_packets/00076589 [08:31:06]NVStorageSaveData ofd_packets/00076589 [08:31:06]File name is /storage/ofd_packets/00076589 [08:31:06]Write 323 bytes [08:31:06]NVStorageSaveData done [08:31:06]OFDSenderStorePacket done [08:31:06]KKMCreateOFDPacket done [08:31:06]NVStorageSaveData kkm_last_timestamp [08:31:06]File name is /storage/kkm_last_timestamp [08:31:06]Write 4 bytes [08:31:06]NVStorageSaveData done [08:31:06]ExternCall_PrintAddStr [08:31:06]wPrintStart [08:31:06]Write to MH i2c: 01 00 00 9C 07 A3 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [08:31:06]RasterBufferAndPrint [08:31:06]line Счет N : (3)220738 [08:31:06]line ИНН: 02508201610067 [08:31:06]line Контрольно-Кассовый Чек [08:31:06]line ПРОДАЖА [08:31:06]line Товар: 48747059 [08:31:06]line Сигареты Winston Legend Blue [08:31:06]line 1.000 * 140.00 [08:31:06]line = 140.00 [08:31:06]line НДС 12% НСП 1% [08:31:06]line > о реализуемом товаре [08:31:06]line ИТОГО: 140.00 [08:31:06]line НСП 1% : 1.24 [08:31:06]line НДС 12% : 14.87 [08:31:06]line Наличными: 140.00 [08:31:06]line Безнал.: 0.00 [08:31:06]line Место: АЗС № 144 "Партнер Нефть" [08:31:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:31:06]line СНО: Общий режим [08:31:06]line Чек 30 20.06.2024 08:31 [08:31:06]line Смена: 393 ФФД: 1.0 [08:31:06]line ЗНМ: 0300000170 [08:31:06]line РНМ: 0000000000095696 [08:31:06]line Версия ККМ: 001 [08:31:06]line ФМ: 0000000000875009 [08:31:06]line ФД: 76589 [08:31:06]line ФПД: 272074266660915 [08:31:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083107&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76589&fm=272074266660915&tin=02508201610067®Number=0000000000095696&sum=14000 [08:31:06]line 0 [08:31:06]OFD Sender: Processing packet 76589 [packets to send 351, broken 350] [08:31:06]ProducePacketName [08:31:06]name=ofd_packets/00076589 [08:31:06]OFD Sender: To server: pG, [08:31:06]CommunicateWithHost lk.salyk.kg:30040 [08:31:06]ConnectInit lk.salyk.kg [08:31:06]written 0, free lines is 4095 [08:31:06]Connected sock=10 [08:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 0F 57 1D 01 03 32 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 CB E8 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2B 01 00 35 04 06 00 F7 73 3A 04 50 33 85 32 00 50 B9 B9 84 8E [08:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 93 88 47 00 6F EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2B 01 00 F4 03 04 00 6C 8F 73 66 B6 04 01 00 00 E9 86 97 39 24 FD BB 3A [08:31:07]CommunicateWithHost err = 0 [08:31:07]CheckOFDResponse [08:31:07]1017 (14) - 77093643461234 [08:31:07]1041 (16) - 0000000000875009 [08:31:07]1040 (4) - 76589 [08:31:07]1012 (4) - 20.06.2024 02:09 [08:31:07]1206 (1) - 0 [08:31:07]OFD Sender: Remove packet 76589 [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00076589 [08:31:07]NVStorageDeleteData [08:31:07]Write to MH i2c: 01 00 00 C5 07 CC [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 C5 07 00 00 00 00 00 E7 0C C6 [08:31:07]RasterBufferAndPrint [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]written 0, free lines is 3310 [08:31:07]MH_Cut [08:31:07]Write to MH i2c: D1 01 00 CC 07 01 A5 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 CC 07 00 A4 [08:31:07]Write to MH i2c: 01 00 00 CD 07 D4 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]OFD Sender: No OFD packet to send [08:31:07]*** Cut start [08:31:07]*** Partial cut [08:31:07]*** CUTSNS_PIN = 1 [08:31:07]*** CUTSNS_PIN = 0 [08:31:08]*** Brake cut motor [08:31:08]Read from MH i2c: 01 [08:31:08]MH_I2C_Read... [08:31:08]*** Stop cut motor [08:31:08]*** Cut end [08:31:08]Read from MH i2c: 01 07 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: 01 07 00 CD 07 00 00 00 00 00 FF 0F E9 [08:31:08]process_action close_receipt done [08:31:08]requested_data is exist [08:31:08]produce_requested_data [08:31:08]requested_item fm.sn is exist - process it [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 11 00 00 [08:31:08]Write to MH i2c: E2 08 00 CE 07 80 11 00 00 00 00 00 00 4F [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 17 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 17 00 CE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9F [08:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:31:08]wFMCommunicate OK [08:31:08]requested_item fd.num is exist - process it [08:31:08]SAM_PROTO_GetFieldsCounters [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 13 00 00 [08:31:08]Write to MH i2c: E2 08 00 CF 07 80 13 00 00 00 00 00 00 52 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 62 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 62 00 CF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [08:31:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_GetFieldsCounters done [08:31:08]requested_item shift.num is exist - process it [08:31:08]requested_item shift.opened is exist - process it [08:31:08]req_shift_opened [08:31:08]FM_GetShiftState [08:31:08]SAM_PROTO_GetShiftState [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 13 01 00 [08:31:08]Write to MH i2c: E2 08 00 D0 07 80 13 01 00 00 00 00 00 54 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 D0 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 30 [08:31:08]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_GetShiftState done [08:31:08]FM_GetShiftState done [08:31:08]req_shift_opened done [08:31:08]requested_item shift.open_date is exist - process it [08:31:08]req_shift_open_date [08:31:08]req_shift_open_date done [08:31:08]produce_requested_data done [08:31:08]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76589,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:31:08]process_action_free close_receipt [08:31:08]json_value_free [08:31:08]json_value_free done [08:31:08]process_json_proto returns [08:31:08]Send response to host [08:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76589,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:31:08]free response buf [08:31:08]execute_script done [08:31:08]execute_script returns [08:31:08]free content buf [08:31:08]Sock 9.Close socket [08:31:08]Sock 9.Thread stoped [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34: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:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:46]accept exits with 7 [08:38:46]New connection [08:38:46]New thread 3067133284 created [08:38:46]Thread 3066989924 joined [08:38:46]Waiting for new connection... [08:38:46] Sock 7.Parse request [08:38:46]Sock 7.Check first char [08:38:46]Sock 7.First char is OK [08:38:46]request: POST /json_proto HTTP/1.0 [08:38:46]Method: POST [08:38:46]URL: /json_proto [08:38:46]Method is POST - this is cgi request [08:38:46]url: /json_proto [08:38:46]query_string will be loaded in cgi processing [08:38:46]execute_cgi json_proto POST (null) [08:38:46]execute_cgi path=json_proto method=POST [08:38:46]POST find Content-Length [08:38:46]Host: 172.17.39.195:8080 [08:38:46]Content-Length: 215 [08:38:46]Content-Type: application/json [08:38:46] [08:38:46]POST finish read [08:38:46]Found Content-Length = 215 [08:38:46]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:38:46]execute_script... [08:38:46]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:38:46]POST & json_proto [08:38:46]process_json_proto [08:38:46]json parsed OK: [08:38:46]protocol is kg_v1.0 [08:38:46]action value=get_value [08:38:46]process_action get_value [08:38:46]cmd_get_value [08:38:46]process_action get_value done [08:38:46]requested_data is exist [08:38:46]produce_requested_data [08:38:46]requested_item kkm.sn is exist - process it [08:38:46]requested_item kkm.ver is exist - process it [08:38:46]requested_item fm.sn is exist - process it [08:38:46]wFMCommunicate request_size=4 [08:38:46]MH_SAM_APDU [08:38:46]CAPDU: 80 11 00 00 [08:38:46]Write to MH i2c: E2 08 00 D1 07 80 11 00 00 00 00 00 00 52 [08:38:46]Write i2c OK [08:38:46]MH_I2C_Read... [08:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:46]Read from MH i2c: E2 [08:38:46]MH_I2C_Read... [08:38:46]Read from MH i2c: E2 17 00 [08:38:46]MH_I2C_Read... [08:38:46]Read from MH i2c: E2 17 00 D1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A2 [08:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:38:46]wFMCommunicate OK [08:38:46]requested_item fd.num is exist - process it [08:38:46]SAM_PROTO_GetFieldsCounters [08:38:46]wFMCommunicate request_size=4 [08:38:46]MH_SAM_APDU [08:38:46]CAPDU: 80 13 00 00 [08:38:46]Write to MH i2c: E2 08 00 D2 07 80 13 00 00 00 00 00 00 55 [08:38:46]Write i2c OK [08:38:46]MH_I2C_Read... [08:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:46]Read from MH i2c: E2 [08:38:46]MH_I2C_Read... [08:38:46]Read from MH i2c: E2 62 00 [08:38:46]MH_I2C_Read... [08:38:46]Read from MH i2c: E2 62 00 D2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [08:38:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:46]wFMCommunicate OK [08:38:46]SAM_PROTO_GetFieldsCounters done [08:38:46]requested_item shift.num is exist - process it [08:38:46]requested_item shift.opened is exist - process it [08:38:46]req_shift_opened [08:38:46]FM_GetShiftState [08:38:46]SAM_PROTO_GetShiftState [08:38:46]wFMCommunicate request_size=4 [08:38:46]MH_SAM_APDU [08:38:46]CAPDU: 80 13 01 00 [08:38:46]Write to MH i2c: E2 08 00 D3 07 80 13 01 00 00 00 00 00 57 [08:38:46]Write i2c OK [08:38:46]MH_I2C_Read... [08:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:46]Read from MH i2c: E2 [08:38:46]MH_I2C_Read... [08:38:46]Read from MH i2c: E2 0E 00 [08:38:46]MH_I2C_Read... [08:38:46]Read from MH i2c: E2 0E 00 D3 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 33 [08:38:46]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:38:46]wFMCommunicate OK [08:38:46]SAM_PROTO_GetShiftState done [08:38:46]FM_GetShiftState done [08:38:46]req_shift_opened done [08:38:46]requested_item shift.open_date is exist - process it [08:38:46]req_shift_open_date [08:38:46]req_shift_open_date done [08:38:46]produce_requested_data done [08:38:46]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76589,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:38:46]process_action_free get_value [08:38:46]json_value_free [08:38:46]json_value_free done [08:38:46]process_json_proto returns [08:38:46]Send response to host [08:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76589,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:38:46]free response buf [08:38:46]execute_script done [08:38:46]execute_script returns [08:38:46]free content buf [08:38:46]Sock 7.Close socket [08:38:46]Sock 7.Thread stoped [08:38:46]accept exits with 9 [08:38:46]New connection [08:38:46]New thread 3066989924 created [08:38:46]Thread 3067133284 joined [08:38:46]Waiting for new connection... [08:38:46] Sock 9.Parse request [08:38:46]Sock 9.Check first char [08:38:46]Sock 9.First char is OK [08:38:46]request: POST /json_proto HTTP/1.0 [08:38:46]Method: POST [08:38:46]URL: /json_proto [08:38:46]Method is POST - this is cgi request [08:38:46]url: /json_proto [08:38:46]query_string will be loaded in cgi processing [08:38:46]execute_cgi json_proto POST (null) [08:38:46]execute_cgi path=json_proto method=POST [08:38:46]POST find Content-Length [08:38:46]Host: 172.17.39.195:8080 [08:38:46]Content-Length: 331 [08:38:46]Content-Type: application/json [08:38:46] [08:38:46]POST finish read [08:38:46]Found Content-Length = 331 [08:38:46]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:38:46]execute_script... [08:38:46]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:38:46]POST & json_proto [08:38:46]process_json_proto [08:38:46]json parsed OK: [08:38:46]protocol is kg_v1.0 [08:38:46]action value=get_value [08:38:46]process_action get_value [08:38:46]cmd_get_value [08:38:46]process_action get_value done [08:38:46]requested_data is exist [08:38:46]produce_requested_data [08:38:46]requested_item fm.sale.total is exist - process it [08:38:46]SAM_PROTO_GetFMData [08:38:46]wFMCommunicate request_size=4 [08:38:46]MH_SAM_APDU [08:38:46]CAPDU: 80 13 03 00 [08:38:46]Write to MH i2c: E2 08 00 D4 07 80 13 03 00 00 00 00 00 5A [08:38:46]Write i2c OK [08:38:46]MH_I2C_Read... [08:38:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:38:47]Read from MH i2c: E2 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 D4 07 00 C6 04 85 04 C2 04 6E 04 04 00 1B 28 01 00 69 04 A3 00 6F 04 04 00 DE 24 01 00 B1 04 05 00 BE 3E 2B B0 01 70 04 05 00 B4 A7 FE 6C 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE BF E6 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 21 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 E4 [08:38:47]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 1B 28 01 00 69 04 A3 00 6F 04 04 00 DE 24 01 00 B1 04 05 00 BE 3E 2B B0 01 70 04 05 00 B4 A7 FE 6C 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AE BF E6 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 21 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 [08:38:47]wFMCommunicate OK [08:38:47]wFMCommunicate request_size=4 [08:38:47]MH_SAM_APDU [08:38:47]CAPDU: 80 17 00 00 [08:38:47]Write to MH i2c: E2 08 00 D5 07 80 17 00 00 00 00 00 00 5C [08:38:47]Write i2c OK [08:38:47]MH_I2C_Read... [08:38:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:38:47]Read from MH i2c: E2 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 D5 07 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 9A [08:38:47]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 [08:38:47]wFMCommunicate OK [08:38:47]wFMCommunicate request_size=4 [08:38:47]MH_SAM_APDU [08:38:47]CAPDU: 80 17 00 00 [08:38:47]Write to MH i2c: E2 08 00 D6 07 80 17 00 00 00 00 00 00 5D [08:38:47]Write i2c OK [08:38:47]MH_I2C_Read... [08:38:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:38:47]Read from MH i2c: E2 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 D6 07 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 84 [08:38:47]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [08:38:47]wFMCommunicate OK [08:38:47]wFMCommunicate request_size=4 [08:38:47]MH_SAM_APDU [08:38:47]CAPDU: 80 17 00 00 [08:38:47]Write to MH i2c: E2 08 00 D7 07 80 17 00 00 00 00 00 00 5E [08:38:47]Write i2c OK [08:38:47]MH_I2C_Read... [08:38:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:38:47]Read from MH i2c: E2 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 [08:38:47]MH_I2C_Read... [08:38:47]Read from MH i2c: E2 FD 00 D7 07 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [08:38:47]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:38:47]wFMCommunicate OK [08:38:47]wFMCommunicate request_size=4 [08:38:47]MH_SAM_APDU [08:38:47]CAPDU: 80 17 00 00 [08:38:47]Write to MH i2c: E2 08 00 D8 07 80 17 00 00 00 00 00 00 5F [08:38:47]Write i2c OK [08:38:47]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 E3 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 E3 00 D8 07 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3E [08:38:48]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:38:48]wFMCommunicate OK [08:38:48]SAM_PROTO_GetFMData done [08:38:48]requested_item fm.sale_refund.total is exist - process it [08:38:48]requested_item fm.buy.total is exist - process it [08:38:48]requested_item shift.sale.total is exist - process it [08:38:48]SAM_PROTO_GetShiftData [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 13 02 00 [08:38:48]Write to MH i2c: E2 08 00 D9 07 80 13 02 00 00 00 00 00 5E [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]OFD Sender: No OFD packet to send [08:38:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 FD 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 FD 00 D9 07 00 AD 04 AA 04 A9 04 6E 04 04 00 1E 00 00 00 69 04 9A 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 8D B5 0C 70 04 03 00 34 F2 0B 72 04 02 00 59 C3 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 8A 59 01 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 C6 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 BB [08:38:48]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1E 00 00 00 69 04 9A 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 8D B5 0C 70 04 03 00 34 F2 0B 72 04 02 00 59 C3 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 8A 59 01 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 C6 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [08:38:48]wFMCommunicate OK [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 17 00 00 [08:38:48]Write to MH i2c: E2 08 00 DA 07 80 17 00 00 00 00 00 00 61 [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 FD 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 FD 00 DA 07 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 73 [08:38:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [08:38:48]wFMCommunicate OK [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 17 00 00 [08:38:48]Write to MH i2c: E2 08 00 DB 07 80 17 00 00 00 00 00 00 62 [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:38:49]Read from MH i2c: E2 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 FD 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 FD 00 DB 07 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 26 [08:38:49]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [08:38:49]wFMCommunicate OK [08:38:49]wFMCommunicate request_size=4 [08:38:49]MH_SAM_APDU [08:38:49]CAPDU: 80 17 00 00 [08:38:49]Write to MH i2c: E2 08 00 DC 07 80 17 00 00 00 00 00 00 63 [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:38:49]Read from MH i2c: E2 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 FD 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 FD 00 DC 07 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 D8 [08:38:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [08:38:49]wFMCommunicate OK [08:38:49]wFMCommunicate request_size=4 [08:38:49]MH_SAM_APDU [08:38:49]CAPDU: 80 17 00 00 [08:38:49]Write to MH i2c: E2 08 00 DD 07 80 17 00 00 00 00 00 00 64 [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:38:49]Read from MH i2c: E2 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 CA 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 CA 00 DD 07 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 49 [08:38:49]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:38:49]wFMCommunicate OK [08:38:49]SAM_PROTO_GetShiftData done [08:38:49]requested_item shift.sale.total_cash is exist - process it [08:38:49]requested_item shift.sale_refund.total is exist - process it [08:38:49]requested_item shift.sale_refund.total_cash is exist - process it [08:38:49]requested_item shift.buy.total is exist - process it [08:38:49]requested_item shift.buy.total_cash is exist - process it [08:38:49]produce_requested_data done [08:38:49]produce_requested_data return {"fm.sale.total":72505914.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":8329.09,"shift.sale.total_cash":7829.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:38:49]process_action_free get_value [08:38:49]json_value_free [08:38:49]json_value_free done [08:38:49]process_json_proto returns [08:38:49]Send response to host [08:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72505914.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":8329.09,"shift.sale.total_cash":7829.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:38:49]free response buf [08:38:49]execute_script done [08:38:49]execute_script returns [08:38:49]free content buf [08:38:49]Sock 9.Close socket [08:38:49]Sock 9.Thread stoped [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]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:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:33]accept exits with 7 [08:50:33]New connection [08:50:33]New thread 3067133284 created [08:50:33]Thread 3066989924 joined [08:50:33]Waiting for new connection... [08:50:33] Sock 7.Parse request [08:50:33]Sock 7.Check first char [08:50:33]Sock 7.First char is OK [08:50:33]request: POST /json_proto HTTP/1.0 [08:50:33]Method: POST [08:50:33]URL: /json_proto [08:50:33]Method is POST - this is cgi request [08:50:33]url: /json_proto [08:50:33]query_string will be loaded in cgi processing [08:50:33]execute_cgi json_proto POST (null) [08:50:33]execute_cgi path=json_proto method=POST [08:50:33]POST find Content-Length [08:50:33]Host: 172.17.39.195:8080 [08:50:33]Content-Length: 609 [08:50:33]Content-Type: application/json [08:50:33] [08:50:33]POST finish read [08:50:33]Found Content-Length = 609 [08:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220739", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:33]execute_script... [08:50:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220739", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:33]POST & json_proto [08:50:33]process_json_proto [08:50:33]json parsed OK: [08:50:33]protocol is kg_v1.0 [08:50:33]action value=close_receipt [08:50:33]process_action close_receipt [08:50:33]cmd_close_receipt [08:50:33]MH_GetDate [08:50:33]Write to MH i2c: F0 00 00 DE 07 D4 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: F0 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: F0 09 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: F0 09 00 DE 07 00 5B ED 73 66 99 81 91 64 0D [08:50:33]GetLastDocTimeStamp 1718872267 [08:50:33]current date 1718873435 [08:50:33]FM_GetShiftState [08:50:33]SAM_PROTO_GetShiftState [08:50:33]wFMCommunicate request_size=4 [08:50:33]MH_SAM_APDU [08:50:33]CAPDU: 80 13 01 00 [08:50:33]Write to MH i2c: E2 08 00 DF 07 80 13 01 00 00 00 00 00 63 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 0E 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 0E 00 DF 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3F [08:50:33]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:50:33]wFMCommunicate OK [08:50:33]SAM_PROTO_GetShiftState done [08:50:33]FM_GetShiftState done [08:50:33]opened in 1718843774 [08:50:33]opened+sec_in_day 1718930174 [08:50:33]quantity*price = 13000 [08:50:33]sum+1 = 13001 [08:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 31 20.06.2024 08:50 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76590 ФПД: 134381279031723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085035&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76590&fm=134381279031723&tin=02508201610067®Number=0000000000095696&sum=13000 0 [08:50:34]StoreToDocumentArchive [08:50:34]shift 393 fd 76590 [08:50:34]save to /storage/0393/doc_00076590 [08:50:34]save last doc name /storage/0393/doc_00076590 to /storage/kkm_last_doc_name [08:50:34]save OK [08:50:34]Clear old archive folders... [08:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=261 [08:50:34]tlvbuf is 00D17980 [08:50:34]SAM_PROTO_ClearQueue [08:50:34]wFMCommunicate request_size=4 [08:50:34]MH_SAM_APDU [08:50:34]CAPDU: 80 09 00 00 [08:50:34]Write to MH i2c: E2 08 00 EC 07 80 09 00 00 00 00 00 00 65 [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: E2 [08:50:34]MH_I2C_Read... [08:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:34]Read from MH i2c: E2 03 00 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [08:50:34]RAPDU: 90 00 [08:50:34]wFMCommunicate OK [08:50:34]SAM_PROTO_ClearQueue done [08:50:34]KKMCreateOFDPacket [08:50:34]OFDProtocolAddRootSTLVToBuf [08:50:34]FM_MakeSignedData [08:50:34]FM_MakeSignedData [08:50:34]SAM_PROTO_SignData [08:50:34]wFMCommunicate request_size=4 [08:50:34]MH_SAM_APDU [08:50:34]CAPDU: 80 0D 01 02 [08:50:34]Write to MH i2c: E2 08 00 ED 07 80 0D 01 02 00 00 00 00 6D [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:34]Read from MH i2c: E2 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: E2 03 00 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [08:50:34]RAPDU: 90 00 [08:50:34]wFMCommunicate OK [08:50:34]wFMCommunicate request_size=255 [08:50:34]MH_SAM_APDU [08:50:34]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5B ED 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 [08:50:34]Write to MH i2c: E2 02 01 EE 07 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5B ED 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 00 E6 [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:34]OFD Sender: No OFD packet to send [08:50:34]Read from MH i2c: E2 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: E2 03 00 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [08:50:34]RAPDU: 90 00 [08:50:34]wFMCommunicate OK [08:50:34]wFMCommunicate request_size=20 [08:50:34]MH_SAM_APDU [08:50:34]CAPDU: 80 0D 02 02 0F 00 2E 2B 01 00 35 04 06 00 7A 38 14 66 B1 AB [08:50:34]Write to MH i2c: E2 17 00 EF 07 80 0D 02 02 0F 00 00 2E 2B 01 00 35 04 06 00 7A 38 14 66 B1 AB 00 00 AF [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [08:50:35]RAPDU: 90 00 [08:50:35]wFMCommunicate OK [08:50:35]wFMCommunicate request_size=4 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 0D 03 02 [08:50:35]Write to MH i2c: E2 08 00 F0 07 80 0D 03 02 00 00 00 00 72 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 0B 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 0B 00 F0 07 00 81 6F 0D EF 77 BA 2F 6D 90 00 2C [08:50:35]RAPDU: 81 6F 0D EF 77 BA 2F 6D 90 00 [08:50:35]wFMCommunicate OK [08:50:35]SAM_PROTO_SignData done [08:50:35]FM_MakeSignedData done [08:50:35]CreateOFDProtocolMessage [08:50:35]wFMCommunicate request_size=4 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 11 00 00 [08:50:35]Write to MH i2c: E2 08 00 F1 07 80 11 00 00 00 00 00 00 72 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 17 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 17 00 F1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C2 [08:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:50:35]wFMCommunicate OK [08:50:35]CreateOFDProtocolMessage done [08:50:35]OFDSenderStorePacket 76590 [08:50:35]StoreOFDPacket docnum=76590 [08:50:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 19 01 00 00 48 76 11 01 7C 68 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5B ED 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2B 01 00 35 04 06 00 7A 38 14 66 B1 AB 81 6F 0D EF 77 BA 2F 6D [08:50:35]CheckFolder [08:50:35]dirname=/storage/ofd_packets [08:50:35]CheckFolder done [08:50:35]ProducePacketName [08:50:35]name=ofd_packets/00076590 [08:50:35]NVStorageSaveData ofd_packets/00076590 [08:50:35]File name is /storage/ofd_packets/00076590 [08:50:35]Write 311 bytes [08:50:35]NVStorageSaveData done [08:50:35]OFDSenderStorePacket done [08:50:35]KKMCreateOFDPacket done [08:50:35]NVStorageSaveData kkm_last_timestamp [08:50:35]File name is /storage/kkm_last_timestamp [08:50:35]Write 4 bytes [08:50:35]NVStorageSaveData done [08:50:35]ExternCall_PrintAddStr [08:50:35]wPrintStart [08:50:35]Write to MH i2c: 01 00 00 F2 07 F9 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 07 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 07 00 F2 07 00 00 00 00 00 FF 0F 0E [08:50:35]RasterBufferAndPrint [08:50:35]line Счет N : (3)220739 [08:50:35]line ИНН: 02508201610067 [08:50:35]line Контрольно-Кассовый Чек [08:50:35]line ПРОДАЖА [08:50:35]line Товар: 48741156 [08:50:35]line Сигареты LD Blue [08:50:35]line 1.000 * 130.00 [08:50:35]line = 130.00 [08:50:35]line НДС 12% НСП 1% [08:50:35]line > о реализуемом товаре [08:50:35]line ИТОГО: 130.00 [08:50:35]line НСП 1% : 1.15 [08:50:35]line НДС 12% : 13.80 [08:50:35]line Наличными: 130.00 [08:50:35]line Безнал.: 0.00 [08:50:35]line Место: АЗС № 144 "Партнер Нефть" [08:50:35]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:50:35]line СНО: Общий режим [08:50:35]line Чек 31 20.06.2024 08:50 [08:50:35]line Смена: 393 ФФД: 1.0 [08:50:35]line ЗНМ: 0300000170 [08:50:35]line РНМ: 0000000000095696 [08:50:35]line Версия ККМ: 001 [08:50:35]line ФМ: 0000000000875009 [08:50:35]line ФД: 76590 [08:50:35]line ФПД: 134381279031723 [08:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085035&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76590&fm=134381279031723&tin=02508201610067®Number=0000000000095696&sum=13000 [08:50:35]line 0 [08:50:35]written 0, free lines is 4095 [08:50:35]OFD Sender: Processing packet 76590 [packets to send 351, broken 350] [08:50:35]ProducePacketName [08:50:35]name=ofd_packets/00076590 [08:50:35]OFD Sender: To server: pG, [08:50:35]CommunicateWithHost lk.salyk.kg:30040 [08:50:35]ConnectInit lk.salyk.kg [08:50:35]Connected sock=9 [08:50:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 19 01 00 00 48 76 11 01 7C 68 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5B ED 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2B 01 00 35 04 06 00 7A 38 14 66 B1 AB 81 6F 0D EF 77 BA 2F 6D [08:50:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A9 6C 47 00 19 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2B 01 00 F4 03 04 00 FD 93 73 66 B6 04 01 00 00 A9 8E 41 C4 FD 29 C1 DE [08:50:35]CommunicateWithHost err = 0 [08:50:35]CheckOFDResponse [08:50:35]1017 (14) - 77093643461234 [08:50:35]1041 (16) - 0000000000875009 [08:50:35]1040 (4) - 76590 [08:50:35]1012 (4) - 20.06.2024 02:29 [08:50:35]1206 (1) - 0 [08:50:35]OFD Sender: Remove packet 76590 [08:50:35]ProducePacketName [08:50:35]name=ofd_packets/00076590 [08:50:35]NVStorageDeleteData [08:50:35]Write to MH i2c: 01 00 00 1A 08 22 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 07 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FE 0C 33 [08:50:35]RasterBufferAndPrint [08:50:35]line [08:50:35]line [08:50:35]line [08:50:35]line [08:50:35]line [08:50:35]written 0, free lines is 3332 [08:50:35]MH_Cut [08:50:35]Write to MH i2c: D1 01 00 21 08 01 FB [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: D1 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: D1 01 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: D1 01 00 21 08 00 FA [08:50:35]Write to MH i2c: 01 00 00 22 08 2A [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:36]OFD Sender: No OFD packet to send [08:50:36]*** Cut start [08:50:36]*** Partial cut [08:50:36]*** CUTSNS_PIN = 1 [08:50:36]*** CUTSNS_PIN = 0 [08:50:36]*** Brake cut motor [08:50:36]Read from MH i2c: 01 [08:50:36]MH_I2C_Read... [08:50:36]*** Stop cut motor [08:50:36]*** Cut end [08:50:36]Read from MH i2c: 01 07 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 FF 0F 3F [08:50:36]process_action close_receipt done [08:50:36]requested_data is exist [08:50:36]produce_requested_data [08:50:36]requested_item fm.sn is exist - process it [08:50:36]wFMCommunicate request_size=4 [08:50:36]MH_SAM_APDU [08:50:36]CAPDU: 80 11 00 00 [08:50:36]Write to MH i2c: E2 08 00 23 08 80 11 00 00 00 00 00 00 A5 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 17 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 17 00 23 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F5 [08:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:50:37]wFMCommunicate OK [08:50:37]requested_item fd.num is exist - process it [08:50:37]SAM_PROTO_GetFieldsCounters [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 13 00 00 [08:50:37]Write to MH i2c: E2 08 00 24 08 80 13 00 00 00 00 00 00 A8 [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 62 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 62 00 24 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:37]wFMCommunicate OK [08:50:37]SAM_PROTO_GetFieldsCounters done [08:50:37]requested_item shift.num is exist - process it [08:50:37]requested_item shift.opened is exist - process it [08:50:37]req_shift_opened [08:50:37]FM_GetShiftState [08:50:37]SAM_PROTO_GetShiftState [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 13 01 00 [08:50:37]Write to MH i2c: E2 08 00 25 08 80 13 01 00 00 00 00 00 AA [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 25 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 86 [08:50:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:50:37]wFMCommunicate OK [08:50:37]SAM_PROTO_GetShiftState done [08:50:37]FM_GetShiftState done [08:50:37]req_shift_opened done [08:50:37]requested_item shift.open_date is exist - process it [08:50:37]req_shift_open_date [08:50:37]req_shift_open_date done [08:50:37]produce_requested_data done [08:50:37]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76590,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:50:37]process_action_free close_receipt [08:50:37]json_value_free [08:50:37]json_value_free done [08:50:37]process_json_proto returns [08:50:37]Send response to host [08:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76590,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:50:37]free response buf [08:50:37]execute_script done [08:50:37]execute_script returns [08:50:37]free content buf [08:50:37]Sock 7.Close socket [08:50:37]Sock 7.Thread stoped [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:24]accept exits with 10 [08:53:24]New connection [08:53:24]New thread 3066989924 created [08:53:24]Thread 3067133284 joined [08:53:24]Waiting for new connection... [08:53:24] Sock 10.Parse request [08:53:24]Sock 10.Check first char [08:53:24]Sock 10.First char is OK [08:53:24]request: POST /json_proto HTTP/1.0 [08:53:24]Method: POST [08:53:24]URL: /json_proto [08:53:24]Method is POST - this is cgi request [08:53:24]url: /json_proto [08:53:24]query_string will be loaded in cgi processing [08:53:24]execute_cgi json_proto POST (null) [08:53:24]execute_cgi path=json_proto method=POST [08:53:24]POST find Content-Length [08:53:24]Host: 172.17.39.195:8080 [08:53:24]Content-Length: 621 [08:53:24]Content-Type: application/json [08:53:24] [08:53:24]POST finish read [08:53:24]Found Content-Length = 621 [08:53:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220740", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:24]execute_script... [08:53: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 : (3)220740", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:24]POST & json_proto [08:53:24]process_json_proto [08:53:24]json parsed OK: [08:53:24]protocol is kg_v1.0 [08:53:24]action value=close_receipt [08:53:24]process_action close_receipt [08:53:24]cmd_close_receipt [08:53:24]MH_GetDate [08:53:24]Write to MH i2c: F0 00 00 26 08 1D [08:53:24]Write i2c OK [08:53:24]MH_I2C_Read... [08:53:24]Read from MH i2c: F0 [08:53:24]MH_I2C_Read... [08:53:24]Read from MH i2c: F0 09 00 [08:53:24]MH_I2C_Read... [08:53:24]Read from MH i2c: F0 09 00 26 08 00 07 EE 73 66 99 81 91 64 03 [08:53:24]GetLastDocTimeStamp 1718873435 [08:53:24]current date 1718873607 [08:53:24]FM_GetShiftState [08:53:24]SAM_PROTO_GetShiftState [08:53:24]wFMCommunicate request_size=4 [08:53:24]MH_SAM_APDU [08:53:24]CAPDU: 80 13 01 00 [08:53:24]Write to MH i2c: E2 08 00 27 08 80 13 01 00 00 00 00 00 AC [08:53:24]Write i2c OK [08:53:24]MH_I2C_Read... [08:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:24]Read from MH i2c: E2 [08:53:24]MH_I2C_Read... [08:53:24]Read from MH i2c: E2 0E 00 [08:53:24]MH_I2C_Read... [08:53:24]Read from MH i2c: E2 0E 00 27 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 88 [08:53:24]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:53:24]wFMCommunicate OK [08:53:24]SAM_PROTO_GetShiftState done [08:53:24]FM_GetShiftState done [08:53:24]opened in 1718843774 [08:53:24]opened+sec_in_day 1718930174 [08:53:24]quantity*price = 13000 [08:53:24]sum+1 = 13001 [08:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 32 20.06.2024 08:53 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76591 ФПД: 108116689160950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085327&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76591&fm=108116689160950&tin=02508201610067®Number=0000000000095696&sum=13000 0 [08:53:25]StoreToDocumentArchive [08:53:25]shift 393 fd 76591 [08:53:25]save to /storage/0393/doc_00076591 [08:53:25]save last doc name /storage/0393/doc_00076591 to /storage/kkm_last_doc_name [08:53:25]save OK [08:53:25]Clear old archive folders... [08:53:25]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:53:25]tlvbuf is 00DDA6F0 [08:53:25]SAM_PROTO_ClearQueue [08:53:25]wFMCommunicate request_size=4 [08:53:25]MH_SAM_APDU [08:53:25]CAPDU: 80 09 00 00 [08:53:25]Write to MH i2c: E2 08 00 34 08 80 09 00 00 00 00 00 00 AE [08:53:25]Write i2c OK [08:53:25]MH_I2C_Read... [08:53:25]Read from MH i2c: E2 [08:53:25]MH_I2C_Read... [08:53:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:25]Read from MH i2c: E2 03 00 [08:53:25]MH_I2C_Read... [08:53:25]Read from MH i2c: E2 03 00 34 08 00 90 00 B0 [08:53:25]RAPDU: 90 00 [08:53:25]wFMCommunicate OK [08:53:25]SAM_PROTO_ClearQueue done [08:53:25]KKMCreateOFDPacket [08:53:25]OFDProtocolAddRootSTLVToBuf [08:53:25]FM_MakeSignedData [08:53:25]FM_MakeSignedData [08:53:25]SAM_PROTO_SignData [08:53:25]wFMCommunicate request_size=4 [08:53:25]MH_SAM_APDU [08:53:25]CAPDU: 80 0D 01 02 [08:53:25]Write to MH i2c: E2 08 00 35 08 80 0D 01 02 00 00 00 00 B6 [08:53:25]Write i2c OK [08:53:25]MH_I2C_Read... [08:53:25]Read from MH i2c: E2 [08:53:25]MH_I2C_Read... [08:53:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:25]Read from MH i2c: E2 03 00 [08:53:25]MH_I2C_Read... [08:53:25]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [08:53:25]RAPDU: 90 00 [08:53:25]wFMCommunicate OK [08:53:25]wFMCommunicate request_size=255 [08:53:25]MH_SAM_APDU [08:53:25]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 07 EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [08:53:25]Write to MH i2c: E2 02 01 36 08 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 07 EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 32 [08:53:25]Write i2c OK [08:53:25]MH_I2C_Read... [08:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:26]Read from MH i2c: E2 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 03 00 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [08:53:26]RAPDU: 90 00 [08:53:26]wFMCommunicate OK [08:53:26]wFMCommunicate request_size=32 [08:53:26]MH_SAM_APDU [08:53:26]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2B 01 00 35 04 06 00 62 54 E0 DA 0A F6 [08:53:26]Write to MH i2c: E2 23 00 37 08 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2B 01 00 35 04 06 00 62 54 E0 DA 0A F6 00 00 DE [08:53:26]Write i2c OK [08:53:26]MH_I2C_Read... [08:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:26]Read from MH i2c: E2 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 03 00 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [08:53:26]RAPDU: 90 00 [08:53:26]wFMCommunicate OK [08:53:26]wFMCommunicate request_size=4 [08:53:26]MH_SAM_APDU [08:53:26]CAPDU: 80 0D 03 02 [08:53:26]Write to MH i2c: E2 08 00 38 08 80 0D 03 02 00 00 00 00 BB [08:53:26]Write i2c OK [08:53:26]MH_I2C_Read... [08:53:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:26]Read from MH i2c: E2 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 0B 00 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 0B 00 38 08 00 C8 FB A5 2C F1 10 C6 4A 90 00 61 [08:53:26]RAPDU: C8 FB A5 2C F1 10 C6 4A 90 00 [08:53:26]wFMCommunicate OK [08:53:26]SAM_PROTO_SignData done [08:53:26]FM_MakeSignedData done [08:53:26]CreateOFDProtocolMessage [08:53:26]wFMCommunicate request_size=4 [08:53:26]MH_SAM_APDU [08:53:26]CAPDU: 80 11 00 00 [08:53:26]Write to MH i2c: E2 08 00 39 08 80 11 00 00 00 00 00 00 BB [08:53:26]Write i2c OK [08:53:26]MH_I2C_Read... [08:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:26]Read from MH i2c: E2 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 17 00 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: E2 17 00 39 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0B [08:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:53:26]wFMCommunicate OK [08:53:26]CreateOFDProtocolMessage done [08:53:26]OFDSenderStorePacket 76591 [08:53:26]StoreOFDPacket docnum=76591 [08:53:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 90 B9 1D 01 44 6B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 07 EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2B 01 00 35 04 06 00 62 54 E0 DA 0A F6 C8 FB A5 2C F1 10 C6 4A [08:53:26]CheckFolder [08:53:26]dirname=/storage/ofd_packets [08:53:26]CheckFolder done [08:53:26]ProducePacketName [08:53:26]name=ofd_packets/00076591 [08:53:26]NVStorageSaveData ofd_packets/00076591 [08:53:26]File name is /storage/ofd_packets/00076591 [08:53:26]Write 323 bytes [08:53:26]NVStorageSaveData done [08:53:26]OFDSenderStorePacket done [08:53:26]KKMCreateOFDPacket done [08:53:26]NVStorageSaveData kkm_last_timestamp [08:53:26]File name is /storage/kkm_last_timestamp [08:53:26]Write 4 bytes [08:53:26]NVStorageSaveData done [08:53:26]ExternCall_PrintAddStr [08:53:26]wPrintStart [08:53:26]Write to MH i2c: 01 00 00 3A 08 42 [08:53:26]Write i2c OK [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: 01 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: 01 07 00 [08:53:26]MH_I2C_Read... [08:53:26]Read from MH i2c: 01 07 00 3A 08 00 00 00 00 00 FF 0F 57 [08:53:26]RasterBufferAndPrint [08:53:26]line Счет N : (3)220740 [08:53:26]line ИНН: 02508201610067 [08:53:26]line Контрольно-Кассовый Чек [08:53:26]line ПРОДАЖА [08:53:26]line Товар: 4780014240406 [08:53:26]line Сигареты Sovereign Blue [08:53:26]line 1.000 * 130.00 [08:53:26]line = 130.00 [08:53:26]line НДС 12% НСП 1% [08:53:26]line > о реализуемом товаре [08:53:26]line ИТОГО: 130.00 [08:53:26]line НСП 1% : 1.15 [08:53:26]line НДС 12% : 13.80 [08:53:26]line Наличными: 130.00 [08:53:26]line Безнал.: 0.00 [08:53:26]line Место: АЗС № 144 "Партнер Нефть" [08:53:26]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:53:26]line СНО: Общий режим [08:53:26]line Чек 32 20.06.2024 08:53 [08:53:26]line Смена: 393 ФФД: 1.0 [08:53:26]line ЗНМ: 0300000170 [08:53:26]line РНМ: 0000000000095696 [08:53:26]line Версия ККМ: 001 [08:53:26]line ФМ: 0000000000875009 [08:53:26]line ФД: 76591 [08:53:26]line ФПД: 108116689160950 [08:53:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085327&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76591&fm=108116689160950&tin=02508201610067®Number=0000000000095696&sum=13000 [08:53:26]line 0 [08:53:26]OFD Sender: Processing packet 76591 [packets to send 351, broken 350] [08:53:26]ProducePacketName [08:53:26]name=ofd_packets/00076591 [08:53:26]OFD Sender: To server: pG, [08:53:26]CommunicateWithHost lk.salyk.kg:30040 [08:53:26]ConnectInit lk.salyk.kg [08:53:26]written 0, free lines is 4095 [08:53:26]Connected sock=9 [08:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 90 B9 1D 01 44 6B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 07 EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2B 01 00 35 04 06 00 62 54 E0 DA 0A F6 C8 FB A5 2C F1 10 C6 4A [08:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 5C A5 47 00 67 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2B 01 00 F4 03 04 00 A8 94 73 66 B6 04 01 00 00 41 01 C1 1C ED 66 63 FD [08:53:27]CommunicateWithHost err = 0 [08:53:27]CheckOFDResponse [08:53:27]1017 (14) - 77093643461234 [08:53:27]1041 (16) - 0000000000875009 [08:53:27]1040 (4) - 76591 [08:53:27]1012 (4) - 20.06.2024 02:32 [08:53:27]1206 (1) - 0 [08:53:27]OFD Sender: Remove packet 76591 [08:53:27]ProducePacketName [08:53:27]name=ofd_packets/00076591 [08:53:27]NVStorageDeleteData [08:53:27]Write to MH i2c: 01 00 00 62 08 6A [08:53:27]Write i2c OK [08:53:27]MH_I2C_Read... [08:53:27]Read from MH i2c: 01 [08:53:27]MH_I2C_Read... [08:53:27]Read from MH i2c: 01 07 00 [08:53:27]MH_I2C_Read... [08:53:27]Read from MH i2c: 01 07 00 62 08 00 00 00 00 00 F8 0C 75 [08:53:27]RasterBufferAndPrint [08:53:27]line [08:53:27]line [08:53:27]line [08:53:27]line [08:53:27]line [08:53:27]written 0, free lines is 3327 [08:53:27]MH_Cut [08:53:27]Write to MH i2c: D1 01 00 69 08 01 43 [08:53:27]Write i2c OK [08:53:27]MH_I2C_Read... [08:53:27]Read from MH i2c: D1 [08:53:27]MH_I2C_Read... [08:53:27]Read from MH i2c: D1 01 00 [08:53:27]MH_I2C_Read... [08:53:27]Read from MH i2c: D1 01 00 69 08 00 42 [08:53:27]Write to MH i2c: 01 00 00 6A 08 72 [08:53:27]Write i2c OK [08:53:27]MH_I2C_Read... [08:53:27]OFD Sender: No OFD packet to send [08:53:27]*** Cut start [08:53:27]*** Partial cut [08:53:27]*** CUTSNS_PIN = 1 [08:53:27]*** CUTSNS_PIN = 0 [08:53:28]*** Brake cut motor [08:53:28]Read from MH i2c: 01 [08:53:28]MH_I2C_Read... [08:53:28]*** Stop cut motor [08:53:28]*** Cut end [08:53:28]Read from MH i2c: 01 07 00 [08:53:28]MH_I2C_Read... [08:53:28]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 FF 0F 87 [08:53:28]process_action close_receipt done [08:53:28]requested_data is exist [08:53:28]produce_requested_data [08:53:28]requested_item fm.sn is exist - process it [08:53:28]wFMCommunicate request_size=4 [08:53:28]MH_SAM_APDU [08:53:28]CAPDU: 80 11 00 00 [08:53:28]Write to MH i2c: E2 08 00 6B 08 80 11 00 00 00 00 00 00 ED [08:53:28]Write i2c OK [08:53:28]MH_I2C_Read... [08:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:28]Read from MH i2c: E2 [08:53:28]MH_I2C_Read... [08:53:28]Read from MH i2c: E2 17 00 [08:53:28]MH_I2C_Read... [08:53:28]Read from MH i2c: E2 17 00 6B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3D [08:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:53:28]wFMCommunicate OK [08:53:28]requested_item fd.num is exist - process it [08:53:28]SAM_PROTO_GetFieldsCounters [08:53:28]wFMCommunicate request_size=4 [08:53:28]MH_SAM_APDU [08:53:28]CAPDU: 80 13 00 00 [08:53:28]Write to MH i2c: E2 08 00 6C 08 80 13 00 00 00 00 00 00 F0 [08:53:28]Write i2c OK [08:53:28]MH_I2C_Read... [08:53:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:28]Read from MH i2c: E2 [08:53:28]MH_I2C_Read... [08:53:28]Read from MH i2c: E2 62 00 [08:53:28]MH_I2C_Read... [08:53:28]Read from MH i2c: E2 62 00 6C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [08:53:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:28]wFMCommunicate OK [08:53:28]SAM_PROTO_GetFieldsCounters done [08:53:28]requested_item shift.num is exist - process it [08:53:28]requested_item shift.opened is exist - process it [08:53:28]req_shift_opened [08:53:28]FM_GetShiftState [08:53:28]SAM_PROTO_GetShiftState [08:53:28]wFMCommunicate request_size=4 [08:53:28]MH_SAM_APDU [08:53:28]CAPDU: 80 13 01 00 [08:53:28]Write to MH i2c: E2 08 00 6D 08 80 13 01 00 00 00 00 00 F2 [08:53:28]Write i2c OK [08:53:28]MH_I2C_Read... [08:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:28]Read from MH i2c: E2 [08:53:28]MH_I2C_Read... [08:53:28]Read from MH i2c: E2 0E 00 [08:53:28]MH_I2C_Read... [08:53:28]Read from MH i2c: E2 0E 00 6D 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 CE [08:53:28]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:53:28]wFMCommunicate OK [08:53:28]SAM_PROTO_GetShiftState done [08:53:28]FM_GetShiftState done [08:53:28]req_shift_opened done [08:53:28]requested_item shift.open_date is exist - process it [08:53:28]req_shift_open_date [08:53:28]req_shift_open_date done [08:53:28]produce_requested_data done [08:53:28]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76591,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:53:28]process_action_free close_receipt [08:53:28]json_value_free [08:53:28]json_value_free done [08:53:28]process_json_proto returns [08:53:28]Send response to host [08:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76591,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:53:28]free response buf [08:53:28]execute_script done [08:53:28]execute_script returns [08:53:28]free content buf [08:53:28]Sock 10.Close socket [08:53:28]Sock 10.Thread stoped [08:53:32]OFD Sender: No OFD packet to send [08:53:32]accept exits with 7 [08:53:32]New connection [08:53:32]New thread 3067133284 created [08:53:32]Thread 3066989924 joined [08:53:32]Waiting for new connection... [08:53:32] Sock 7.Parse request [08:53:32]Sock 7.Check first char [08:53:32]Sock 7.First char is OK [08:53:32]request: POST /json_proto HTTP/1.0 [08:53:32]Method: POST [08:53:32]URL: /json_proto [08:53:32]Method is POST - this is cgi request [08:53:32]url: /json_proto [08:53:32]query_string will be loaded in cgi processing [08:53:32]execute_cgi json_proto POST (null) [08:53:32]execute_cgi path=json_proto method=POST [08:53:32]POST find Content-Length [08:53:32]Host: 172.17.39.195:8080 [08:53:32]Content-Length: 616 [08:53:32]Content-Type: application/json [08:53:32] [08:53:32]POST finish read [08:53:32]Found Content-Length = 616 [08:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220741", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:32]execute_script... [08: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 : (3)220741", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:32]POST & json_proto [08:53:32]process_json_proto [08:53:32]json parsed OK: [08:53:32]protocol is kg_v1.0 [08:53:32]action value=close_receipt [08:53:32]process_action close_receipt [08:53:32]cmd_close_receipt [08:53:32]MH_GetDate [08:53:32]Write to MH i2c: F0 00 00 6E 08 65 [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: F0 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: F0 09 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: F0 09 00 6E 08 00 0F EE 73 66 99 81 91 64 53 [08:53:32]GetLastDocTimeStamp 1718873607 [08:53:32]current date 1718873615 [08:53:32]FM_GetShiftState [08:53:32]SAM_PROTO_GetShiftState [08:53:32]wFMCommunicate request_size=4 [08:53:32]MH_SAM_APDU [08:53:32]CAPDU: 80 13 01 00 [08:53:32]Write to MH i2c: E2 08 00 6F 08 80 13 01 00 00 00 00 00 F4 [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:32]Read from MH i2c: E2 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 0E 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 0E 00 6F 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D0 [08:53:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:53:32]wFMCommunicate OK [08:53:32]SAM_PROTO_GetShiftState done [08:53:32]FM_GetShiftState done [08:53:32]opened in 1718843774 [08:53:32]opened+sec_in_day 1718930174 [08:53:32]quantity*price = 17500 [08:53:32]sum+1 = 17501 [08:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 33 20.06.2024 08:53 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76592 ФПД: 18045980854179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085335&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76592&fm=18045980854179&tin=02508201610067®Number=0000000000095696&sum=17500 0 [08:53:33]StoreToDocumentArchive [08:53:33]shift 393 fd 76592 [08:53:33]save to /storage/0393/doc_00076592 [08:53:33]save last doc name /storage/0393/doc_00076592 to /storage/kkm_last_doc_name [08:53:33]save OK [08:53:33]Clear old archive folders... [08:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=268 [08:53:33]tlvbuf is 00DDA5D0 [08:53:33]SAM_PROTO_ClearQueue [08:53:33]wFMCommunicate request_size=4 [08:53:33]MH_SAM_APDU [08:53:33]CAPDU: 80 09 00 00 [08:53:33]Write to MH i2c: E2 08 00 7C 08 80 09 00 00 00 00 00 00 F6 [08:53:33]Write i2c OK [08:53:33]MH_I2C_Read... [08:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:33]Read from MH i2c: E2 [08:53:33]MH_I2C_Read... [08:53:33]Read from MH i2c: E2 03 00 [08:53:33]MH_I2C_Read... [08:53:33]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [08:53:33]RAPDU: 90 00 [08:53:33]wFMCommunicate OK [08:53:33]SAM_PROTO_ClearQueue done [08:53:33]KKMCreateOFDPacket [08:53:33]OFDProtocolAddRootSTLVToBuf [08:53:33]FM_MakeSignedData [08:53:33]FM_MakeSignedData [08:53:33]SAM_PROTO_SignData [08:53:33]wFMCommunicate request_size=4 [08:53:33]MH_SAM_APDU [08:53:33]CAPDU: 80 0D 01 02 [08:53:33]Write to MH i2c: E2 08 00 7D 08 80 0D 01 02 00 00 00 00 FE [08:53:33]Write i2c OK [08:53:33]MH_I2C_Read... [08:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:33]Read from MH i2c: E2 [08:53:33]MH_I2C_Read... [08:53:33]Read from MH i2c: E2 03 00 [08:53:33]MH_I2C_Read... [08:53:33]Read from MH i2c: E2 03 00 7D 08 00 90 00 F9 [08:53:33]RAPDU: 90 00 [08:53:33]wFMCommunicate OK [08:53:33]wFMCommunicate request_size=255 [08:53:33]MH_SAM_APDU [08:53:33]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 0F EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [08:53:33]Write to MH i2c: E2 02 01 7E 08 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 0F EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 F3 [08:53:33]Write i2c OK [08:53:33]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 [08:53:34]MH_I2C_Read... [08:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:34]Read from MH i2c: E2 03 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 03 00 7E 08 00 90 00 FA [08:53:34]RAPDU: 90 00 [08:53:34]wFMCommunicate OK [08:53:34]wFMCommunicate request_size=27 [08:53:34]MH_SAM_APDU [08:53:34]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 30 2B 01 00 35 04 06 00 10 69 A8 47 47 A3 [08:53:34]Write to MH i2c: E2 1E 00 7F 08 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 30 2B 01 00 35 04 06 00 10 69 A8 47 47 A3 00 00 00 [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:34]Read from MH i2c: E2 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 03 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 03 00 7F 08 00 90 00 FB [08:53:34]RAPDU: 90 00 [08:53:34]wFMCommunicate OK [08:53:34]wFMCommunicate request_size=4 [08:53:34]MH_SAM_APDU [08:53:34]CAPDU: 80 0D 03 02 [08:53:34]Write to MH i2c: E2 08 00 80 08 80 0D 03 02 00 00 00 00 03 [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:34]Read from MH i2c: E2 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 0B 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 0B 00 80 08 00 53 6E 60 4B 3E FE 64 74 90 00 84 [08:53:34]RAPDU: 53 6E 60 4B 3E FE 64 74 90 00 [08:53:34]wFMCommunicate OK [08:53:34]SAM_PROTO_SignData done [08:53:34]FM_MakeSignedData done [08:53:34]CreateOFDProtocolMessage [08:53:34]wFMCommunicate request_size=4 [08:53:34]MH_SAM_APDU [08:53:34]CAPDU: 80 11 00 00 [08:53:34]Write to MH i2c: E2 08 00 81 08 80 11 00 00 00 00 00 00 03 [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:34]Read from MH i2c: E2 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 17 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: E2 17 00 81 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 53 [08:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:53:34]wFMCommunicate OK [08:53:34]CreateOFDProtocolMessage done [08:53:34]OFDSenderStorePacket 76592 [08:53:34]StoreOFDPacket docnum=76592 [08:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 D6 F9 18 01 F6 87 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 0F EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2B 01 00 35 04 06 00 10 69 A8 47 47 A3 53 6E 60 4B 3E FE 64 74 [08:53:34]CheckFolder [08:53:34]dirname=/storage/ofd_packets [08:53:34]CheckFolder done [08:53:34]ProducePacketName [08:53:34]name=ofd_packets/00076592 [08:53:34]NVStorageSaveData ofd_packets/00076592 [08:53:34]File name is /storage/ofd_packets/00076592 [08:53:34]Write 318 bytes [08:53:34]NVStorageSaveData done [08:53:34]OFDSenderStorePacket done [08:53:34]KKMCreateOFDPacket done [08:53:34]NVStorageSaveData kkm_last_timestamp [08:53:34]File name is /storage/kkm_last_timestamp [08:53:34]Write 4 bytes [08:53:34]NVStorageSaveData done [08:53:34]ExternCall_PrintAddStr [08:53:34]wPrintStart [08:53:34]Write to MH i2c: 01 00 00 82 08 8A [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: 01 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: 01 07 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 FF 0F 9F [08:53:34]RasterBufferAndPrint [08:53:34]line Счет N : (3)220741 [08:53:34]line ИНН: 02508201610067 [08:53:34]line Контрольно-Кассовый Чек [08:53:34]line ПРОДАЖА [08:53:34]line Товар: 4870002329487 [08:53:34]line Напиток Pepsi 1,5л [08:53:34]line 1.000 * 175.00 [08:53:34]line = 175.00 [08:53:34]line НДС 12% НСП 1% [08:53:34]line > о реализуемом товаре [08:53:34]line ИТОГО: 175.00 [08:53:34]line НСП 1% : 1.55 [08:53:34]line НДС 12% : 18.58 [08:53:34]line Наличными: 175.00 [08:53:34]line Безнал.: 0.00 [08:53:34]line Место: АЗС № 144 "Партнер Нефть" [08:53:34]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:53:34]line СНО: Общий режим [08:53:34]line Чек 33 20.06.2024 08:53 [08:53:34]line Смена: 393 ФФД: 1.0 [08:53:34]line ЗНМ: 0300000170 [08:53:34]line РНМ: 0000000000095696 [08:53:34]line Версия ККМ: 001 [08:53:34]line ФМ: 0000000000875009 [08:53:34]line ФД: 76592 [08:53:34]line ФПД: 18045980854179 [08:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085335&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76592&fm=18045980854179&tin=02508201610067®Number=0000000000095696&sum=17500 [08:53:34]line 0 [08:53:34]written 0, free lines is 4095 [08:53:34]OFD Sender: Processing packet 76592 [packets to send 351, broken 350] [08:53:34]ProducePacketName [08:53:34]name=ofd_packets/00076592 [08:53:34]OFD Sender: To server: pG, [08:53:34]CommunicateWithHost lk.salyk.kg:30040 [08:53:34]ConnectInit lk.salyk.kg [08:53:34]Write to MH i2c: 01 00 00 AA 08 B2 [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: 01 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: 01 07 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: 01 07 00 AA 08 00 00 00 00 00 03 0D C9 [08:53:34]RasterBufferAndPrint [08:53:34]line [08:53:34]line [08:53:34]line [08:53:34]line [08:53:34]line [08:53:34]written 0, free lines is 3340 [08:53:34]MH_Cut [08:53:34]Write to MH i2c: D1 01 00 B1 08 01 8B [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: D1 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: D1 01 00 [08:53:34]MH_I2C_Read... [08:53:34]Read from MH i2c: D1 01 00 B1 08 00 8A [08:53:34]Write to MH i2c: 01 00 00 B2 08 BA [08:53:34]Write i2c OK [08:53:34]MH_I2C_Read... [08:53:35]*** Cut start [08:53:35]*** Partial cut [08:53:35]*** CUTSNS_PIN = 1 [08:53:35]Connected sock=11 [08:53:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 D6 F9 18 01 F6 87 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 *** CUTSNS_PIN = 0 [08:53:35]01 00 12 04 04 00 21 00 00 00 F4 03 04 00 0F EE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2B 01 00 35 04 06 00 10 69 A8 47 47 A3 53 6E 60 4B 3E FE 64 74 [08:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B2 FA 47 00 FE 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2B 01 00 F4 03 04 00 B1 94 73 66 B6 04 01 00 00 CA 6B 36 D7 61 35 2C D8 [08:53:35]CommunicateWithHost err = 0 [08:53:35]CheckOFDResponse [08:53:35]1017 (14) - 77093643461234 [08:53:35]1041 (16) - 0000000000875009 [08:53:35]1040 (4) - 76592 [08:53:35]1012 (4) - 20.06.2024 02:32 [08:53:35]1206 (1) - 0 [08:53:35]OFD Sender: Remove packet 76592 [08:53:35]ProducePacketName [08:53:35]name=ofd_packets/00076592 [08:53:35]NVStorageDeleteData [08:53:35]*** Brake cut motor [08:53:36]Read from MH i2c: 01 [08:53:36]MH_I2C_Read... [08:53:36]*** Stop cut motor [08:53:36]*** Cut end [08:53:36]Read from MH i2c: 01 07 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 FF 0F CF [08:53:36]process_action close_receipt done [08:53:36]requested_data is exist [08:53:36]produce_requested_data [08:53:36]requested_item fm.sn is exist - process it [08:53:36]wFMCommunicate request_size=4 [08:53:36]MH_SAM_APDU [08:53:36]CAPDU: 80 11 00 00 [08:53:36]Write to MH i2c: E2 08 00 B3 08 80 11 00 00 00 00 00 00 35 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 [08:53:36]MH_I2C_Read... [08:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:36]Read from MH i2c: E2 17 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 17 00 B3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 85 [08:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:53:36]wFMCommunicate OK [08:53:36]requested_item fd.num is exist - process it [08:53:36]SAM_PROTO_GetFieldsCounters [08:53:36]wFMCommunicate request_size=4 [08:53:36]MH_SAM_APDU [08:53:36]CAPDU: 80 13 00 00 [08:53:36]Write to MH i2c: E2 08 00 B4 08 80 13 00 00 00 00 00 00 38 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]OFD Sender: No OFD packet to send [08:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:36]Read from MH i2c: E2 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 62 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 62 00 B4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 30 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [08:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 30 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:36]wFMCommunicate OK [08:53:36]SAM_PROTO_GetFieldsCounters done [08:53:36]requested_item shift.num is exist - process it [08:53:36]requested_item shift.opened is exist - process it [08:53:36]req_shift_opened [08:53:36]FM_GetShiftState [08:53:36]SAM_PROTO_GetShiftState [08:53:36]wFMCommunicate request_size=4 [08:53:36]MH_SAM_APDU [08:53:36]CAPDU: 80 13 01 00 [08:53:36]Write to MH i2c: E2 08 00 B5 08 80 13 01 00 00 00 00 00 3A [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:36]Read from MH i2c: E2 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 B5 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 16 [08:53:36]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:53:36]wFMCommunicate OK [08:53:36]SAM_PROTO_GetShiftState done [08:53:36]FM_GetShiftState done [08:53:36]req_shift_opened done [08:53:36]requested_item shift.open_date is exist - process it [08:53:36]req_shift_open_date [08:53:36]req_shift_open_date done [08:53:36]produce_requested_data done [08:53:36]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76592,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:53:36]process_action_free close_receipt [08:53:36]json_value_free [08:53:36]json_value_free done [08:53:36]process_json_proto returns [08:53:36]Send response to host [08:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76592,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:53:36]free response buf [08:53:36]execute_script done [08:53:36]execute_script returns [08:53:36]free content buf [08:53:36]Sock 7.Close socket [08:53:36]Sock 7.Thread stoped [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [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:54]accept exits with 9 [08:58:54]New connection [08:58:54]New thread 3066989924 created [08:58:54]Thread 3067133284 joined [08:58:54]Waiting for new connection... [08:58:54] Sock 9.Parse request [08:58:54]Sock 9.Check first char [08:58:54]Sock 9.First char is OK [08:58:54]request: POST /json_proto HTTP/1.0 [08:58:54]Method: POST [08:58:54]URL: /json_proto [08:58:54]Method is POST - this is cgi request [08:58:54]url: /json_proto [08:58:54]query_string will be loaded in cgi processing [08:58:54]execute_cgi json_proto POST (null) [08:58:54]execute_cgi path=json_proto method=POST [08:58:54]POST find Content-Length [08:58:54]Host: 172.17.39.195:8080 [08:58:54]Content-Length: 655 [08:58:54]Content-Type: application/json [08:58:54] [08:58:54]POST finish read [08:58:54]Found Content-Length = 655 [08:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220742", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:54]execute_script... [08:58:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220742", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:54]POST & json_proto [08:58:54]process_json_proto [08:58:54]json parsed OK: [08:58:54]protocol is kg_v1.0 [08:58:54]action value=close_receipt [08:58:54]process_action close_receipt [08:58:54]cmd_close_receipt [08:58:54]MH_GetDate [08:58:54]Write to MH i2c: F0 00 00 B6 08 AD [08:58:54]Write i2c OK [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: F0 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: F0 09 00 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: F0 09 00 B6 08 00 50 EF 73 66 99 81 91 64 DD [08:58:54]GetLastDocTimeStamp 1718873615 [08:58:54]current date 1718873936 [08:58:54]FM_GetShiftState [08:58:54]SAM_PROTO_GetShiftState [08:58:54]wFMCommunicate request_size=4 [08:58:54]MH_SAM_APDU [08:58:54]CAPDU: 80 13 01 00 [08:58:54]Write to MH i2c: E2 08 00 B7 08 80 13 01 00 00 00 00 00 3C [08:58:54]Write i2c OK [08:58:54]MH_I2C_Read... [08:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:54]Read from MH i2c: E2 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: E2 0E 00 [08:58:54]MH_I2C_Read... [08:58:54]Read from MH i2c: E2 0E 00 B7 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 18 [08:58:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:58:54]wFMCommunicate OK [08:58:54]SAM_PROTO_GetShiftState done [08:58:54]FM_GetShiftState done [08:58:54]opened in 1718843774 [08:58:54]opened+sec_in_day 1718930174 [08:58:54]quantity*price = 26000 [08:58:54]sum+1 = 26001 [08:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 34 20.06.2024 08:58 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76593 ФПД: 58419105359543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085857&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76593&fm=58419105359543&tin=02508201610067®Number=0000000000095696&sum=26000 0 [08:58:55]StoreToDocumentArchive [08:58:55]shift 393 fd 76593 [08:58:55]save to /storage/0393/doc_00076593 [08:58:55]save last doc name /storage/0393/doc_00076593 to /storage/kkm_last_doc_name [08:58:55]save OK [08:58:55]Clear old archive folders... [08:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=279 [08:58:55]tlvbuf is 00DE3AC0 [08:58:55]SAM_PROTO_ClearQueue [08:58:55]wFMCommunicate request_size=4 [08:58:55]MH_SAM_APDU [08:58:55]CAPDU: 80 09 00 00 [08:58:55]Write to MH i2c: E2 08 00 C4 08 80 09 00 00 00 00 00 00 3E [08:58:55]Write i2c OK [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 [08:58:55]MH_I2C_Read... [08:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:55]Read from MH i2c: E2 03 00 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [08:58:55]RAPDU: 90 00 [08:58:55]wFMCommunicate OK [08:58:55]SAM_PROTO_ClearQueue done [08:58:55]KKMCreateOFDPacket [08:58:55]OFDProtocolAddRootSTLVToBuf [08:58:55]FM_MakeSignedData [08:58:55]FM_MakeSignedData [08:58:55]SAM_PROTO_SignData [08:58:55]wFMCommunicate request_size=4 [08:58:55]MH_SAM_APDU [08:58:55]CAPDU: 80 0D 01 02 [08:58:55]Write to MH i2c: E2 08 00 C5 08 80 0D 01 02 00 00 00 00 46 [08:58:55]Write i2c OK [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 [08:58:55]MH_I2C_Read... [08:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:55]Read from MH i2c: E2 03 00 [08:58:55]MH_I2C_Read... [08:58:55]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [08:58:55]RAPDU: 90 00 [08:58:55]wFMCommunicate OK [08:58:55]wFMCommunicate request_size=255 [08:58:55]MH_SAM_APDU [08:58:55]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 51 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 [08:58:55]Write to MH i2c: E2 02 01 C6 08 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 51 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 00 00 0F [08:58:55]Write i2c OK [08:58:55]MH_I2C_Read... [08:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:56]Read from MH i2c: E2 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 03 00 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [08:58:56]RAPDU: 90 00 [08:58:56]wFMCommunicate OK [08:58:56]wFMCommunicate request_size=38 [08:58:56]MH_SAM_APDU [08:58:56]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2B 01 00 35 04 06 00 35 21 C2 05 E6 B7 [08:58:56]Write to MH i2c: E2 29 00 C7 08 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2B 01 00 35 04 06 00 35 21 C2 05 E6 B7 00 00 E6 [08:58:56]Write i2c OK [08:58:56]MH_I2C_Read... [08:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:56]Read from MH i2c: E2 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 03 00 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 03 00 C7 08 00 90 00 43 [08:58:56]RAPDU: 90 00 [08:58:56]wFMCommunicate OK [08:58:56]wFMCommunicate request_size=4 [08:58:56]MH_SAM_APDU [08:58:56]CAPDU: 80 0D 03 02 [08:58:56]Write to MH i2c: E2 08 00 C8 08 80 0D 03 02 00 00 00 00 4B [08:58:56]Write i2c OK [08:58:56]MH_I2C_Read... [08:58:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:56]Read from MH i2c: E2 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 0B 00 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 0B 00 C8 08 00 9E 3A 29 E0 6F 86 FD 08 90 00 27 [08:58:56]RAPDU: 9E 3A 29 E0 6F 86 FD 08 90 00 [08:58:56]wFMCommunicate OK [08:58:56]SAM_PROTO_SignData done [08:58:56]FM_MakeSignedData done [08:58:56]CreateOFDProtocolMessage [08:58:56]wFMCommunicate request_size=4 [08:58:56]MH_SAM_APDU [08:58:56]CAPDU: 80 11 00 00 [08:58:56]Write to MH i2c: E2 08 00 C9 08 80 11 00 00 00 00 00 00 4B [08:58:56]Write i2c OK [08:58:56]MH_I2C_Read... [08:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:56]Read from MH i2c: E2 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 17 00 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: E2 17 00 C9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9B [08:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:58:56]wFMCommunicate OK [08:58:56]CreateOFDProtocolMessage done [08:58:56]OFDSenderStorePacket 76593 [08:58:56]StoreOFDPacket docnum=76593 [08:58:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 83 4F 23 01 02 85 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 51 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2B 01 00 35 04 06 00 35 21 C2 05 E6 B7 9E 3A 29 E0 6F 86 FD 08 [08:58:56]CheckFolder [08:58:56]dirname=/storage/ofd_packets [08:58:56]CheckFolder done [08:58:56]ProducePacketName [08:58:56]name=ofd_packets/00076593 [08:58:56]NVStorageSaveData ofd_packets/00076593 [08:58:56]File name is /storage/ofd_packets/00076593 [08:58:56]Write 329 bytes [08:58:56]NVStorageSaveData done [08:58:56]OFDSenderStorePacket done [08:58:56]KKMCreateOFDPacket done [08:58:56]NVStorageSaveData kkm_last_timestamp [08:58:56]File name is /storage/kkm_last_timestamp [08:58:56]Write 4 bytes [08:58:56]NVStorageSaveData done [08:58:56]ExternCall_PrintAddStr [08:58:56]wPrintStart [08:58:56]Write to MH i2c: 01 00 00 CA 08 D2 [08:58:56]Write i2c OK [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: 01 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: 01 07 00 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: 01 07 00 CA 08 00 00 00 00 00 FF 0F E7 [08:58:56]RasterBufferAndPrint [08:58:56]line Счет N : (3)220742 [08:58:56]line ИНН: 02508201610067 [08:58:56]line Контрольно-Кассовый Чек [08:58:56]line ПРОДАЖА [08:58:56]line Товар: 4700002083914 [08:58:56]line Водка Сары челек 0,35л [08:58:56]line 1.000 * 260.00 [08:58:56]line = 260.00 [08:58:56]line НДС 12% НСП 1% [08:58:56]line > о реализуемом товаре [08:58:56]line ИТОГО: 260.00 [08:58:56]line НСП 1% : 2.30 [08:58:56]line НДС 12% : 27.61 [08:58:56]line Наличными: 260.00 [08:58:56]line Безнал.: 0.00 [08:58:56]line Место: АЗС № 144 "Партнер Нефть" [08:58:56]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:58:56]line СНО: Общий режим [08:58:56]line Чек 34 20.06.2024 08:58 [08:58:56]line Смена: 393 ФФД: 1.0 [08:58:56]line ЗНМ: 0300000170 [08:58:56]line РНМ: 0000000000095696 [08:58:56]line Версия ККМ: 001 [08:58:56]line ФМ: 0000000000875009 [08:58:56]line ФД: 76593 [08:58:56]line ФПД: 58419105359543 [08:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085857&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76593&fm=58419105359543&tin=02508201610067®Number=0000000000095696&sum=26000 [08:58:56]line 0 [08:58:56]OFD Sender: Processing packet 76593 [packets to send 351, broken 350] [08:58:56]ProducePacketName [08:58:56]name=ofd_packets/00076593 [08:58:56]OFD Sender: To server: pG, [08:58:56]CommunicateWithHost lk.salyk.kg:30040 [08:58:56]ConnectInit lk.salyk.kg [08:58:56]written 0, free lines is 4095 [08:58:56]Connected sock=7 [08:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 83 4F 23 01 02 85 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 51 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2B 01 00 35 04 06 00 35 21 C2 05 E6 B7 9E 3A 29 E0 6F 86 FD 08 [08:58:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 82 66 47 00 BF FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2B 01 00 F4 03 04 00 F2 95 73 66 B6 04 01 00 00 AA F6 B1 B2 82 C9 E9 F7 [08:58:56]CommunicateWithHost err = 0 [08:58:56]CheckOFDResponse [08:58:56]1017 (14) - 77093643461234 [08:58:56]1041 (16) - 0000000000875009 [08:58:56]1040 (4) - 76593 [08:58:56]1012 (4) - 20.06.2024 02:37 [08:58:56]1206 (1) - 0 [08:58:56]OFD Sender: Remove packet 76593 [08:58:56]ProducePacketName [08:58:56]name=ofd_packets/00076593 [08:58:56]NVStorageDeleteData [08:58:56]Write to MH i2c: 01 00 00 F2 08 FA [08:58:56]Write i2c OK [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: 01 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: 01 07 00 [08:58:56]MH_I2C_Read... [08:58:56]Read from MH i2c: 01 07 00 F2 08 00 00 00 00 00 00 0D 0E [08:58:56]RasterBufferAndPrint [08:58:56]line [08:58:56]line [08:58:56]line [08:58:56]line [08:58:56]line [08:58:56]written 0, free lines is 3334 [08:58:57]MH_Cut [08:58:57]Write to MH i2c: D1 01 00 F9 08 01 D3 [08:58:57]Write i2c OK [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: D1 [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: D1 01 00 [08:58:57]MH_I2C_Read... [08:58:57]Read from MH i2c: D1 01 00 F9 08 00 D2 [08:58:57]Write to MH i2c: 01 00 00 FA 08 02 [08:58:57]Write i2c OK [08:58:57]MH_I2C_Read... [08:58:57]OFD Sender: No OFD packet to send [08:58:57]*** Cut start [08:58:57]*** Partial cut [08:58:57]*** CUTSNS_PIN = 1 [08:58:57]*** CUTSNS_PIN = 0 [08:58:58]*** Brake cut motor [08:58:58]Read from MH i2c: 01 [08:58:58]MH_I2C_Read... [08:58:58]*** Stop cut motor [08:58:58]*** Cut end [08:58:58]Read from MH i2c: 01 07 00 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: 01 07 00 FA 08 00 00 00 00 00 FF 0F 17 [08:58:58]process_action close_receipt done [08:58:58]requested_data is exist [08:58:58]produce_requested_data [08:58:58]requested_item fm.sn is exist - process it [08:58:58]wFMCommunicate request_size=4 [08:58:58]MH_SAM_APDU [08:58:58]CAPDU: 80 11 00 00 [08:58:58]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [08:58:58]Write i2c OK [08:58:58]MH_I2C_Read... [08:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:58]Read from MH i2c: E2 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 17 00 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CD [08:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:58:58]wFMCommunicate OK [08:58:58]requested_item fd.num is exist - process it [08:58:58]SAM_PROTO_GetFieldsCounters [08:58:58]wFMCommunicate request_size=4 [08:58:58]MH_SAM_APDU [08:58:58]CAPDU: 80 13 00 00 [08:58:58]Write to MH i2c: E2 08 00 FC 08 80 13 00 00 00 00 00 00 80 [08:58:58]Write i2c OK [08:58:58]MH_I2C_Read... [08:58:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:58]Read from MH i2c: E2 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 62 00 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 62 00 FC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 31 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [08:58:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 31 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:58]wFMCommunicate OK [08:58:58]SAM_PROTO_GetFieldsCounters done [08:58:58]requested_item shift.num is exist - process it [08:58:58]requested_item shift.opened is exist - process it [08:58:58]req_shift_opened [08:58:58]FM_GetShiftState [08:58:58]SAM_PROTO_GetShiftState [08:58:58]wFMCommunicate request_size=4 [08:58:58]MH_SAM_APDU [08:58:58]CAPDU: 80 13 01 00 [08:58:58]Write to MH i2c: E2 08 00 FD 08 80 13 01 00 00 00 00 00 82 [08:58:58]Write i2c OK [08:58:58]MH_I2C_Read... [08:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:58]Read from MH i2c: E2 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 0E 00 [08:58:58]MH_I2C_Read... [08:58:58]Read from MH i2c: E2 0E 00 FD 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5E [08:58:58]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:58:58]wFMCommunicate OK [08:58:58]SAM_PROTO_GetShiftState done [08:58:58]FM_GetShiftState done [08:58:58]req_shift_opened done [08:58:58]requested_item shift.open_date is exist - process it [08:58:58]req_shift_open_date [08:58:58]req_shift_open_date done [08:58:58]produce_requested_data done [08:58:58]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76593,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:58:58]process_action_free close_receipt [08:58:58]json_value_free [08:58:58]json_value_free done [08:58:58]process_json_proto returns [08:58:58]Send response to host [08:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76593,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:58:58]free response buf [08:58:58]execute_script done [08:58:58]execute_script returns [08:58:58]free content buf [08:58:58]Sock 9.Close socket [08:58:58]Sock 9.Thread stoped [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]accept exits with 10 [08:59:27]New connection [08:59:27]New thread 3067133284 created [08:59:27]Thread 3066989924 joined [08:59:27]Waiting for new connection... [08:59:27]OFD Sender: No OFD packet to send [08:59:27] Sock 10.Parse request [08:59:27]Sock 10.Check first char [08:59:27]Sock 10.First char is OK [08:59:27]request: POST /json_proto HTTP/1.0 [08:59:27]Method: POST [08:59:27]URL: /json_proto [08:59:27]Method is POST - this is cgi request [08:59:27]url: /json_proto [08:59:27]query_string will be loaded in cgi processing [08:59:27]execute_cgi json_proto POST (null) [08:59:27]execute_cgi path=json_proto method=POST [08:59:27]POST find Content-Length [08:59:27]Host: 172.17.39.195:8080 [08:59:27]Content-Length: 655 [08:59:27]Content-Type: application/json [08:59:27] [08:59:27]POST finish read [08:59:27]Found Content-Length = 655 [08:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220743", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:27]execute_script... [08:59: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 : (3)220743", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:27]POST & json_proto [08:59:27]process_json_proto [08:59:27]json parsed OK: [08:59:27]protocol is kg_v1.0 [08:59:27]action value=close_receipt [08:59:27]process_action close_receipt [08:59:27]cmd_close_receipt [08:59:27]MH_GetDate [08:59:27]Write to MH i2c: F0 00 00 FE 08 F5 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: F0 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: F0 09 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: F0 09 00 FE 08 00 71 EF 73 66 99 81 91 64 46 [08:59:27]GetLastDocTimeStamp 1718873937 [08:59:27]current date 1718873969 [08:59:27]FM_GetShiftState [08:59:27]SAM_PROTO_GetShiftState [08:59:27]wFMCommunicate request_size=4 [08:59:27]MH_SAM_APDU [08:59:27]CAPDU: 80 13 01 00 [08:59:27]Write to MH i2c: E2 08 00 FF 08 80 13 01 00 00 00 00 00 84 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:27]Read from MH i2c: E2 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 0E 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 0E 00 FF 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 60 [08:59:27]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:59:27]wFMCommunicate OK [08:59:27]SAM_PROTO_GetShiftState done [08:59:27]FM_GetShiftState done [08:59:27]opened in 1718843774 [08:59:27]opened+sec_in_day 1718930174 [08:59:27]quantity*price = 7200 [08:59:27]sum+1 = 7201 [08:59:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 72.00 НСП 1% : 0.64 НДС 12% : 7.65 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 35 20.06.2024 08:59 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76594 ФПД: 133314405265767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085930&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76594&fm=133314405265767&tin=02508201610067®Number=0000000000095696&sum=7200 0 [08:59:28]StoreToDocumentArchive [08:59:28]shift 393 fd 76594 [08:59:28]save to /storage/0393/doc_00076594 [08:59:28]save last doc name /storage/0393/doc_00076594 to /storage/kkm_last_doc_name [08:59:28]save OK [08:59:28]Clear old archive folders... [08:59:28]ProcessDocumentItem done err = 0, tmpTLVsize=294 [08:59:28]tlvbuf is 00DE3840 [08:59:28]SAM_PROTO_ClearQueue [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 09 00 00 [08:59:28]Write to MH i2c: E2 08 00 0C 09 80 09 00 00 00 00 00 00 87 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 0C 09 00 90 00 89 [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]SAM_PROTO_ClearQueue done [08:59:28]KKMCreateOFDPacket [08:59:28]OFDProtocolAddRootSTLVToBuf [08:59:28]FM_MakeSignedData [08:59:28]FM_MakeSignedData [08:59:28]SAM_PROTO_SignData [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 01 02 [08:59:28]Write to MH i2c: E2 08 00 0D 09 80 0D 01 02 00 00 00 00 8F [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]wFMCommunicate request_size=255 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [08:59:28]Write to MH i2c: E2 02 01 0E 09 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 60 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]wFMCommunicate request_size=53 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2B 01 00 35 04 06 00 79 3F AD C4 F1 67 [08:59:28]Write to MH i2c: E2 38 00 0F 09 80 0D 02 02 30 00 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2B 01 00 35 04 06 00 79 3F AD C4 F1 67 00 00 6D [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:29]Read from MH i2c: E2 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 03 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 03 00 0F 09 00 90 00 8C [08:59:29]RAPDU: 90 00 [08:59:29]wFMCommunicate OK [08:59:29]wFMCommunicate request_size=4 [08:59:29]MH_SAM_APDU [08:59:29]CAPDU: 80 0D 03 02 [08:59:29]Write to MH i2c: E2 08 00 10 09 80 0D 03 02 00 00 00 00 94 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:29]Read from MH i2c: E2 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 0B 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 0B 00 10 09 00 D9 9C 16 49 F4 9D 60 41 90 00 9B [08:59:29]RAPDU: D9 9C 16 49 F4 9D 60 41 90 00 [08:59:29]wFMCommunicate OK [08:59:29]SAM_PROTO_SignData done [08:59:29]FM_MakeSignedData done [08:59:29]CreateOFDProtocolMessage [08:59:29]wFMCommunicate request_size=4 [08:59:29]MH_SAM_APDU [08:59:29]CAPDU: 80 11 00 00 [08:59:29]Write to MH i2c: E2 08 00 11 09 80 11 00 00 00 00 00 00 94 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:29]Read from MH i2c: E2 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 17 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 17 00 11 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E4 [08:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:59:29]wFMCommunicate OK [08:59:29]CreateOFDProtocolMessage done [08:59:29]OFDSenderStorePacket 76594 [08:59:29]StoreOFDPacket docnum=76594 [08:59:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 E6 9B 32 01 3B 93 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2B 01 00 35 04 06 00 79 3F AD C4 F1 67 D9 9C 16 49 F4 9D 60 41 [08:59:29]CheckFolder [08:59:29]dirname=/storage/ofd_packets [08:59:29]CheckFolder done [08:59:29]ProducePacketName [08:59:29]name=ofd_packets/00076594 [08:59:29]NVStorageSaveData ofd_packets/00076594 [08:59:29]File name is /storage/ofd_packets/00076594 [08:59:29]Write 344 bytes [08:59:29]NVStorageSaveData done [08:59:29]OFDSenderStorePacket done [08:59:29]KKMCreateOFDPacket done [08:59:29]NVStorageSaveData kkm_last_timestamp [08:59:29]File name is /storage/kkm_last_timestamp [08:59:29]Write 4 bytes [08:59:29]NVStorageSaveData done [08:59:29]ExternCall_PrintAddStr [08:59:29]wPrintStart [08:59:29]Write to MH i2c: 01 00 00 12 09 1B [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 07 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 FF 0F 30 [08:59:29]RasterBufferAndPrint [08:59:29]line Счет N : (3)220743 [08:59:29]line ИНН: 02508201610067 [08:59:29]line Контрольно-Кассовый Чек [08:59:29]line ПРОДАЖА [08:59:29]line Товар: 4600682557456 [08:59:29]line Напиток FLash up energy эн ж/б 0,5/0,45л [08:59:29]line 1.000 * 72.00 [08:59:29]line = 72.00 [08:59:29]line НДС 12% НСП 1% [08:59:29]line > о реализуемом товаре [08:59:29]line ИТОГО: 72.00 [08:59:29]line НСП 1% : 0.64 [08:59:29]line НДС 12% : 7.65 [08:59:29]line Наличными: 72.00 [08:59:29]line Безнал.: 0.00 [08:59:29]line Место: АЗС № 144 "Партнер Нефть" [08:59:29]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:59:29]line СНО: Общий режим [08:59:29]line Чек 35 20.06.2024 08:59 [08:59:29]line Смена: 393 ФФД: 1.0 [08:59:29]line ЗНМ: 0300000170 [08:59:29]line РНМ: 0000000000095696 [08:59:29]line Версия ККМ: 001 [08:59:29]line ФМ: 0000000000875009 [08:59:29]line ФД: 76594 [08:59:29]line ФПД: 133314405265767 [08:59:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085930&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76594&fm=133314405265767&tin=02508201610067®Number=0000000000095696&sum=7200 [08:59:29]line 0 [08:59:29]OFD Sender: Processing packet 76594 [packets to send 351, broken 350] [08:59:29]ProducePacketName [08:59:29]name=ofd_packets/00076594 [08:59:29]OFD Sender: To server: pG, [08:59:29]CommunicateWithHost lk.salyk.kg:30040 [08:59:29]ConnectInit lk.salyk.kg [08:59:29]written 0, free lines is 4095 [08:59:29]Connected sock=9 [08:59:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 E6 9B 32 01 3B 93 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 72 EF 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2B 01 00 35 04 06 00 79 3F AD C4 F1 67 D9 9C 16 49 F4 9D 60 41 [08:59:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F7 43 47 00 6E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2B 01 00 F4 03 04 00 13 96 73 66 B6 04 01 00 00 0A 1D 16 E5 01 F0 6C 21 [08:59:29]CommunicateWithHost err = 0 [08:59:29]CheckOFDResponse [08:59:29]1017 (14) - 77093643461234 [08:59:29]1041 (16) - 0000000000875009 [08:59:29]1040 (4) - 76594 [08:59:29]1012 (4) - 20.06.2024 02:38 [08:59:29]1206 (1) - 0 [08:59:29]OFD Sender: Remove packet 76594 [08:59:29]ProducePacketName [08:59:29]name=ofd_packets/00076594 [08:59:29]NVStorageDeleteData [08:59:29]Write to MH i2c: 01 00 00 3B 09 44 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 07 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 EF 0C 46 [08:59:29]RasterBufferAndPrint [08:59:29]line [08:59:29]line [08:59:29]line [08:59:29]line [08:59:29]line [08:59:29]written 0, free lines is 3317 [08:59:29]MH_Cut [08:59:29]Write to MH i2c: D1 01 00 42 09 01 1D [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: D1 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: D1 01 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: D1 01 00 42 09 00 1C [08:59:29]Write to MH i2c: 01 00 00 43 09 4C [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:30]OFD Sender: No OFD packet to send [08:59:30]*** Cut start [08:59:30]*** Partial cut [08:59:30]*** CUTSNS_PIN = 1 [08:59:30]*** CUTSNS_PIN = 0 [08:59:30]*** Brake cut motor [08:59:31]Read from MH i2c: 01 [08:59:31]MH_I2C_Read... [08:59:31]*** Stop cut motor [08:59:31]*** Cut end [08:59:31]Read from MH i2c: 01 07 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 43 09 00 00 00 00 00 FF 0F 61 [08:59:31]process_action close_receipt done [08:59:31]requested_data is exist [08:59:31]produce_requested_data [08:59:31]requested_item fm.sn is exist - process it [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 11 00 00 [08:59:31]Write to MH i2c: E2 08 00 44 09 80 11 00 00 00 00 00 00 C7 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 44 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 17 [08:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:59:31]wFMCommunicate OK [08:59:31]requested_item fd.num is exist - process it [08:59:31]SAM_PROTO_GetFieldsCounters [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 13 00 00 [08:59:31]Write to MH i2c: E2 08 00 45 09 80 13 00 00 00 00 00 00 CA [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 62 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 62 00 45 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 32 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [08:59:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 32 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_GetFieldsCounters done [08:59:31]requested_item shift.num is exist - process it [08:59:31]requested_item shift.opened is exist - process it [08:59:31]req_shift_opened [08:59:31]FM_GetShiftState [08:59:31]SAM_PROTO_GetShiftState [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 13 01 00 [08:59:31]Write to MH i2c: E2 08 00 46 09 80 13 01 00 00 00 00 00 CC [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0E 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0E 00 46 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A8 [08:59:31]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_GetShiftState done [08:59:31]FM_GetShiftState done [08:59:31]req_shift_opened done [08:59:31]requested_item shift.open_date is exist - process it [08:59:31]req_shift_open_date [08:59:31]req_shift_open_date done [08:59:31]produce_requested_data done [08:59:31]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76594,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [08:59:31]process_action_free close_receipt [08:59:31]json_value_free [08:59:31]json_value_free done [08:59:31]process_json_proto returns [08:59:31]Send response to host [08:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76594,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [08:59:31]free response buf [08:59:31]execute_script done [08:59:31]execute_script returns [08:59:31]free content buf [08:59:31]Sock 10.Close socket [08:59:31]Sock 10.Thread stoped [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:27]accept exits with 7 [09:06:27]New connection [09:06:27]New thread 3066989924 created [09:06:27]Thread 3067133284 joined [09:06:27]Waiting for new connection... [09:06:27] Sock 7.Parse request [09:06:27]Sock 7.Check first char [09:06:27]Sock 7.First char is OK [09:06:27]request: POST /json_proto HTTP/1.0 [09:06:27]Method: POST [09:06:27]URL: /json_proto [09:06:27]Method is POST - this is cgi request [09:06:27]url: /json_proto [09:06:27]query_string will be loaded in cgi processing [09:06:27]execute_cgi json_proto POST (null) [09:06:27]execute_cgi path=json_proto method=POST [09:06:27]POST find Content-Length [09:06:27]Host: 172.17.39.195:8080 [09:06:27]Content-Length: 614 [09:06:27]Content-Type: application/json [09:06:27] [09:06:27]POST finish read [09:06:27]Found Content-Length = 614 [09:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220744", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:27]execute_script... [09:06: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 : (3)220744", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:27]POST & json_proto [09:06:27]process_json_proto [09:06:27]json parsed OK: [09:06:27]protocol is kg_v1.0 [09:06:27]action value=close_receipt [09:06:27]process_action close_receipt [09:06:27]cmd_close_receipt [09:06:27]MH_GetDate [09:06:27]Write to MH i2c: F0 00 00 47 09 3F [09:06:27]Write i2c OK [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: F0 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: F0 09 00 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: F0 09 00 47 09 00 15 F1 73 66 99 81 91 64 36 [09:06:27]GetLastDocTimeStamp 1718873970 [09:06:27]current date 1718874389 [09:06:27]FM_GetShiftState [09:06:27]SAM_PROTO_GetShiftState [09:06:27]wFMCommunicate request_size=4 [09:06:27]MH_SAM_APDU [09:06:27]CAPDU: 80 13 01 00 [09:06:27]Write to MH i2c: E2 08 00 48 09 80 13 01 00 00 00 00 00 CE [09:06:27]Write i2c OK [09:06:27]MH_I2C_Read... [09:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:27]Read from MH i2c: E2 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: E2 0E 00 [09:06:27]MH_I2C_Read... [09:06:27]Read from MH i2c: E2 0E 00 48 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 AA [09:06:27]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:06:27]wFMCommunicate OK [09:06:27]SAM_PROTO_GetShiftState done [09:06:27]FM_GetShiftState done [09:06:27]opened in 1718843774 [09:06:27]opened+sec_in_day 1718930174 [09:06:27]quantity*price = 21000 [09:06:27]sum+1 = 21001 [09:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 36 20.06.2024 09:06 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76595 ФПД: 13089046547422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090630&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76595&fm=13089046547422&tin=02508201610067®Number=0000000000095696&sum=21000 0 [09:06:28]StoreToDocumentArchive [09:06:28]shift 393 fd 76595 [09:06:28]save to /storage/0393/doc_00076595 [09:06:28]save last doc name /storage/0393/doc_00076595 to /storage/kkm_last_doc_name [09:06:28]save OK [09:06:28]Clear old archive folders... [09:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=266 [09:06:28]tlvbuf is B6F813F0 [09:06:28]SAM_PROTO_ClearQueue [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 09 00 00 [09:06:28]Write to MH i2c: E2 08 00 55 09 80 09 00 00 00 00 00 00 D0 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 55 09 00 90 00 D2 [09:06:28]RAPDU: 90 00 [09:06:28]wFMCommunicate OK [09:06:28]SAM_PROTO_ClearQueue done [09:06:28]KKMCreateOFDPacket [09:06:28]OFDProtocolAddRootSTLVToBuf [09:06:28]FM_MakeSignedData [09:06:28]FM_MakeSignedData [09:06:28]SAM_PROTO_SignData [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 0D 01 02 [09:06:28]Write to MH i2c: E2 08 00 56 09 80 0D 01 02 00 00 00 00 D8 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [09:06:28]RAPDU: 90 00 [09:06:28]wFMCommunicate OK [09:06:28]wFMCommunicate request_size=255 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 16 F1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [09:06:28]Write to MH i2c: E2 02 01 57 09 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 16 F1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 4D [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [09:06:28]RAPDU: 90 00 [09:06:28]wFMCommunicate OK [09:06:28]wFMCommunicate request_size=25 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 0D 02 02 14 30 39 10 04 04 00 33 2B 01 00 35 04 06 00 0B E7 87 F8 4B DE [09:06:28]Write to MH i2c: E2 1C 00 58 09 80 0D 02 02 14 00 30 39 10 04 04 00 33 2B 01 00 35 04 06 00 0B E7 87 F8 4B DE 00 00 BC [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:29]Read from MH i2c: E2 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 03 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [09:06:29]RAPDU: 90 00 [09:06:29]wFMCommunicate OK [09:06:29]wFMCommunicate request_size=4 [09:06:29]MH_SAM_APDU [09:06:29]CAPDU: 80 0D 03 02 [09:06:29]Write to MH i2c: E2 08 00 59 09 80 0D 03 02 00 00 00 00 DD [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:29]Read from MH i2c: E2 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 0B 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 0B 00 59 09 00 3C CC 4B B1 6A 5F D5 68 90 00 E8 [09:06:29]RAPDU: 3C CC 4B B1 6A 5F D5 68 90 00 [09:06:29]wFMCommunicate OK [09:06:29]SAM_PROTO_SignData done [09:06:29]FM_MakeSignedData done [09:06:29]CreateOFDProtocolMessage [09:06:29]wFMCommunicate request_size=4 [09:06:29]MH_SAM_APDU [09:06:29]CAPDU: 80 11 00 00 [09:06:29]Write to MH i2c: E2 08 00 5A 09 80 11 00 00 00 00 00 00 DD [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:29]Read from MH i2c: E2 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 17 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 17 00 5A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2D [09:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:06:29]wFMCommunicate OK [09:06:29]CreateOFDProtocolMessage done [09:06:29]OFDSenderStorePacket 76595 [09:06:29]StoreOFDPacket docnum=76595 [09:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 2B B2 16 01 F7 51 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 16 F1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 33 2B 01 00 35 04 06 00 0B E7 87 F8 4B DE 3C CC 4B B1 6A 5F D5 68 [09:06:29]CheckFolder [09:06:29]dirname=/storage/ofd_packets [09:06:29]CheckFolder done [09:06:29]ProducePacketName [09:06:29]name=ofd_packets/00076595 [09:06:29]NVStorageSaveData ofd_packets/00076595 [09:06:29]File name is /storage/ofd_packets/00076595 [09:06:29]Write 316 bytes [09:06:29]NVStorageSaveData done [09:06:29]OFDSenderStorePacket done [09:06:29]KKMCreateOFDPacket done [09:06:29]NVStorageSaveData kkm_last_timestamp [09:06:29]File name is /storage/kkm_last_timestamp [09:06:29]Write 4 bytes [09:06:29]NVStorageSaveData done [09:06:29]ExternCall_PrintAddStr [09:06:29]wPrintStart [09:06:29]Write to MH i2c: 01 00 00 5B 09 64 [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 07 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 FF 0F 79 [09:06:29]RasterBufferAndPrint [09:06:29]line Счет N : (3)220744 [09:06:29]line ИНН: 02508201610067 [09:06:29]line Контрольно-Кассовый Чек [09:06:29]line ПРОДАЖА [09:06:29]line Товар: 4870001570095 [09:06:29]line Напиток Pepsi 2л [09:06:29]line 1.000 * 210.00 [09:06:29]line = 210.00 [09:06:29]line НДС 12% НСП 1% [09:06:29]line > о реализуемом товаре [09:06:29]line ИТОГО: 210.00 [09:06:29]line НСП 1% : 1.86 [09:06:29]line НДС 12% : 22.30 [09:06:29]line Наличными: 210.00 [09:06:29]line Безнал.: 0.00 [09:06:29]line Место: АЗС № 144 "Партнер Нефть" [09:06:29]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:06:29]line СНО: Общий режим [09:06:29]line Чек 36 20.06.2024 09:06 [09:06:29]line Смена: 393 ФФД: 1.0 [09:06:29]line ЗНМ: 0300000170 [09:06:29]line РНМ: 0000000000095696 [09:06:29]line Версия ККМ: 001 [09:06:29]line ФМ: 0000000000875009 [09:06:29]line ФД: 76595 [09:06:29]line ФПД: 13089046547422 [09:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090630&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76595&fm=13089046547422&tin=02508201610067®Number=0000000000095696&sum=21000 [09:06:29]line 0 [09:06:29]OFD Sender: Processing packet 76595 [packets to send 351, broken 350] [09:06:29]ProducePacketName [09:06:29]name=ofd_packets/00076595 [09:06:29]OFD Sender: To server: pG, [09:06:29]CommunicateWithHost lk.salyk.kg:30040 [09:06:29]ConnectInit lk.salyk.kg [09:06:29]written 0, free lines is 4095 [09:06:29]Connected sock=11 [09:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 2B B2 16 01 F7 51 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 16 F1 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 33 2B 01 00 35 04 06 00 0B E7 87 F8 4B DE 3C CC 4B B1 6A 5F D5 68 [09:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 82 05 47 00 F6 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 33 2B 01 00 F4 03 04 00 B7 97 73 66 B6 04 01 00 00 CD 3B 5B 22 37 27 5B 5F [09:06:29]CommunicateWithHost err = 0 [09:06:29]CheckOFDResponse [09:06:29]1017 (14) - 77093643461234 [09:06:29]1041 (16) - 0000000000875009 [09:06:29]1040 (4) - 76595 [09:06:29]1012 (4) - 20.06.2024 02:45 [09:06:29]1206 (1) - 0 [09:06:29]OFD Sender: Remove packet 76595 [09:06:29]ProducePacketName [09:06:29]name=ofd_packets/00076595 [09:06:29]NVStorageDeleteData [09:06:29]Write to MH i2c: 01 00 00 83 09 8C [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 07 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: 01 07 00 83 09 00 00 00 00 00 02 0D A2 [09:06:29]RasterBufferAndPrint [09:06:29]line [09:06:29]line [09:06:29]line [09:06:29]line [09:06:29]line [09:06:29]written 0, free lines is 3337 [09:06:29]MH_Cut [09:06:29]Write to MH i2c: D1 01 00 8A 09 01 65 [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: D1 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: D1 01 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: D1 01 00 8A 09 00 64 [09:06:29]Write to MH i2c: 01 00 00 8B 09 94 [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:30]OFD Sender: No OFD packet to send [09:06:30]*** Cut start [09:06:30]*** Partial cut [09:06:30]*** CUTSNS_PIN = 1 [09:06:30]*** CUTSNS_PIN = 0 [09:06:30]*** Brake cut motor [09:06:31]Read from MH i2c: 01 [09:06:31]MH_I2C_Read... [09:06:31]*** Stop cut motor [09:06:31]*** Cut end [09:06:31]Read from MH i2c: 01 07 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: 01 07 00 8B 09 00 00 00 00 00 FF 0F A9 [09:06:31]process_action close_receipt done [09:06:31]requested_data is exist [09:06:31]produce_requested_data [09:06:31]requested_item fm.sn is exist - process it [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 11 00 00 [09:06:31]Write to MH i2c: E2 08 00 8C 09 80 11 00 00 00 00 00 00 0F [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 17 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 17 00 8C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5F [09:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:06:31]wFMCommunicate OK [09:06:31]requested_item fd.num is exist - process it [09:06:31]SAM_PROTO_GetFieldsCounters [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 13 00 00 [09:06:31]Write to MH i2c: E2 08 00 8D 09 80 13 00 00 00 00 00 00 12 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 62 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 62 00 8D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 33 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [09:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 33 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:31]wFMCommunicate OK [09:06:31]SAM_PROTO_GetFieldsCounters done [09:06:31]requested_item shift.num is exist - process it [09:06:31]requested_item shift.opened is exist - process it [09:06:31]req_shift_opened [09:06:31]FM_GetShiftState [09:06:31]SAM_PROTO_GetShiftState [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 13 01 00 [09:06:31]Write to MH i2c: E2 08 00 8E 09 80 13 01 00 00 00 00 00 14 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 8E 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F0 [09:06:31]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:06:31]wFMCommunicate OK [09:06:31]SAM_PROTO_GetShiftState done [09:06:31]FM_GetShiftState done [09:06:31]req_shift_opened done [09:06:31]requested_item shift.open_date is exist - process it [09:06:31]req_shift_open_date [09:06:31]req_shift_open_date done [09:06:31]produce_requested_data done [09:06:31]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76595,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [09:06:31]process_action_free close_receipt [09:06:31]json_value_free [09:06:31]json_value_free done [09:06:31]process_json_proto returns [09:06:31]Send response to host [09:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76595,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [09:06:31]free response buf [09:06:31]execute_script done [09:06:31]execute_script returns [09:06:31]free content buf [09:06:31]Sock 7.Close socket [09:06:31]Sock 7.Thread stoped [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:50]accept exits with 9 [09:13:50]New connection [09:13:50]New thread 3067133284 created [09:13:50]Thread 3066989924 joined [09:13:50]Waiting for new connection... [09:13:50] Sock 9.Parse request [09:13:50]Sock 9.Check first char [09:13:50]Sock 9.First char is OK [09:13:50]request: POST /json_proto HTTP/1.0 [09:13:50]Method: POST [09:13:50]URL: /json_proto [09:13:50]Method is POST - this is cgi request [09:13:50]url: /json_proto [09:13:50]query_string will be loaded in cgi processing [09:13:50]execute_cgi json_proto POST (null) [09:13:50]execute_cgi path=json_proto method=POST [09:13:50]POST find Content-Length [09:13:50]Host: 172.17.39.195:8080 [09:13:50]Content-Length: 621 [09:13:50]Content-Type: application/json [09:13:50] [09:13:50]POST finish read [09:13:50]Found Content-Length = 621 [09:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220745", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:50]execute_script... [09:13: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 : (3)220745", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:50]POST & json_proto [09:13:50]process_json_proto [09:13:50]json parsed OK: [09:13:50]protocol is kg_v1.0 [09:13:50]action value=close_receipt [09:13:50]process_action close_receipt [09:13:50]cmd_close_receipt [09:13:50]MH_GetDate [09:13:50]Write to MH i2c: F0 00 00 8F 09 87 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: F0 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: F0 09 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: F0 09 00 8F 09 00 D1 F2 73 66 99 81 91 64 3B [09:13:50]GetLastDocTimeStamp 1718874390 [09:13:50]current date 1718874833 [09:13:50]FM_GetShiftState [09:13:50]SAM_PROTO_GetShiftState [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 13 01 00 [09:13:50]Write to MH i2c: E2 08 00 90 09 80 13 01 00 00 00 00 00 16 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0E 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0E 00 90 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F2 [09:13:50]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_GetShiftState done [09:13:50]FM_GetShiftState done [09:13:50]opened in 1718843774 [09:13:50]opened+sec_in_day 1718930174 [09:13:50]quantity*price = 14000 [09:13:50]sum+1 = 14001 [09:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 37 20.06.2024 09:13 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76596 ФПД: 64235357392085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T091353&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76596&fm=64235357392085&tin=02508201610067®Number=0000000000095696&sum=14000 0 [09:13:51]StoreToDocumentArchive [09:13:51]shift 393 fd 76596 [09:13:51]save to /storage/0393/doc_00076596 [09:13:51]save last doc name /storage/0393/doc_00076596 to /storage/kkm_last_doc_name [09:13:51]save OK [09:13:51]Clear old archive folders... [09:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:13:51]tlvbuf is 00DDA850 [09:13:51]SAM_PROTO_ClearQueue [09:13:51]wFMCommunicate request_size=4 [09:13:51]MH_SAM_APDU [09:13:51]CAPDU: 80 09 00 00 [09:13:51]Write to MH i2c: E2 08 00 9D 09 80 09 00 00 00 00 00 00 18 [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:51]Read from MH i2c: E2 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 03 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 03 00 9D 09 00 90 00 1A [09:13:51]RAPDU: 90 00 [09:13:51]wFMCommunicate OK [09:13:51]SAM_PROTO_ClearQueue done [09:13:51]KKMCreateOFDPacket [09:13:51]OFDProtocolAddRootSTLVToBuf [09:13:51]FM_MakeSignedData [09:13:51]FM_MakeSignedData [09:13:51]SAM_PROTO_SignData [09:13:51]wFMCommunicate request_size=4 [09:13:51]MH_SAM_APDU [09:13:51]CAPDU: 80 0D 01 02 [09:13:51]Write to MH i2c: E2 08 00 9E 09 80 0D 01 02 00 00 00 00 20 [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:51]Read from MH i2c: E2 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 03 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 03 00 9E 09 00 90 00 1B [09:13:51]RAPDU: 90 00 [09:13:51]wFMCommunicate OK [09:13:51]wFMCommunicate request_size=255 [09:13:51]MH_SAM_APDU [09:13:51]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D1 F2 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [09:13:51]Write to MH i2c: E2 02 01 9F 09 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D1 F2 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 56 [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 9F 09 00 90 00 1C [09:13:52]RAPDU: 90 00 [09:13:52]wFMCommunicate OK [09:13:52]wFMCommunicate request_size=32 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2B 01 00 35 04 06 00 3A 6B F5 A8 CC D5 [09:13:52]Write to MH i2c: E2 23 00 A0 09 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2B 01 00 35 04 06 00 3A 6B F5 A8 CC D5 00 00 C0 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 A0 09 00 90 00 1D [09:13:52]RAPDU: 90 00 [09:13:52]wFMCommunicate OK [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 0D 03 02 [09:13:52]Write to MH i2c: E2 08 00 A1 09 80 0D 03 02 00 00 00 00 25 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0B 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0B 00 A1 09 00 2A 44 CB 2E 75 8D 54 D0 90 00 B3 [09:13:52]RAPDU: 2A 44 CB 2E 75 8D 54 D0 90 00 [09:13:52]wFMCommunicate OK [09:13:52]SAM_PROTO_SignData done [09:13:52]FM_MakeSignedData done [09:13:52]CreateOFDProtocolMessage [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 11 00 00 [09:13:52]Write to MH i2c: E2 08 00 A2 09 80 11 00 00 00 00 00 00 25 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 17 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 17 00 A2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 75 [09:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:13:52]wFMCommunicate OK [09:13:52]CreateOFDProtocolMessage done [09:13:52]OFDSenderStorePacket 76596 [09:13:52]StoreOFDPacket docnum=76596 [09:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 A1 AA 1D 01 DD DB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D1 F2 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2B 01 00 35 04 06 00 3A 6B F5 A8 CC D5 2A 44 CB 2E 75 8D 54 D0 [09:13:52]CheckFolder [09:13:52]dirname=/storage/ofd_packets [09:13:52]CheckFolder done [09:13:52]ProducePacketName [09:13:52]name=ofd_packets/00076596 [09:13:52]NVStorageSaveData ofd_packets/00076596 [09:13:52]File name is /storage/ofd_packets/00076596 [09:13:52]Write 323 bytes [09:13:52]NVStorageSaveData done [09:13:52]OFDSenderStorePacket done [09:13:52]KKMCreateOFDPacket done [09:13:52]NVStorageSaveData kkm_last_timestamp [09:13:52]File name is /storage/kkm_last_timestamp [09:13:52]Write 4 bytes [09:13:52]NVStorageSaveData done [09:13:52]OFD Sender: Processing packet 76596 [packets to send 351, broken 350] [09:13:52]ProducePacketName [09:13:52]name=ofd_packets/00076596 [09:13:52]OFD Sender: To server: pG, [09:13:52]CommunicateWithHost lk.salyk.kg:30040 [09:13:52]ConnectInit lk.salyk.kg [09:13:52]ExternCall_PrintAddStr [09:13:52]wPrintStart [09:13:52]Write to MH i2c: 01 00 00 A3 09 AC [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 07 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 07 00 A3 09 00 00 00 00 00 FF 0F C1 [09:13:52]RasterBufferAndPrint [09:13:52]line Счет N : (3)220745 [09:13:52]line ИНН: 02508201610067 [09:13:52]line Контрольно-Кассовый Чек [09:13:52]line ПРОДАЖА [09:13:52]line Товар: 48747059 [09:13:52]line Сигареты Winston Legend Blue [09:13:52]line 1.000 * 140.00 [09:13:52]line = 140.00 [09:13:52]line НДС 12% НСП 1% [09:13:52]line > о реализуемом товаре [09:13:52]line ИТОГО: 140.00 [09:13:52]line НСП 1% : 1.24 [09:13:52]line НДС 12% : 14.87 [09:13:52]line Наличными: 140.00 [09:13:52]line Безнал.: 0.00 [09:13:52]line Место: АЗС № 144 "Партнер Нефть" [09:13:52]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:13:52]line СНО: Общий режим [09:13:52]line Чек 37 20.06.2024 09:13 [09:13:52]line Смена: 393 ФФД: 1.0 [09:13:52]line ЗНМ: 0300000170 [09:13:52]line РНМ: 0000000000095696 [09:13:52]line Версия ККМ: 001 [09:13:52]line ФМ: 0000000000875009 [09:13:52]line ФД: 76596 [09:13:52]line ФПД: 64235357392085 [09:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T091353&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76596&fm=64235357392085&tin=02508201610067®Number=0000000000095696&sum=14000 [09:13:52]line 0 [09:13:52]written 0, free lines is 4095 [09:13:52]Write to MH i2c: 01 00 00 CC 09 D5 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 07 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 07 00 CC 09 00 00 00 00 00 CD 0C B5 [09:13:52]RasterBufferAndPrint [09:13:52]line [09:13:52]line [09:13:52]line [09:13:52]line [09:13:52]line [09:13:52]written 0, free lines is 3282 [09:13:52]MH_Cut [09:13:52]Write to MH i2c: D1 01 00 D3 09 01 AE [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: D1 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: D1 01 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: D1 01 00 D3 09 00 AD [09:13:52]Write to MH i2c: 01 00 00 D4 09 DD [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:53]Connected sock=11 [09:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 A1 AA 1D 01 DD DB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 D1 F2 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2B 01 00 35 04 06 00 3A 6B F5 A8 CC D5 2A 44 CB 2E 75 8D 54 D0 [09:13:53]*** Cut start [09:13:53]*** Partial cut [09:13:53]*** CUTSNS_PIN = 1 [09:13:53]*** CUTSNS_PIN = 0 [09:13:53]*** Brake cut motor [09:13:54]Read from MH i2c: 01 [09:13:54]MH_I2C_Read... [09:13:54]*** Stop cut motor [09:13:54]*** Cut end [09:13:54]Read from MH i2c: 01 07 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 FF 0F F2 [09:13:54]process_action close_receipt done [09:13:54]requested_data is exist [09:13:54]produce_requested_data [09:13:54]requested_item fm.sn is exist - process it [09:13:54]wFMCommunicate request_size=4 [09:13:54]MH_SAM_APDU [09:13:54]CAPDU: 80 11 00 00 [09:13:54]Write to MH i2c: E2 08 00 D5 09 80 11 00 00 00 00 00 00 58 [09:13:54]Write i2c OK [09:13:54]MH_I2C_Read... [09:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:54]Read from MH i2c: E2 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 17 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 17 00 D5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A8 [09:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:13:54]wFMCommunicate OK [09:13:54]requested_item fd.num is exist - process it [09:13:54]SAM_PROTO_GetFieldsCounters [09:13:54]wFMCommunicate request_size=4 [09:13:54]MH_SAM_APDU [09:13:54]CAPDU: 80 13 00 00 [09:13:54]Write to MH i2c: E2 08 00 D6 09 80 13 00 00 00 00 00 00 5B [09:13:54]Write i2c OK [09:13:54]MH_I2C_Read... [09:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:54]Read from MH i2c: E2 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 62 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 62 00 D6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 34 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [09:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 34 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:54]wFMCommunicate OK [09:13:54]SAM_PROTO_GetFieldsCounters done [09:13:54]requested_item shift.num is exist - process it [09:13:54]requested_item shift.opened is exist - process it [09:13:54]req_shift_opened [09:13:54]FM_GetShiftState [09:13:54]SAM_PROTO_GetShiftState [09:13:54]wFMCommunicate request_size=4 [09:13:54]MH_SAM_APDU [09:13:54]CAPDU: 80 13 01 00 [09:13:54]Write to MH i2c: E2 08 00 D7 09 80 13 01 00 00 00 00 00 5D [09:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 EB 00 47 00 6C 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2B 01 00 F4 03 04 00 73 99 73 66 B6 04 01 00 00 7B 40 A7 0A D1 83 F1 FC [09:13:54]CommunicateWithHost err = 0 [09:13:54]CheckOFDResponse [09:13:54]1017 (14) - 77093643461234 [09:13:54]1041 (16) - 0000000000875009 [09:13:54]1040 (4) - 76596 [09:13:54]1012 (4) - 20.06.2024 02:52 [09:13:54]1206 (1) - 0 [09:13:54]OFD Sender: Remove packet 76596 [09:13:54]ProducePacketName [09:13:54]name=ofd_packets/00076596 [09:13:54]NVStorageDeleteData [09:13:54]Write i2c OK [09:13:54]MH_I2C_Read... [09:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:54]Read from MH i2c: E2 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 0E 00 [09:13:54]MH_I2C_Read... [09:13:54]Read from MH i2c: E2 0E 00 D7 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 39 [09:13:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:13:54]wFMCommunicate OK [09:13:54]SAM_PROTO_GetShiftState done [09:13:54]FM_GetShiftState done [09:13:54]req_shift_opened done [09:13:54]requested_item shift.open_date is exist - process it [09:13:54]req_shift_open_date [09:13:54]req_shift_open_date done [09:13:54]produce_requested_data done [09:13:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76596,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [09:13:54]process_action_free close_receipt [09:13:54]json_value_free [09:13:54]json_value_free done [09:13:54]process_json_proto returns [09:13:54]Send response to host [09:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76596,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [09:13:54]free response buf [09:13:54]execute_script done [09:13:54]execute_script returns [09:13:54]free content buf [09:13:54]Sock 9.Close socket [09:13:54]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:37]accept exits with 7 [09:29:37]New connection [09:29:37]New thread 3066989924 created [09:29:37]Thread 3067133284 joined [09:29:37]Waiting for new connection... [09:29:37] Sock 7.Parse request [09:29:37]Sock 7.Check first char [09:29:37]Sock 7.First char is OK [09:29:37]request: POST /json_proto HTTP/1.0 [09:29:37]Method: POST [09:29:37]URL: /json_proto [09:29:37]Method is POST - this is cgi request [09:29:37]url: /json_proto [09:29:37]query_string will be loaded in cgi processing [09:29:37]execute_cgi json_proto POST (null) [09:29:37]execute_cgi path=json_proto method=POST [09:29:37]POST find Content-Length [09:29:37]Host: 172.17.39.195:8080 [09:29:37]Content-Length: 675 [09:29:37]Content-Type: application/json [09:29:37] [09:29:37]POST finish read [09:29:37]Found Content-Length = 675 [09:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1692869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 7.690, "sum" : 560.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:37]execute_script... [09:29:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1692869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 7.690, "sum" : 560.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:37]POST & json_proto [09:29:37]process_json_proto [09:29:37]json parsed OK: [09:29:37]protocol is kg_v1.0 [09:29:37]action value=close_receipt [09:29:37]process_action close_receipt [09:29:37]cmd_close_receipt [09:29:37]MH_GetDate [09:29:37]Write to MH i2c: F0 00 00 D8 09 D0 [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 09 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: F0 09 00 D8 09 00 83 F6 73 66 99 81 91 64 3A [09:29:37]GetLastDocTimeStamp 1718874833 [09:29:37]current date 1718875779 [09:29:37]FM_GetShiftState [09:29:37]SAM_PROTO_GetShiftState [09:29:37]wFMCommunicate request_size=4 [09:29:37]MH_SAM_APDU [09:29:37]CAPDU: 80 13 01 00 [09:29:37]Write to MH i2c: E2 08 00 D9 09 80 13 01 00 00 00 00 00 5F [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:37]Read from MH i2c: E2 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 0E 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 0E 00 D9 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3B [09:29:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:29:37]wFMCommunicate OK [09:29:37]SAM_PROTO_GetShiftState done [09:29:37]FM_GetShiftState done [09:29:37]opened in 1718843774 [09:29:37]opened+sec_in_day 1718930174 [09:29:37]quantity*price = 56060 [09:29:37]sum+1 = 56061 [09:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 560.00 Внесено: 560.00 СДАЧА: 0.00 НСП 1% : 4.96 НДС 12% : 59.53 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 38 20.06.2024 09:29 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76597 ФПД: 33104540240101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092939&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76597&fm=33104540240101&tin=02508201610067®Number=0000000000095696&sum=56000 [09:29:38]StoreToDocumentArchive [09:29:38]shift 393 fd 76597 [09:29:38]save to /storage/0393/doc_00076597 [09:29:38]save last doc name /storage/0393/doc_00076597 to /storage/kkm_last_doc_name [09:29:38]save OK [09:29:38]Clear old archive folders... [09:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:38]tlvbuf is 00DDA750 [09:29:38]SAM_PROTO_ClearQueue [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 09 00 00 [09:29:38]Write to MH i2c: E2 08 00 E6 09 80 09 00 00 00 00 00 00 61 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 E6 09 00 90 00 63 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_ClearQueue done [09:29:38]KKMCreateOFDPacket [09:29:38]OFDProtocolAddRootSTLVToBuf [09:29:38]FM_MakeSignedData [09:29:38]FM_MakeSignedData [09:29:38]SAM_PROTO_SignData [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 01 02 [09:29:38]Write to MH i2c: E2 08 00 E7 09 80 0D 01 02 00 00 00 00 69 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 E7 09 00 90 00 64 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=255 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 83 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2B 01 00 35 04 06 00 1E 1B C0 5C [09:29:38]Write to MH i2c: E2 02 01 E8 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 83 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2B 01 00 35 04 06 00 1E 1B C0 5C 00 00 93 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 E8 09 00 90 00 65 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=7 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 02 02 02 88 E5 [09:29:38]Write to MH i2c: E2 0A 00 E9 09 80 0D 02 02 02 00 88 E5 00 00 DD [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 E9 09 00 90 00 66 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 03 02 [09:29:38]Write to MH i2c: E2 08 00 EA 09 80 0D 03 02 00 00 00 00 6E [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 EA 09 00 F6 00 D8 A7 E5 E0 A9 19 90 00 6B [09:29:38]RAPDU: F6 00 D8 A7 E5 E0 A9 19 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_SignData done [09:29:38]FM_MakeSignedData done [09:29:38]CreateOFDProtocolMessage [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 11 00 00 [09:29:38]Write to MH i2c: E2 08 00 EB 09 80 11 00 00 00 00 00 00 6E [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 EB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BE [09:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:29:38]wFMCommunicate OK [09:29:38]CreateOFDProtocolMessage done [09:29:38]OFDSenderStorePacket 76597 [09:29:38]StoreOFDPacket docnum=76597 [09:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 C1 B0 04 01 29 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 83 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2B 01 00 35 04 06 00 1E 1B C0 5C 88 E5 F6 00 D8 A7 E5 E0 A9 19 [09:29:38]CheckFolder [09:29:38]dirname=/storage/ofd_packets [09:29:38]CheckFolder done [09:29:38]ProducePacketName [09:29:38]name=ofd_packets/00076597 [09:29:38]NVStorageSaveData ofd_packets/00076597 [09:29:38]File name is /storage/ofd_packets/00076597 [09:29:38]Write 298 bytes [09:29:38]NVStorageSaveData done [09:29:38]OFDSenderStorePacket done [09:29:38]KKMCreateOFDPacket done [09:29:38]NVStorageSaveData kkm_last_timestamp [09:29:38]File name is /storage/kkm_last_timestamp [09:29:38]Write 4 bytes [09:29:38]NVStorageSaveData done [09:29:38]ExternCall_PrintAddStr [09:29:38]wPrintStart [09:29:38]Write to MH i2c: 01 00 00 EC 09 F5 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 EC 09 00 00 00 00 00 FF 0F 0A [09:29:38]RasterBufferAndPrint [09:29:38]line Счет N : (1)1692869 [09:29:38]line ИНН: 02508201610067 [09:29:38]line Контрольно-Кассовый Чек [09:29:38]line ПРОДАЖА [09:29:38]line ТРК (МРК, ГНК) : 11 [09:29:38]line Товар: 2710194210 [09:29:38]line ДТ-К-2 [09:29:38]line 7.690 * 72.90 [09:29:38]line = 560.60 [09:29:38]line НДС 12% НСП 1% [09:29:38]line > о реализуемом товаре [09:29:38]line ОКРУГЛЕНИЕ: -0.60 [09:29:38]line ИТОГО: 560.00 [09:29:38]line Внесено: 560.00 [09:29:38]line СДАЧА: 0.00 [09:29:38]line НСП 1% : 4.96 [09:29:38]line НДС 12% : 59.53 [09:29:38]line Наличными: 560.00 [09:29:38]line Безнал.: 0.00 [09:29:38]line Место: АЗС № 144 "Партнер Нефть" [09:29:38]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:29:38]line СНО: Общий режим [09:29:38]line Чек 38 20.06.2024 09:29 [09:29:38]line Смена: 393 ФФД: 1.0 [09:29:38]line ЗНМ: 0300000170 [09:29:38]line РНМ: 0000000000095696 [09:29:38]line Версия ККМ: 001 [09:29:38]line ФМ: 0000000000875009 [09:29:38]line ФД: 76597 [09:29:38]line ФПД: 33104540240101 [09:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092939&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76597&fm=33104540240101&tin=02508201610067®Number=0000000000095696&sum=56000 [09:29:39]OFD Sender: Processing packet 76597 [packets to send 351, broken 350] [09:29:39]ProducePacketName [09:29:39]name=ofd_packets/00076597 [09:29:39]OFD Sender: To server: pG, [09:29:39]CommunicateWithHost lk.salyk.kg:30040 [09:29:39]ConnectInit lk.salyk.kg [09:29:39]written 0, free lines is 4095 [09:29:39]Connected sock=10 [09:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 C1 B0 04 01 29 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 0A 1E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 FC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 83 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2B 01 00 35 04 06 00 1E 1B C0 5C 88 E5 F6 00 D8 A7 E5 E0 A9 19 [09:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B9 52 47 00 3E B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2B 01 00 F4 03 04 00 25 9D 73 66 B6 04 01 00 00 D6 CE 5B EC 66 A8 22 1A [09:29:39]CommunicateWithHost err = 0 [09:29:39]CheckOFDResponse [09:29:39]1017 (14) - 77093643461234 [09:29:39]1041 (16) - 0000000000875009 [09:29:39]1040 (4) - 76597 [09:29:39]1012 (4) - 20.06.2024 03:08 [09:29:39]1206 (1) - 0 [09:29:39]OFD Sender: Remove packet 76597 [09:29:39]ProducePacketName [09:29:39]name=ofd_packets/00076597 [09:29:39]NVStorageDeleteData [09:29:39]Write to MH i2c: 01 00 00 17 0A 21 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: 01 07 00 17 0A 00 00 00 00 00 EB 0C 1F [09:29:39]RasterBufferAndPrint [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]line [09:29:39]written 0, free lines is 3313 [09:29:39]MH_Cut [09:29:39]Write to MH i2c: D1 01 00 1E 0A 01 FA [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 01 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: D1 01 00 1E 0A 00 F9 [09:29:39]Write to MH i2c: 01 00 00 1F 0A 29 [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:40]OFD Sender: No OFD packet to send [09:29:40]*** Cut start [09:29:40]*** Partial cut [09:29:40]*** CUTSNS_PIN = 1 [09:29:40]*** CUTSNS_PIN = 0 [09:29:40]*** Brake cut motor [09:29:41]Read from MH i2c: 01 [09:29:41]MH_I2C_Read... [09:29:41]*** Stop cut motor [09:29:41]*** Cut end [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 1F 0A 00 00 00 00 00 FF 0F 3E [09:29:41]process_action close_receipt done [09:29:41]requested_data is exist [09:29:41]produce_requested_data [09:29:41]requested_item fm.sn is exist - process it [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 20 0A 80 11 00 00 00 00 00 00 A4 [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 20 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F4 [09:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:29:41]wFMCommunicate OK [09:29:41]requested_item fd.num is exist - process it [09:29:41]SAM_PROTO_GetFieldsCounters [09:29:41]wFMCommunicate request_size=4 [09:29:41]MH_SAM_APDU [09:29:41]CAPDU: 80 13 00 00 [09:29:41]Write to MH i2c: E2 08 00 21 0A 80 13 00 00 00 00 00 00 A7 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 62 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 62 00 21 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 35 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 35 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:41]wFMCommunicate OK [09:29:41]SAM_PROTO_GetFieldsCounters done [09:29:41]requested_item shift.num is exist - process it [09:29:41]requested_item shift.opened is exist - process it [09:29:41]req_shift_opened [09:29:41]FM_GetShiftState [09:29:41]SAM_PROTO_GetShiftState [09:29:41]wFMCommunicate request_size=4 [09:29:41]MH_SAM_APDU [09:29:41]CAPDU: 80 13 01 00 [09:29:41]Write to MH i2c: E2 08 00 22 0A 80 13 01 00 00 00 00 00 A9 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:41]Read from MH i2c: E2 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0E 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: E2 0E 00 22 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 85 [09:29:41]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:29:41]wFMCommunicate OK [09:29:41]SAM_PROTO_GetShiftState done [09:29:41]FM_GetShiftState done [09:29:41]req_shift_opened done [09:29:41]requested_item shift.open_date is exist - process it [09:29:41]req_shift_open_date [09:29:41]req_shift_open_date done [09:29:41]produce_requested_data done [09:29:41]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76597,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [09:29:41]process_action_free close_receipt [09:29:41]json_value_free [09:29:41]json_value_free done [09:29:41]process_json_proto returns [09:29:41]Send response to host [09:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76597,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [09:29:41]free response buf [09:29:41]execute_script done [09:29:41]execute_script returns [09:29:41]free content buf [09:29:41]Sock 7.Close socket [09:29:41]Sock 7.Thread stoped [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:15]accept exits with 9 [09:30:15]New connection [09:30:15]New thread 3067133284 created [09:30:15]Thread 3066989924 joined [09:30:15]Waiting for new connection... [09:30:15] Sock 9.Parse request [09:30:15]Sock 9.Check first char [09:30:15]Sock 9.First char is OK [09:30:15]request: POST /json_proto HTTP/1.0 [09:30:15]Method: POST [09:30:15]URL: /json_proto [09:30:15]Method is POST - this is cgi request [09:30:15]url: /json_proto [09:30:15]query_string will be loaded in cgi processing [09:30:15]execute_cgi json_proto POST (null) [09:30:15]execute_cgi path=json_proto method=POST [09:30:15]POST find Content-Length [09:30:15]Host: 172.17.39.195:8080 [09:30:15]Content-Length: 678 [09:30:15]Content-Type: application/json [09:30:15] [09:30:15]POST finish read [09:30:15]Found Content-Length = 678 [09:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1692871", "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" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:15]execute_script... [09:30: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)1692871", "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" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:15]POST & json_proto [09:30:15]process_json_proto [09:30:15]json parsed OK: [09:30:15]protocol is kg_v1.0 [09:30:15]action value=close_receipt [09:30:15]process_action close_receipt [09:30:15]cmd_close_receipt [09:30:15]MH_GetDate [09:30:15]Write to MH i2c: F0 00 00 23 0A 1C [09:30:15]Write i2c OK [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: F0 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: F0 09 00 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: F0 09 00 23 0A 00 A9 F6 73 66 99 81 91 64 AC [09:30:15]GetLastDocTimeStamp 1718875779 [09:30:15]current date 1718875817 [09:30:15]FM_GetShiftState [09:30:15]SAM_PROTO_GetShiftState [09:30:15]wFMCommunicate request_size=4 [09:30:15]MH_SAM_APDU [09:30:15]CAPDU: 80 13 01 00 [09:30:15]Write to MH i2c: E2 08 00 24 0A 80 13 01 00 00 00 00 00 AB [09:30:15]Write i2c OK [09:30:15]MH_I2C_Read... [09:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:15]Read from MH i2c: E2 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: E2 0E 00 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: E2 0E 00 24 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 87 [09:30:15]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:30:15]wFMCommunicate OK [09:30:15]SAM_PROTO_GetShiftState done [09:30:15]FM_GetShiftState done [09:30:15]opened in 1718843774 [09:30:15]opened+sec_in_day 1718930174 [09:30:15]quantity*price = 40039 [09:30:15]sum+1 = 40040 [09:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 39 20.06.2024 09:30 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76598 ФПД: 275994036686008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093017&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76598&fm=275994036686008&tin=02508201610067®Number=0000000000095696&sum=40000 [09:30:16]StoreToDocumentArchive [09:30:16]shift 393 fd 76598 [09:30:16]save to /storage/0393/doc_00076598 [09:30:16]save last doc name /storage/0393/doc_00076598 to /storage/kkm_last_doc_name [09:30:16]save OK [09:30:16]Clear old archive folders... [09:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:16]tlvbuf is 00D170F0 [09:30:16]SAM_PROTO_ClearQueue [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 09 00 00 [09:30:16]Write to MH i2c: E2 08 00 31 0A 80 09 00 00 00 00 00 00 AD [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]SAM_PROTO_ClearQueue done [09:30:16]KKMCreateOFDPacket [09:30:16]OFDProtocolAddRootSTLVToBuf [09:30:16]FM_MakeSignedData [09:30:16]FM_MakeSignedData [09:30:16]SAM_PROTO_SignData [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 01 02 [09:30:16]Write to MH i2c: E2 08 00 32 0A 80 0D 01 02 00 00 00 00 B5 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]wFMCommunicate request_size=255 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2B 01 00 35 04 06 00 FB [09:30:16]Write to MH i2c: E2 02 01 33 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2B 01 00 35 04 06 00 FB 00 00 C4 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]wFMCommunicate request_size=10 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 02 02 05 03 DE 84 4C B8 [09:30:16]Write to MH i2c: E2 0D 00 34 0A 80 0D 02 02 05 00 03 DE 84 4C B8 00 00 2B [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 34 0A 00 90 00 B2 [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 03 02 [09:30:16]Write to MH i2c: E2 08 00 35 0A 80 0D 03 02 00 00 00 00 BA [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 0B 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 0B 00 35 0A 00 A3 B6 D4 71 0C CA 44 2E 90 00 A1 [09:30:16]RAPDU: A3 B6 D4 71 0C CA 44 2E 90 00 [09:30:16]wFMCommunicate OK [09:30:16]SAM_PROTO_SignData done [09:30:16]FM_MakeSignedData done [09:30:16]CreateOFDProtocolMessage [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 11 00 00 [09:30:16]Write to MH i2c: E2 08 00 36 0A 80 11 00 00 00 00 00 00 BA [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:17]Read from MH i2c: E2 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 17 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 17 00 36 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0A [09:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:30:17]wFMCommunicate OK [09:30:17]CreateOFDProtocolMessage done [09:30:17]OFDSenderStorePacket 76598 [09:30:17]StoreOFDPacket docnum=76598 [09:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 9F 9F 07 01 4C 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2B 01 00 35 04 06 00 FB 03 DE 84 4C B8 A3 B6 D4 71 0C CA 44 2E [09:30:17]CheckFolder [09:30:17]dirname=/storage/ofd_packets [09:30:17]CheckFolder done [09:30:17]ProducePacketName [09:30:17]name=ofd_packets/00076598 [09:30:17]NVStorageSaveData ofd_packets/00076598 [09:30:17]File name is /storage/ofd_packets/00076598 [09:30:17]Write 301 bytes [09:30:17]NVStorageSaveData done [09:30:17]OFDSenderStorePacket done [09:30:17]KKMCreateOFDPacket done [09:30:17]NVStorageSaveData kkm_last_timestamp [09:30:17]File name is /storage/kkm_last_timestamp [09:30:17]Write 4 bytes [09:30:17]NVStorageSaveData done [09:30:17]ExternCall_PrintAddStr [09:30:17]wPrintStart [09:30:17]Write to MH i2c: 01 00 00 37 0A 41 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 37 0A 00 00 00 00 00 FF 0F 56 [09:30:17]RasterBufferAndPrint [09:30:17]line Счет N : (1)1692871 [09:30:17]line ИНН: 02508201610067 [09:30:17]line Контрольно-Кассовый Чек [09:30:17]line ПРОДАЖА [09:30:17]line ТРК (МРК, ГНК) : 43 [09:30:17]line Товар: 2710124130 [09:30:17]line Аи-92-К-5 [09:30:17]line 6.030 * 66.40 [09:30:17]line = 400.39 [09:30:17]line НДС 12% НСП 1% [09:30:17]line > о реализуемом товаре [09:30:17]line ОКРУГЛЕНИЕ: -0.39 [09:30:17]line ИТОГО: 400.00 [09:30:17]line Внесено: 400.00 [09:30:17]line СДАЧА: 0.00 [09:30:17]line НСП 1% : 3.54 [09:30:17]line НДС 12% : 42.52 [09:30:17]line Наличными: 400.00 [09:30:17]line Безнал.: 0.00 [09:30:17]line Место: АЗС № 144 "Партнер Нефть" [09:30:17]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:30:17]line СНО: Общий режим [09:30:17]line Чек 39 20.06.2024 09:30 [09:30:17]line Смена: 393 ФФД: 1.0 [09:30:17]line ЗНМ: 0300000170 [09:30:17]line РНМ: 0000000000095696 [09:30:17]line Версия ККМ: 001 [09:30:17]line ФМ: 0000000000875009 [09:30:17]line ФД: 76598 [09:30:17]line ФПД: 275994036686008 [09:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093017&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76598&fm=275994036686008&tin=02508201610067®Number=0000000000095696&sum=40000 [09:30:17]written 0, free lines is 4095 [09:30:17]OFD Sender: Processing packet 76598 [packets to send 351, broken 350] [09:30:17]ProducePacketName [09:30:17]name=ofd_packets/00076598 [09:30:17]OFD Sender: To server: pG, [09:30:17]CommunicateWithHost lk.salyk.kg:30040 [09:30:17]ConnectInit lk.salyk.kg [09:30:17]Connected sock=10 [09:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 9F 9F 07 01 4C 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A9 F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2B 01 00 35 04 06 00 FB 03 DE 84 4C B8 A3 B6 D4 71 0C CA 44 2E [09:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 CF D1 47 00 E8 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2B 01 00 F4 03 04 00 4B 9D 73 66 B6 04 01 00 00 7E 86 D1 28 5F D3 76 F6 [09:30:17]CommunicateWithHost err = 0 [09:30:17]CheckOFDResponse [09:30:17]1017 (14) - 77093643461234 [09:30:17]1041 (16) - 0000000000875009 [09:30:17]1040 (4) - 76598 [09:30:17]1012 (4) - 20.06.2024 03:08 [09:30:17]1206 (1) - 0 [09:30:17]OFD Sender: Remove packet 76598 [09:30:17]ProducePacketName [09:30:17]name=ofd_packets/00076598 [09:30:17]NVStorageDeleteData [09:30:17]Write to MH i2c: 01 00 00 62 0A 6C [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 E8 0C 67 [09:30:17]RasterBufferAndPrint [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]written 0, free lines is 3310 [09:30:17]MH_Cut [09:30:17]Write to MH i2c: D1 01 00 69 0A 01 45 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 01 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 01 00 69 0A 00 44 [09:30:17]Write to MH i2c: 01 00 00 6A 0A 74 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]OFD Sender: No OFD packet to send [09:30:18]*** Cut start [09:30:18]*** Partial cut [09:30:18]*** CUTSNS_PIN = 1 [09:30:18]*** CUTSNS_PIN = 0 [09:30:18]*** Brake cut motor [09:30:18]Read from MH i2c: 01 [09:30:18]MH_I2C_Read... [09:30:18]*** Stop cut motor [09:30:18]*** Cut end [09:30:18]Read from MH i2c: 01 07 00 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: 01 07 00 6A 0A 00 00 00 00 00 FF 0F 89 [09:30:18]process_action close_receipt done [09:30:18]requested_data is exist [09:30:18]produce_requested_data [09:30:18]requested_item fm.sn is exist - process it [09:30:18]wFMCommunicate request_size=4 [09:30:18]MH_SAM_APDU [09:30:18]CAPDU: 80 11 00 00 [09:30:18]Write to MH i2c: E2 08 00 6B 0A 80 11 00 00 00 00 00 00 EF [09:30:18]Write i2c OK [09:30:18]MH_I2C_Read... [09:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:18]Read from MH i2c: E2 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 17 00 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 17 00 6B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3F [09:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:30:18]wFMCommunicate OK [09:30:18]requested_item fd.num is exist - process it [09:30:18]SAM_PROTO_GetFieldsCounters [09:30:18]wFMCommunicate request_size=4 [09:30:18]MH_SAM_APDU [09:30:18]CAPDU: 80 13 00 00 [09:30:18]Write to MH i2c: E2 08 00 6C 0A 80 13 00 00 00 00 00 00 F2 [09:30:18]Write i2c OK [09:30:18]MH_I2C_Read... [09:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:19]Read from MH i2c: E2 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 62 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 62 00 6C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 36 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [09:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 36 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:19]wFMCommunicate OK [09:30:19]SAM_PROTO_GetFieldsCounters done [09:30:19]requested_item shift.num is exist - process it [09:30:19]requested_item shift.opened is exist - process it [09:30:19]req_shift_opened [09:30:19]FM_GetShiftState [09:30:19]SAM_PROTO_GetShiftState [09:30:19]wFMCommunicate request_size=4 [09:30:19]MH_SAM_APDU [09:30:19]CAPDU: 80 13 01 00 [09:30:19]Write to MH i2c: E2 08 00 6D 0A 80 13 01 00 00 00 00 00 F4 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:19]Read from MH i2c: E2 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 0E 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 0E 00 6D 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D0 [09:30:19]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:30:19]wFMCommunicate OK [09:30:19]SAM_PROTO_GetShiftState done [09:30:19]FM_GetShiftState done [09:30:19]req_shift_opened done [09:30:19]requested_item shift.open_date is exist - process it [09:30:19]req_shift_open_date [09:30:19]req_shift_open_date done [09:30:19]produce_requested_data done [09:30:19]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76598,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [09:30:19]process_action_free close_receipt [09:30:19]json_value_free [09:30:19]json_value_free done [09:30:19]process_json_proto returns [09:30:19]Send response to host [09:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76598,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [09:30:19]free response buf [09:30:19]execute_script done [09:30:19]execute_script returns [09:30:19]free content buf [09:30:19]Sock 9.Close socket [09:30:19]Sock 9.Thread stoped [09:30:19]accept exits with 7 [09:30:19]New connection [09:30:19]New thread 3066989924 created [09:30:19]Thread 3067133284 joined [09:30:19]Waiting for new connection... [09:30:19] Sock 7.Parse request [09:30:19]Sock 7.Check first char [09:30:19]Sock 7.First char is OK [09:30:19]request: POST /json_proto HTTP/1.0 [09:30:19]Method: POST [09:30:19]URL: /json_proto [09:30:19]Method is POST - this is cgi request [09:30:19]url: /json_proto [09:30:19]query_string will be loaded in cgi processing [09:30:19]execute_cgi json_proto POST (null) [09:30:19]execute_cgi path=json_proto method=POST [09:30:19]POST find Content-Length [09:30:19]Host: 172.17.39.195:8080 [09:30:19]Content-Length: 678 [09:30:19]Content-Type: application/json [09:30:19] [09:30:19]POST finish read [09:30:19]Found Content-Length = 678 [09:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1692870", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:19]execute_script... [09:30: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)1692870", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:19]POST & json_proto [09:30:19]process_json_proto [09:30:19]json parsed OK: [09:30:19]protocol is kg_v1.0 [09:30:19]action value=close_receipt [09:30:19]process_action close_receipt [09:30:19]cmd_close_receipt [09:30:19]MH_GetDate [09:30:19]Write to MH i2c: F0 00 00 6E 0A 67 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: F0 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: F0 09 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: F0 09 00 6E 0A 00 AE F6 73 66 99 81 91 64 FC [09:30:19]GetLastDocTimeStamp 1718875817 [09:30:19]current date 1718875822 [09:30:19]FM_GetShiftState [09:30:19]SAM_PROTO_GetShiftState [09:30:19]wFMCommunicate request_size=4 [09:30:19]MH_SAM_APDU [09:30:19]CAPDU: 80 13 01 00 [09:30:19]Write to MH i2c: E2 08 00 6F 0A 80 13 01 00 00 00 00 00 F6 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:19]Read from MH i2c: E2 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 0E 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 0E 00 6F 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D2 [09:30:19]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:30:19]wFMCommunicate OK [09:30:19]SAM_PROTO_GetShiftState done [09:30:19]FM_GetShiftState done [09:30:19]opened in 1718843774 [09:30:19]opened+sec_in_day 1718930174 [09:30:19]quantity*price = 50065 [09:30:19]sum+1 = 50067 [09:30:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 40 20.06.2024 09:30 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76599 ФПД: 132825647872128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093022&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76599&fm=132825647872128&tin=02508201610067®Number=0000000000095696&sum=50000 [09:30:20]StoreToDocumentArchive [09:30:20]shift 393 fd 76599 [09:30:20]save to /storage/0393/doc_00076599 [09:30:20]save last doc name /storage/0393/doc_00076599 to /storage/kkm_last_doc_name [09:30:20]save OK [09:30:20]Clear old archive folders... [09:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:20]tlvbuf is 00D28760 [09:30:20]SAM_PROTO_ClearQueue [09:30:20]wFMCommunicate request_size=4 [09:30:20]MH_SAM_APDU [09:30:20]CAPDU: 80 09 00 00 [09:30:20]Write to MH i2c: E2 08 00 7C 0A 80 09 00 00 00 00 00 00 F8 [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:20]Read from MH i2c: E2 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [09:30:20]RAPDU: 90 00 [09:30:20]wFMCommunicate OK [09:30:20]SAM_PROTO_ClearQueue done [09:30:20]KKMCreateOFDPacket [09:30:20]OFDProtocolAddRootSTLVToBuf [09:30:20]FM_MakeSignedData [09:30:20]FM_MakeSignedData [09:30:20]SAM_PROTO_SignData [09:30:20]wFMCommunicate request_size=4 [09:30:20]MH_SAM_APDU [09:30:20]CAPDU: 80 0D 01 02 [09:30:20]Write to MH i2c: E2 08 00 7D 0A 80 0D 01 02 00 00 00 00 00 [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:20]Read from MH i2c: E2 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [09:30:20]RAPDU: 90 00 [09:30:20]wFMCommunicate OK [09:30:20]wFMCommunicate request_size=255 [09:30:20]MH_SAM_APDU [09:30: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AE F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2B 01 00 35 04 06 00 78 [09:30:20]Write to MH i2c: E2 02 01 7E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AE F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2B 01 00 35 04 06 00 78 00 00 C5 [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [09:30:21]RAPDU: 90 00 [09:30:21]wFMCommunicate OK [09:30:21]wFMCommunicate request_size=10 [09:30:21]MH_SAM_APDU [09:30:21]CAPDU: 80 0D 02 02 05 CD E1 8E F8 80 [09:30:21]Write to MH i2c: E2 0D 00 7F 0A 80 0D 02 02 05 00 CD E1 8E F8 80 00 00 C1 [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 03 00 7F 0A 00 90 00 FD [09:30:21]RAPDU: 90 00 [09:30:21]wFMCommunicate OK [09:30:21]wFMCommunicate request_size=4 [09:30:21]MH_SAM_APDU [09:30:21]CAPDU: 80 0D 03 02 [09:30:21]Write to MH i2c: E2 08 00 80 0A 80 0D 03 02 00 00 00 00 05 [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 0B 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 0B 00 80 0A 00 93 56 AC FF 65 B1 18 FC 90 00 C4 [09:30:21]RAPDU: 93 56 AC FF 65 B1 18 FC 90 00 [09:30:21]wFMCommunicate OK [09:30:21]SAM_PROTO_SignData done [09:30:21]FM_MakeSignedData done [09:30:21]CreateOFDProtocolMessage [09:30:21]wFMCommunicate request_size=4 [09:30:21]MH_SAM_APDU [09:30:21]CAPDU: 80 11 00 00 [09:30:21]Write to MH i2c: E2 08 00 81 0A 80 11 00 00 00 00 00 00 05 [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:21]Read from MH i2c: E2 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 17 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: E2 17 00 81 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 55 [09:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:30:21]wFMCommunicate OK [09:30:21]CreateOFDProtocolMessage done [09:30:21]OFDSenderStorePacket 76599 [09:30:21]StoreOFDPacket docnum=76599 [09:30:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 2C 4C 07 01 8B 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AE F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2B 01 00 35 04 06 00 78 CD E1 8E F8 80 93 56 AC FF 65 B1 18 FC [09:30:21]CheckFolder [09:30:21]dirname=/storage/ofd_packets [09:30:21]CheckFolder done [09:30:21]ProducePacketName [09:30:21]name=ofd_packets/00076599 [09:30:21]NVStorageSaveData ofd_packets/00076599 [09:30:21]File name is /storage/ofd_packets/00076599 [09:30:21]Write 301 bytes [09:30:21]NVStorageSaveData done [09:30:21]OFDSenderStorePacket done [09:30:21]KKMCreateOFDPacket done [09:30:21]NVStorageSaveData kkm_last_timestamp [09:30:21]File name is /storage/kkm_last_timestamp [09:30:21]Write 4 bytes [09:30:21]NVStorageSaveData done [09:30:21]ExternCall_PrintAddStr [09:30:21]wPrintStart [09:30:21]Write to MH i2c: 01 00 00 82 0A 8C [09:30:21]Write i2c OK [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: 01 [09:30:21]MH_I2C_Read... [09:30:21]OFD Sender: Processing packet 76599 [packets to send 351, broken 350] [09:30:21]ProducePacketName [09:30:21]name=ofd_packets/00076599 [09:30:21]OFD Sender: To server: pG, [09:30:21]CommunicateWithHost lk.salyk.kg:30040 [09:30:21]ConnectInit lk.salyk.kg [09:30:21]Read from MH i2c: 01 07 00 [09:30:21]MH_I2C_Read... [09:30:21]Read from MH i2c: 01 07 00 82 0A 00 00 00 00 00 FF 0F A1 [09:30:21]RasterBufferAndPrint [09:30:21]line Счет N : (1)1692870 [09:30:21]line ИНН: 02508201610067 [09:30:21]line Контрольно-Кассовый Чек [09:30:21]line ПРОДАЖА [09:30:21]line ТРК (МРК, ГНК) : 53 [09:30:21]line Товар: 2710124130 [09:30:21]line Аи-92-К-5 [09:30:21]line 7.540 * 66.40 [09:30:21]line = 500.66 [09:30:21]line НДС 12% НСП 1% [09:30:21]line > о реализуемом товаре [09:30:21]line ОКРУГЛЕНИЕ: -0.66 [09:30:21]line ИТОГО: 500.00 [09:30:21]line Внесено: 500.00 [09:30:21]line СДАЧА: 0.00 [09:30:21]line НСП 1% : 4.43 [09:30:21]line НДС 12% : 53.17 [09:30:21]line Наличными: 500.00 [09:30:21]line Безнал.: 0.00 [09:30:21]line Место: АЗС № 144 "Партнер Нефть" [09:30:21]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:30:21]line СНО: Общий режим [09:30:21]line Чек 40 20.06.2024 09:30 [09:30:21]line Смена: 393 ФФД: 1.0 [09:30:21]line ЗНМ: 0300000170 [09:30:21]line РНМ: 0000000000095696 [09:30:21]line Версия ККМ: 001 [09:30:21]line ФМ: 0000000000875009 [09:30:21]line ФД: 76599 [09:30:21]line ФПД: 132825647872128 [09:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093022&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76599&fm=132825647872128&tin=02508201610067®Number=0000000000095696&sum=50000 [09:30:21]written 0, free lines is 4095 [09:30:22]Connected sock=10 [09:30:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 2C 4C 07 01 8B 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AE F6 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2B 01 00 35 04 06 00 78 CD E1 8E F8 80 93 56 AC FF 65 B1 18 FC [09:30:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 20 BC 47 00 FA 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2B 01 00 F4 03 04 00 4F 9D 73 66 B6 04 01 00 00 A2 D1 7F A9 07 80 0B F0 [09:30:22]CommunicateWithHost err = 0 [09:30:22]CheckOFDResponse [09:30:22]1017 (14) - 77093643461234 [09:30:22]1041 (16) - 0000000000875009 [09:30:22]1040 (4) - 76599 [09:30:22]1012 (4) - 20.06.2024 03:09 [09:30:22]1206 (1) - 0 [09:30:22]OFD Sender: Remove packet 76599 [09:30:22]ProducePacketName [09:30:22]name=ofd_packets/00076599 [09:30:22]NVStorageDeleteData [09:30:22]Write to MH i2c: 01 00 00 AD 0A B7 [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: 01 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: 01 07 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: 01 07 00 AD 0A 00 00 00 00 00 F2 0C BC [09:30:22]RasterBufferAndPrint [09:30:22]line [09:30:22]line [09:30:22]line [09:30:22]line [09:30:22]line [09:30:22]written 0, free lines is 3330 [09:30:22]MH_Cut [09:30:22]Write to MH i2c: D1 01 00 B4 0A 01 90 [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: D1 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: D1 01 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: D1 01 00 B4 0A 00 8F [09:30:22]Write to MH i2c: 01 00 00 B5 0A BF [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]OFD Sender: No OFD packet to send [09:30:23]*** Cut start [09:30:23]*** Partial cut [09:30:23]*** CUTSNS_PIN = 1 [09:30:23]*** CUTSNS_PIN = 0 [09:30:23]*** Brake cut motor [09:30:23]Read from MH i2c: 01 [09:30:23]MH_I2C_Read... [09:30:23]*** Stop cut motor [09:30:23]*** Cut end [09:30:23]Read from MH i2c: 01 07 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: 01 07 00 B5 0A 00 00 00 00 00 FF 0F D4 [09:30:23]process_action close_receipt done [09:30:23]requested_data is exist [09:30:23]produce_requested_data [09:30:23]requested_item fm.sn is exist - process it [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 11 00 00 [09:30:23]Write to MH i2c: E2 08 00 B6 0A 80 11 00 00 00 00 00 00 3A [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 17 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 17 00 B6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8A [09:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:30:23]wFMCommunicate OK [09:30:23]requested_item fd.num is exist - process it [09:30:23]SAM_PROTO_GetFieldsCounters [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 13 00 00 [09:30:23]Write to MH i2c: E2 08 00 B7 0A 80 13 00 00 00 00 00 00 3D [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 62 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 62 00 B7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 37 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:30:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 37 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:24]wFMCommunicate OK [09:30:24]SAM_PROTO_GetFieldsCounters done [09:30:24]requested_item shift.num is exist - process it [09:30:24]requested_item shift.opened is exist - process it [09:30:24]req_shift_opened [09:30:24]FM_GetShiftState [09:30:24]SAM_PROTO_GetShiftState [09:30:24]wFMCommunicate request_size=4 [09:30:24]MH_SAM_APDU [09:30:24]CAPDU: 80 13 01 00 [09:30:24]Write to MH i2c: E2 08 00 B8 0A 80 13 01 00 00 00 00 00 3F [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:24]Read from MH i2c: E2 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 0E 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 0E 00 B8 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 1B [09:30:24]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:30:24]wFMCommunicate OK [09:30:24]SAM_PROTO_GetShiftState done [09:30:24]FM_GetShiftState done [09:30:24]req_shift_opened done [09:30:24]requested_item shift.open_date is exist - process it [09:30:24]req_shift_open_date [09:30:24]req_shift_open_date done [09:30:24]produce_requested_data done [09:30:24]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76599,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [09:30:24]process_action_free close_receipt [09:30:24]json_value_free [09:30:24]json_value_free done [09:30:24]process_json_proto returns [09:30:24]Send response to host [09:30:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76599,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [09:30:24]free response buf [09:30:24]execute_script done [09:30:24]execute_script returns [09:30:24]free content buf [09:30:24]Sock 7.Close socket [09:30:24]Sock 7.Thread stoped [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [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: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: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:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:06]accept exits with 9 [09:53:06]New connection [09:53:06]New thread 3067133284 created [09:53:06]Thread 3066989924 joined [09:53:06]Waiting for new connection... [09:53:06] Sock 9.Parse request [09:53:06]Sock 9.Check first char [09:53:06]Sock 9.First char is OK [09:53:06]request: POST /json_proto HTTP/1.0 [09:53:06]Method: POST [09:53:06]URL: /json_proto [09:53:06]Method is POST - this is cgi request [09:53:06]url: /json_proto [09:53:06]query_string will be loaded in cgi processing [09:53:06]execute_cgi json_proto POST (null) [09:53:06]execute_cgi path=json_proto method=POST [09:53:06]POST find Content-Length [09:53:06]Host: 172.17.39.195:8080 [09:53:06]Content-Length: 747 [09:53:06]Content-Type: application/json [09:53:06] [09:53:06]POST finish read [09:53:06]Found Content-Length = 747 [09:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220746", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:06]execute_script... [09:53: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 : (3)220746", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:06]POST & json_proto [09:53:06]process_json_proto [09:53:06]json parsed OK: [09:53:06]protocol is kg_v1.0 [09:53:06]action value=close_receipt [09:53:06]process_action close_receipt [09:53:06]cmd_close_receipt [09:53:06]MH_GetDate [09:53:06]Write to MH i2c: F0 00 00 B9 0A B2 [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: F0 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: F0 09 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: F0 09 00 B9 0A 00 05 FC 73 66 99 81 91 64 A4 [09:53:06]GetLastDocTimeStamp 1718875822 [09:53:06]current date 1718877189 [09:53:06]FM_GetShiftState [09:53:06]SAM_PROTO_GetShiftState [09:53:06]wFMCommunicate request_size=4 [09:53:06]MH_SAM_APDU [09:53:06]CAPDU: 80 13 01 00 [09:53:06]Write to MH i2c: E2 08 00 BA 0A 80 13 01 00 00 00 00 00 41 [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:06]Read from MH i2c: E2 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 0E 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 0E 00 BA 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 1D [09:53:06]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:53:06]wFMCommunicate OK [09:53:06]SAM_PROTO_GetShiftState done [09:53:06]FM_GetShiftState done [09:53:06]opened in 1718843774 [09:53:06]opened+sec_in_day 1718930174 [09:53:06]quantity*price = 50200 [09:53:06]sum+1 = 50201 [09:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 502.00 НСП 1% : 4.44 НДС 12% : 53.31 Наличными: 502.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 41 20.06.2024 09:53 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76600 ФПД: 203617774705196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095309&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76600&fm=203617774705196&tin=02508201610067®Number=0000000000095696&sum=50200 0 [09:53:07]StoreToDocumentArchive [09:53:07]shift 393 fd 76600 [09:53:07]save to /storage/0393/doc_00076600 [09:53:07]save last doc name /storage/0393/doc_00076600 to /storage/kkm_last_doc_name [09:53:07]save OK [09:53:07]Clear old archive folders... [09:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=307 [09:53:07]tlvbuf is 00D5B910 [09:53:07]SAM_PROTO_ClearQueue [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 09 00 00 [09:53:07]Write to MH i2c: E2 08 00 C7 0A 80 09 00 00 00 00 00 00 43 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 C7 0A 00 90 00 45 [09:53:07]RAPDU: 90 00 [09:53:07]wFMCommunicate OK [09:53:07]SAM_PROTO_ClearQueue done [09:53:07]KKMCreateOFDPacket [09:53:07]OFDProtocolAddRootSTLVToBuf [09:53:07]FM_MakeSignedData [09:53:07]FM_MakeSignedData [09:53:07]SAM_PROTO_SignData [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 0D 01 02 [09:53:07]Write to MH i2c: E2 08 00 C8 0A 80 0D 01 02 00 00 00 00 4B [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [09:53:07]RAPDU: 90 00 [09:53:07]wFMCommunicate OK [09:53:07]wFMCommunicate request_size=255 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 05 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 [09:53:07]Write to MH i2c: E2 02 01 C9 0A 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 05 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 00 00 5E [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [09:53:07]RAPDU: 90 00 [09:53:07]wFMCommunicate OK [09:53:07]wFMCommunicate request_size=66 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2B 01 00 35 04 06 00 B9 30 75 21 9A 2C [09:53:07]Write to MH i2c: E2 45 00 CA 0A 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2B 01 00 35 04 06 00 B9 30 75 21 9A 2C 00 00 50 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:08]Read from MH i2c: E2 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 03 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 03 00 CA 0A 00 90 00 48 [09:53:08]RAPDU: 90 00 [09:53:08]wFMCommunicate OK [09:53:08]wFMCommunicate request_size=4 [09:53:08]MH_SAM_APDU [09:53:08]CAPDU: 80 0D 03 02 [09:53:08]Write to MH i2c: E2 08 00 CB 0A 80 0D 03 02 00 00 00 00 50 [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:08]Read from MH i2c: E2 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 0B 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 0B 00 CB 0A 00 42 F0 66 7F 5C 8C CE 65 90 00 83 [09:53:08]RAPDU: 42 F0 66 7F 5C 8C CE 65 90 00 [09:53:08]wFMCommunicate OK [09:53:08]SAM_PROTO_SignData done [09:53:08]FM_MakeSignedData done [09:53:08]CreateOFDProtocolMessage [09:53:08]wFMCommunicate request_size=4 [09:53:08]MH_SAM_APDU [09:53:08]CAPDU: 80 11 00 00 [09:53:08]Write to MH i2c: E2 08 00 CC 0A 80 11 00 00 00 00 00 00 50 [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:08]Read from MH i2c: E2 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 17 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 17 00 CC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A0 [09:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:53:08]wFMCommunicate OK [09:53:08]CreateOFDProtocolMessage done [09:53:08]OFDSenderStorePacket 76600 [09:53:08]StoreOFDPacket docnum=76600 [09:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 47 01 00 00 F2 DA 3F 01 9C B7 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 05 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2B 01 00 35 04 06 00 B9 30 75 21 9A 2C 42 F0 66 7F 5C 8C CE 65 [09:53:08]CheckFolder [09:53:08]dirname=/storage/ofd_packets [09:53:08]CheckFolder done [09:53:08]ProducePacketName [09:53:08]name=ofd_packets/00076600 [09:53:08]NVStorageSaveData ofd_packets/00076600 [09:53:08]File name is /storage/ofd_packets/00076600 [09:53:08]Write 357 bytes [09:53:08]NVStorageSaveData done [09:53:08]OFDSenderStorePacket done [09:53:08]KKMCreateOFDPacket done [09:53:08]NVStorageSaveData kkm_last_timestamp [09:53:08]File name is /storage/kkm_last_timestamp [09:53:08]Write 4 bytes [09:53:08]NVStorageSaveData done [09:53:08]ExternCall_PrintAddStr [09:53:08]wPrintStart [09:53:08]Write to MH i2c: 01 00 00 CD 0A D7 [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: 01 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: 01 07 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 FF 0F EC [09:53:08]RasterBufferAndPrint [09:53:08]line Счет N : (3)220746 [09:53:08]line ИНН: 02508201610067 [09:53:08]line Контрольно-Кассовый Чек [09:53:08]line ПРОДАЖА [09:53:08]line Товар: 2000029770012 [09:53:08]line Очки солнцезащитные в ассортименте [09:53:08]line 1.000 * 502.00 [09:53:08]line = 502.00 [09:53:08]line НДС 12% НСП 1% [09:53:08]line > о реализуемом товаре [09:53:08]line ИТОГО: 502.00 [09:53:08]line НСП 1% : 4.44 [09:53:08]line НДС 12% : 53.31 [09:53:08]line Наличными: 502.00 [09:53:08]line Безнал.: 0.00 [09:53:08]line Место: АЗС № 144 "Партнер Нефть" [09:53:08]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:53:08]line СНО: Общий режим [09:53:08]line Чек 41 20.06.2024 09:53 [09:53:08]line Смена: 393 ФФД: 1.0 [09:53:08]line ЗНМ: 0300000170 [09:53:08]line РНМ: 0000000000095696 [09:53:08]line Версия ККМ: 001 [09:53:08]line ФМ: 0000000000875009 [09:53:08]line ФД: 76600 [09:53:08]line ФПД: 203617774705196 [09:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095309&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76600&fm=203617774705196&tin=02508201610067®Number=0000000000095696&sum=50200 [09:53:08]line 0 [09:53:08]OFD Sender: Processing packet 76600 [packets to send 351, broken 350] [09:53:08]ProducePacketName [09:53:08]name=ofd_packets/00076600 [09:53:08]OFD Sender: To server: pG, [09:53:08]CommunicateWithHost lk.salyk.kg:30040 [09:53:08]ConnectInit lk.salyk.kg [09:53:08]written 0, free lines is 4095 [09:53:08]Connected sock=10 [09:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 47 01 00 00 F2 DA 3F 01 9C B7 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 05 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2B 01 00 35 04 06 00 B9 30 75 21 9A 2C 42 F0 66 7F 5C 8C CE 65 [09:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B2 27 47 00 01 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2B 01 00 F4 03 04 00 A6 A2 73 66 B6 04 01 00 00 95 01 B5 47 85 41 53 A4 [09:53:08]CommunicateWithHost err = 0 [09:53:08]CheckOFDResponse [09:53:08]1017 (14) - 77093643461234 [09:53:08]1041 (16) - 0000000000875009 [09:53:08]1040 (4) - 76600 [09:53:08]1012 (4) - 20.06.2024 03:31 [09:53:08]1206 (1) - 0 [09:53:08]OFD Sender: Remove packet 76600 [09:53:08]ProducePacketName [09:53:08]name=ofd_packets/00076600 [09:53:08]NVStorageDeleteData [09:53:08]Write to MH i2c: 01 00 00 F6 0A 00 [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: 01 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: 01 07 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: 01 07 00 F6 0A 00 00 00 00 00 D5 0C E8 [09:53:08]RasterBufferAndPrint [09:53:08]line [09:53:08]line [09:53:08]line [09:53:08]line [09:53:08]line [09:53:08]written 0, free lines is 3291 [09:53:08]MH_Cut [09:53:08]Write to MH i2c: D1 01 00 FD 0A 01 D9 [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: D1 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: D1 01 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: D1 01 00 FD 0A 00 D8 [09:53:08]Write to MH i2c: 01 00 00 FE 0A 08 [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:09]OFD Sender: No OFD packet to send [09:53:09]*** Cut start [09:53:09]*** Partial cut [09:53:09]*** CUTSNS_PIN = 1 [09:53:09]*** CUTSNS_PIN = 0 [09:53:09]*** Brake cut motor [09:53:10]Read from MH i2c: 01 [09:53:10]MH_I2C_Read... [09:53:10]*** Stop cut motor [09:53:10]*** Cut end [09:53:10]Read from MH i2c: 01 07 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: 01 07 00 FE 0A 00 00 00 00 00 FF 0F 1D [09:53:10]process_action close_receipt done [09:53:10]requested_data is exist [09:53:10]produce_requested_data [09:53:10]requested_item fm.sn is exist - process it [09:53:10]wFMCommunicate request_size=4 [09:53:10]MH_SAM_APDU [09:53:10]CAPDU: 80 11 00 00 [09:53:10]Write to MH i2c: E2 08 00 FF 0A 80 11 00 00 00 00 00 00 83 [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:10]Read from MH i2c: E2 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 17 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 17 00 FF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D3 [09:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:53:10]wFMCommunicate OK [09:53:10]requested_item fd.num is exist - process it [09:53:10]SAM_PROTO_GetFieldsCounters [09:53:10]wFMCommunicate request_size=4 [09:53:10]MH_SAM_APDU [09:53:10]CAPDU: 80 13 00 00 [09:53:10]Write to MH i2c: E2 08 00 00 0B 80 13 00 00 00 00 00 00 87 [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:10]Read from MH i2c: E2 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 62 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 62 00 00 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 38 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 38 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:10]wFMCommunicate OK [09:53:10]SAM_PROTO_GetFieldsCounters done [09:53:10]requested_item shift.num is exist - process it [09:53:10]requested_item shift.opened is exist - process it [09:53:10]req_shift_opened [09:53:10]FM_GetShiftState [09:53:10]SAM_PROTO_GetShiftState [09:53:10]wFMCommunicate request_size=4 [09:53:10]MH_SAM_APDU [09:53:10]CAPDU: 80 13 01 00 [09:53:10]Write to MH i2c: E2 08 00 01 0B 80 13 01 00 00 00 00 00 89 [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:10]Read from MH i2c: E2 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 0E 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 0E 00 01 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 65 [09:53:10]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:53:10]wFMCommunicate OK [09:53:10]SAM_PROTO_GetShiftState done [09:53:10]FM_GetShiftState done [09:53:10]req_shift_opened done [09:53:10]requested_item shift.open_date is exist - process it [09:53:10]req_shift_open_date [09:53:10]req_shift_open_date done [09:53:10]produce_requested_data done [09:53:10]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76600,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [09:53:10]process_action_free close_receipt [09:53:10]json_value_free [09:53:10]json_value_free done [09:53:10]process_json_proto returns [09:53:10]Send response to host [09:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76600,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [09:53:10]free response buf [09:53:10]execute_script done [09:53:10]execute_script returns [09:53:10]free content buf [09:53:10]Sock 9.Close socket [09:53:10]Sock 9.Thread stoped [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:41]accept exits with 7 [09:53:41]New connection [09:53:41]New thread 3066989924 created [09:53:41]Thread 3067133284 joined [09:53:41]Waiting for new connection... [09:53:41] Sock 7.Parse request [09:53:41]Sock 7.Check first char [09:53:41]Sock 7.First char is OK [09:53:41]request: POST /json_proto HTTP/1.0 [09:53:41]Method: POST [09:53:41]URL: /json_proto [09:53:41]Method is POST - this is cgi request [09:53:41]url: /json_proto [09:53:41]query_string will be loaded in cgi processing [09:53:41]execute_cgi json_proto POST (null) [09:53:41]execute_cgi path=json_proto method=POST [09:53:41]POST find Content-Length [09:53:41]Host: 172.17.39.195:8080 [09:53:41]Content-Length: 678 [09:53:41]Content-Type: application/json [09:53:41] [09:53:41]POST finish read [09:53:41]Found Content-Length = 678 [09:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1692897", "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" : 66.40, "quantity" : 2.570, "sum" : 170.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:41]execute_script... [09:53: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)1692897", "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" : 66.40, "quantity" : 2.570, "sum" : 170.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:41]POST & json_proto [09:53:41]process_json_proto [09:53:41]json parsed OK: [09:53:41]protocol is kg_v1.0 [09:53:41]action value=close_receipt [09:53:41]process_action close_receipt [09:53:41]cmd_close_receipt [09:53:41]MH_GetDate [09:53:41]Write to MH i2c: F0 00 00 02 0B FC [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: F0 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: F0 09 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: F0 09 00 02 0B 00 28 FC 73 66 99 81 91 64 11 [09:53:41]GetLastDocTimeStamp 1718877189 [09:53:41]current date 1718877224 [09:53:41]FM_GetShiftState [09:53:41]SAM_PROTO_GetShiftState [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 13 01 00 [09:53:41]Write to MH i2c: E2 08 00 03 0B 80 13 01 00 00 00 00 00 8B [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0E 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0E 00 03 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 67 [09:53:41]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_GetShiftState done [09:53:41]FM_GetShiftState done [09:53:41]opened in 1718843774 [09:53:41]opened+sec_in_day 1718930174 [09:53:41]quantity*price = 17064 [09:53:41]sum+1 = 17066 [09:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 42 20.06.2024 09:53 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76601 ФПД: 99258822809453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095344&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76601&fm=99258822809453&tin=02508201610067®Number=0000000000095696&sum=17000 [09:53:42]StoreToDocumentArchive [09:53:42]shift 393 fd 76601 [09:53:42]save to /storage/0393/doc_00076601 [09:53:42]save last doc name /storage/0393/doc_00076601 to /storage/kkm_last_doc_name [09:53:42]save OK [09:53:42]Clear old archive folders... [09:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:42]tlvbuf is 00CFE870 [09:53:42]SAM_PROTO_ClearQueue [09:53:42]wFMCommunicate request_size=4 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 09 00 00 [09:53:42]Write to MH i2c: E2 08 00 10 0B 80 09 00 00 00 00 00 00 8D [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 10 0B 00 90 00 8F [09:53:42]RAPDU: 90 00 [09:53:42]wFMCommunicate OK [09:53:42]SAM_PROTO_ClearQueue done [09:53:42]KKMCreateOFDPacket [09:53:42]OFDProtocolAddRootSTLVToBuf [09:53:42]FM_MakeSignedData [09:53:42]FM_MakeSignedData [09:53:42]SAM_PROTO_SignData [09:53:42]wFMCommunicate request_size=4 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 0D 01 02 [09:53:42]Write to MH i2c: E2 08 00 11 0B 80 0D 01 02 00 00 00 00 95 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 11 0B 00 90 00 90 [09:53:42]RAPDU: 90 00 [09:53:42]wFMCommunicate OK [09:53:42]wFMCommunicate request_size=255 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 28 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2B 01 00 35 04 06 00 5A [09:53:42]Write to MH i2c: E2 02 01 12 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 28 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2B 01 00 35 04 06 00 5A 00 00 24 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 03 00 12 0B 00 90 00 91 [09:53:42]RAPDU: 90 00 [09:53:42]wFMCommunicate OK [09:53:42]wFMCommunicate request_size=10 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 0D 02 02 05 46 7E DF D7 6D [09:53:42]Write to MH i2c: E2 0D 00 13 0B 80 0D 02 02 05 00 46 7E DF D7 6D 00 00 89 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 03 00 13 0B 00 90 00 92 [09:53:43]RAPDU: 90 00 [09:53:43]wFMCommunicate OK [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 0D 03 02 [09:53:43]Write to MH i2c: E2 08 00 14 0B 80 0D 03 02 00 00 00 00 9A [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0B 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0B 00 14 0B 00 61 B6 3E E3 1B E8 05 36 90 00 11 [09:53:43]RAPDU: 61 B6 3E E3 1B E8 05 36 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_SignData done [09:53:43]FM_MakeSignedData done [09:53:43]CreateOFDProtocolMessage [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 11 00 00 [09:53:43]Write to MH i2c: E2 08 00 15 0B 80 11 00 00 00 00 00 00 9A [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 15 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EA [09:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:53:43]wFMCommunicate OK [09:53:43]CreateOFDProtocolMessage done [09:53:43]OFDSenderStorePacket 76601 [09:53:43]StoreOFDPacket docnum=76601 [09:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 B7 99 07 01 C3 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 28 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2B 01 00 35 04 06 00 5A 46 7E DF D7 6D 61 B6 3E E3 1B E8 05 36 [09:53:43]CheckFolder [09:53:43]dirname=/storage/ofd_packets [09:53:43]CheckFolder done [09:53:43]ProducePacketName [09:53:43]name=ofd_packets/00076601 [09:53:43]NVStorageSaveData ofd_packets/00076601 [09:53:43]File name is /storage/ofd_packets/00076601 [09:53:43]Write 301 bytes [09:53:43]NVStorageSaveData done [09:53:43]OFDSenderStorePacket done [09:53:43]KKMCreateOFDPacket done [09:53:43]NVStorageSaveData kkm_last_timestamp [09:53:43]File name is /storage/kkm_last_timestamp [09:53:43]Write 4 bytes [09:53:43]NVStorageSaveData done [09:53:43]ExternCall_PrintAddStr [09:53:43]wPrintStart [09:53:43]Write to MH i2c: 01 00 00 16 0B 21 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 FF 0F 36 [09:53:43]RasterBufferAndPrint [09:53:43]line Счет N : (1)1692897 [09:53:43]line ИНН: 02508201610067 [09:53:43]line Контрольно-Кассовый Чек [09:53:43]line ПРОДАЖА [09:53:43]line ТРК (МРК, ГНК) : 43 [09:53:43]line Товар: 2710124130 [09:53:43]line Аи-92-К-5 [09:53:43]line 2.570 * 66.40 [09:53:43]line = 170.65 [09:53:43]line НДС 12% НСП 1% [09:53:43]line > о реализуемом товаре [09:53:43]line ОКРУГЛЕНИЕ: -0.65 [09:53:43]line ИТОГО: 170.00 [09:53:43]line Внесено: 170.00 [09:53:43]line СДАЧА: 0.00 [09:53:43]line НСП 1% : 1.51 [09:53:43]line НДС 12% : 18.12 [09:53:43]line Наличными: 170.00 [09:53:43]line Безнал.: 0.00 [09:53:43]line Место: АЗС № 144 "Партнер Нефть" [09:53:43]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:53:43]line СНО: Общий режим [09:53:43]line Чек 42 20.06.2024 09:53 [09:53:43]line Смена: 393 ФФД: 1.0 [09:53:43]line ЗНМ: 0300000170 [09:53:43]line РНМ: 0000000000095696 [09:53:43]line Версия ККМ: 001 [09:53:43]line ФМ: 0000000000875009 [09:53:43]line ФД: 76601 [09:53:43]line ФПД: 99258822809453 [09:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095344&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76601&fm=99258822809453&tin=02508201610067®Number=0000000000095696&sum=17000 [09:53:43]written 0, free lines is 4095 [09:53:43]OFD Sender: Processing packet 76601 [packets to send 351, broken 350] [09:53:43]ProducePacketName [09:53:43]name=ofd_packets/00076601 [09:53:43]OFD Sender: To server: pG, [09:53:43]CommunicateWithHost lk.salyk.kg:30040 [09:53:43]ConnectInit lk.salyk.kg [09:53:43]Connected sock=10 [09:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 B7 99 07 01 C3 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 28 FC 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2B 01 00 35 04 06 00 5A 46 7E DF D7 6D 61 B6 3E E3 1B E8 05 36 [09:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 37 34 47 00 52 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2B 01 00 F4 03 04 00 C9 A2 73 66 B6 04 01 00 00 18 9F 66 BD 21 35 E5 53 [09:53:43]CommunicateWithHost err = 0 [09:53:43]CheckOFDResponse [09:53:43]1017 (14) - 77093643461234 [09:53:43]1041 (16) - 0000000000875009 [09:53:43]1040 (4) - 76601 [09:53:43]1012 (4) - 20.06.2024 03:32 [09:53:43]1206 (1) - 0 [09:53:43]OFD Sender: Remove packet 76601 [09:53:43]ProducePacketName [09:53:43]name=ofd_packets/00076601 [09:53:43]NVStorageDeleteData [09:53:43]Write to MH i2c: 01 00 00 41 0B 4C [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 D0 0C 2F [09:53:43]RasterBufferAndPrint [09:53:43]line [09:53:43]line [09:53:43]line [09:53:43]line [09:53:43]line [09:53:43]written 0, free lines is 3287 [09:53:43]MH_Cut [09:53:43]Write to MH i2c: D1 01 00 48 0B 01 25 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: D1 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: D1 01 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: D1 01 00 48 0B 00 24 [09:53:43]Write to MH i2c: 01 00 00 49 0B 54 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:44]OFD Sender: No OFD packet to send [09:53:44]*** Cut start [09:53:44]*** Partial cut [09:53:44]*** CUTSNS_PIN = 1 [09:53:44]*** CUTSNS_PIN = 0 [09:53:44]*** Brake cut motor [09:53:44]Read from MH i2c: 01 [09:53:44]MH_I2C_Read... [09:53:44]*** Stop cut motor [09:53:45]*** Cut end [09:53:45]Read from MH i2c: 01 07 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 FF 0F 69 [09:53:45]process_action close_receipt done [09:53:45]requested_data is exist [09:53:45]produce_requested_data [09:53:45]requested_item fm.sn is exist - process it [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 11 00 00 [09:53:45]Write to MH i2c: E2 08 00 4A 0B 80 11 00 00 00 00 00 00 CF [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 17 00 4A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1F [09:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:53:45]wFMCommunicate OK [09:53:45]requested_item fd.num is exist - process it [09:53:45]SAM_PROTO_GetFieldsCounters [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 13 00 00 [09:53:45]Write to MH i2c: E2 08 00 4B 0B 80 13 00 00 00 00 00 00 D2 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 62 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 62 00 4B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 39 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 39 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:45]wFMCommunicate OK [09:53:45]SAM_PROTO_GetFieldsCounters done [09:53:45]requested_item shift.num is exist - process it [09:53:45]requested_item shift.opened is exist - process it [09:53:45]req_shift_opened [09:53:45]FM_GetShiftState [09:53:45]SAM_PROTO_GetShiftState [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 13 01 00 [09:53:45]Write to MH i2c: E2 08 00 4C 0B 80 13 01 00 00 00 00 00 D4 [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0E 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0E 00 4C 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 B0 [09:53:45]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [09:53:45]wFMCommunicate OK [09:53:45]SAM_PROTO_GetShiftState done [09:53:45]FM_GetShiftState done [09:53:45]req_shift_opened done [09:53:45]requested_item shift.open_date is exist - process it [09:53:45]req_shift_open_date [09:53:45]req_shift_open_date done [09:53:45]produce_requested_data done [09:53:45]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76601,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [09:53:45]process_action_free close_receipt [09:53:45]json_value_free [09:53:45]json_value_free done [09:53:45]process_json_proto returns [09:53:45]Send response to host [09:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76601,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [09:53:45]free response buf [09:53:45]execute_script done [09:53:45]execute_script returns [09:53:45]free content buf [09:53:45]Sock 7.Close socket [09:53:45]Sock 7.Thread stoped [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:46]accept exits with 9 [10:05:46]New connection [10:05:46]New thread 3067133284 created [10:05:46]Thread 3066989924 joined [10:05:46]Waiting for new connection... [10:05:46] Sock 9.Parse request [10:05:46]Sock 9.Check first char [10:05:46]Sock 9.First char is OK [10:05:46]request: POST /json_proto HTTP/1.0 [10:05:46]Method: POST [10:05:46]URL: /json_proto [10:05:46]Method is POST - this is cgi request [10:05:46]url: /json_proto [10:05:46]query_string will be loaded in cgi processing [10:05:46]execute_cgi json_proto POST (null) [10:05:46]execute_cgi path=json_proto method=POST [10:05:46]POST find Content-Length [10:05:46]Host: 172.17.39.195:8080 [10:05:46]Content-Length: 621 [10:05:46]Content-Type: application/json [10:05:46] [10:05:46]POST finish read [10:05:46]Found Content-Length = 621 [10:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220747", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:46]execute_script... [10:05: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 : (3)220747", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:46]POST & json_proto [10:05:46]process_json_proto [10:05:46]json parsed OK: [10:05:46]protocol is kg_v1.0 [10:05:46]action value=close_receipt [10:05:46]process_action close_receipt [10:05:46]cmd_close_receipt [10:05:46]MH_GetDate [10:05:46]Write to MH i2c: F0 00 00 4D 0B 47 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 09 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 09 00 4D 0B 00 FD FE 73 66 99 81 91 64 33 [10:05:46]GetLastDocTimeStamp 1718877224 [10:05:46]current date 1718877949 [10:05:46]FM_GetShiftState [10:05:46]SAM_PROTO_GetShiftState [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 13 01 00 [10:05:46]Write to MH i2c: E2 08 00 4E 0B 80 13 01 00 00 00 00 00 D6 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0E 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0E 00 4E 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 B2 [10:05:46]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:05:46]wFMCommunicate OK [10:05:46]SAM_PROTO_GetShiftState done [10:05:46]FM_GetShiftState done [10:05:46]opened in 1718843774 [10:05:46]opened+sec_in_day 1718930174 [10:05:46]quantity*price = 14000 [10:05:46]sum+1 = 14001 [10:05:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 43 20.06.2024 10:05 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76602 ФПД: 272657357914518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100549&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76602&fm=272657357914518&tin=02508201610067®Number=0000000000095696&sum=14000 0 [10:05:47]StoreToDocumentArchive [10:05:47]shift 393 fd 76602 [10:05:47]save to /storage/0393/doc_00076602 [10:05:47]save last doc name /storage/0393/doc_00076602 to /storage/kkm_last_doc_name [10:05:47]save OK [10:05:47]Clear old archive folders... [10:05:47]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:05:47]tlvbuf is 00DBA600 [10:05:47]SAM_PROTO_ClearQueue [10:05:47]wFMCommunicate request_size=4 [10:05:47]MH_SAM_APDU [10:05:47]CAPDU: 80 09 00 00 [10:05:47]Write to MH i2c: E2 08 00 5B 0B 80 09 00 00 00 00 00 00 D8 [10:05:47]Write i2c OK [10:05:47]MH_I2C_Read... [10:05:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:47]Read from MH i2c: E2 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 03 00 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 03 00 5B 0B 00 90 00 DA [10:05:47]RAPDU: 90 00 [10:05:47]wFMCommunicate OK [10:05:47]SAM_PROTO_ClearQueue done [10:05:47]KKMCreateOFDPacket [10:05:47]OFDProtocolAddRootSTLVToBuf [10:05:47]FM_MakeSignedData [10:05:47]FM_MakeSignedData [10:05:47]SAM_PROTO_SignData [10:05:47]wFMCommunicate request_size=4 [10:05:47]MH_SAM_APDU [10:05:47]CAPDU: 80 0D 01 02 [10:05:47]Write to MH i2c: E2 08 00 5C 0B 80 0D 01 02 00 00 00 00 E0 [10:05:47]Write i2c OK [10:05:47]MH_I2C_Read... [10:05:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:47]Read from MH i2c: E2 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 03 00 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 03 00 5C 0B 00 90 00 DB [10:05:47]RAPDU: 90 00 [10:05:47]wFMCommunicate OK [10:05:47]wFMCommunicate request_size=255 [10:05:47]MH_SAM_APDU [10:05:47]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FD FE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [10:05:47]Write to MH i2c: E2 02 01 5D 0B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FD FE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 54 [10:05:47]Write i2c OK [10:05:47]MH_I2C_Read... [10:05:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:47]Read from MH i2c: E2 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 03 00 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 03 00 5D 0B 00 90 00 DC [10:05:47]RAPDU: 90 00 [10:05:47]wFMCommunicate OK [10:05:47]wFMCommunicate request_size=32 [10:05:47]MH_SAM_APDU [10:05:47]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2B 01 00 35 04 06 00 F7 FA FC F6 C1 96 [10:05:47]Write to MH i2c: E2 23 00 5E 0B 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2B 01 00 35 04 06 00 F7 FA FC F6 C1 96 00 00 DD [10:05:47]Write i2c OK [10:05:47]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 03 02 [10:05:48]Write to MH i2c: E2 08 00 5F 0B 80 0D 03 02 00 00 00 00 E5 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0B 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0B 00 5F 0B 00 FC 04 66 4F 38 FE 68 C6 90 00 FF [10:05:48]RAPDU: FC 04 66 4F 38 FE 68 C6 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_SignData done [10:05:48]FM_MakeSignedData done [10:05:48]CreateOFDProtocolMessage [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 11 00 00 [10:05:48]Write to MH i2c: E2 08 00 60 0B 80 11 00 00 00 00 00 00 E5 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 60 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 35 [10:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:05:48]wFMCommunicate OK [10:05:48]CreateOFDProtocolMessage done [10:05:48]OFDSenderStorePacket 76602 [10:05:48]StoreOFDPacket docnum=76602 [10:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 B4 92 1D 01 C0 88 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FD FE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2B 01 00 35 04 06 00 F7 FA FC F6 C1 96 FC 04 66 4F 38 FE 68 C6 [10:05:48]CheckFolder [10:05:48]dirname=/storage/ofd_packets [10:05:48]CheckFolder done [10:05:48]ProducePacketName [10:05:48]name=ofd_packets/00076602 [10:05:48]NVStorageSaveData ofd_packets/00076602 [10:05:48]File name is /storage/ofd_packets/00076602 [10:05:48]Write 323 bytes [10:05:48]NVStorageSaveData done [10:05:48]OFDSenderStorePacket done [10:05:48]KKMCreateOFDPacket done [10:05:48]NVStorageSaveData kkm_last_timestamp [10:05:48]File name is /storage/kkm_last_timestamp [10:05:48]Write 4 bytes [10:05:48]NVStorageSaveData done [10:05:48]ExternCall_PrintAddStr [10:05:48]wPrintStart [10:05:48]Write to MH i2c: 01 00 00 61 0B 6C [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 61 0B 00 00 00 00 00 FF 0F 81 [10:05:48]RasterBufferAndPrint [10:05:48]line Счет N : (3)220747 [10:05:48]line ИНН: 02508201610067 [10:05:48]line Контрольно-Кассовый Чек [10:05:48]line ПРОДАЖА [10:05:48]line Товар: 48747059 [10:05:48]line Сигареты Winston Legend Blue [10:05:48]line 1.000 * 140.00 [10:05:48]line = 140.00 [10:05:48]line НДС 12% НСП 1% [10:05:48]line > о реализуемом товаре [10:05:48]line ИТОГО: 140.00 [10:05:48]line НСП 1% : 1.24 [10:05:48]line НДС 12% : 14.87 [10:05:48]line Наличными: 140.00 [10:05:48]line Безнал.: 0.00 [10:05:48]line Место: АЗС № 144 "Партнер Нефть" [10:05:48]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [10:05:48]line СНО: Общий режим [10:05:48]line Чек 43 20.06.2024 10:05 [10:05:48]line Смена: 393 ФФД: 1.0 [10:05:48]line ЗНМ: 0300000170 [10:05:48]line РНМ: 0000000000095696 [10:05:48]line Версия ККМ: 001 [10:05:48]line ФМ: 0000000000875009 [10:05:48]line ФД: 76602 [10:05:48]line ФПД: 272657357914518 [10:05:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100549&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76602&fm=272657357914518&tin=02508201610067®Number=0000000000095696&sum=14000 [10:05:48]line 0 [10:05:48]OFD Sender: Processing packet 76602 [packets to send 351, broken 350] [10:05:48]ProducePacketName [10:05:48]name=ofd_packets/00076602 [10:05:48]OFD Sender: To server: pG, [10:05:48]CommunicateWithHost lk.salyk.kg:30040 [10:05:48]ConnectInit lk.salyk.kg [10:05:48]written 0, free lines is 4095 [10:05:48]Connected sock=10 [10:05:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 B4 92 1D 01 C0 88 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FD FE 73 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2B 01 00 35 04 06 00 F7 FA FC F6 C1 96 FC 04 66 4F 38 FE 68 C6 [10:05:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 10 04 47 00 9F 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2B 01 00 F4 03 04 00 9E A5 73 66 B6 04 01 00 00 8C 5E 1C 0E 7A 0E C8 CB [10:05:48]CommunicateWithHost err = 0 [10:05:48]CheckOFDResponse [10:05:48]1017 (14) - 77093643461234 [10:05:48]1041 (16) - 0000000000875009 [10:05:48]1040 (4) - 76602 [10:05:48]1012 (4) - 20.06.2024 03:44 [10:05:48]1206 (1) - 0 [10:05:48]OFD Sender: Remove packet 76602 [10:05:48]ProducePacketName [10:05:48]name=ofd_packets/00076602 [10:05:48]NVStorageDeleteData [10:05:48]Write to MH i2c: 01 00 00 8A 0B 95 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 8A 0B 00 00 00 00 00 DA 0C 82 [10:05:48]RasterBufferAndPrint [10:05:48]line [10:05:48]line [10:05:48]line [10:05:48]line [10:05:48]line [10:05:48]written 0, free lines is 3299 [10:05:48]MH_Cut [10:05:48]Write to MH i2c: D1 01 00 91 0B 01 6E [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: D1 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: D1 01 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: D1 01 00 91 0B 00 6D [10:05:48]Write to MH i2c: 01 00 00 92 0B 9D [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:49]OFD Sender: No OFD packet to send [10:05:49]*** Cut start [10:05:49]*** Partial cut [10:05:49]*** CUTSNS_PIN = 1 [10:05:49]*** CUTSNS_PIN = 0 [10:05:49]*** Brake cut motor [10:05:50]Read from MH i2c: 01 [10:05:50]MH_I2C_Read... [10:05:50]*** Stop cut motor [10:05:50]*** Cut end [10:05:50]Read from MH i2c: 01 07 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 FF 0F B2 [10:05:50]process_action close_receipt done [10:05:50]requested_data is exist [10:05:50]produce_requested_data [10:05:50]requested_item fm.sn is exist - process it [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 11 00 00 [10:05:50]Write to MH i2c: E2 08 00 93 0B 80 11 00 00 00 00 00 00 18 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 93 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 68 [10:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:05:50]wFMCommunicate OK [10:05:50]requested_item fd.num is exist - process it [10:05:50]SAM_PROTO_GetFieldsCounters [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 13 00 00 [10:05:50]Write to MH i2c: E2 08 00 94 0B 80 13 00 00 00 00 00 00 1B [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 62 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 62 00 94 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [10:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:50]wFMCommunicate OK [10:05:50]SAM_PROTO_GetFieldsCounters done [10:05:50]requested_item shift.num is exist - process it [10:05:50]requested_item shift.opened is exist - process it [10:05:50]req_shift_opened [10:05:50]FM_GetShiftState [10:05:50]SAM_PROTO_GetShiftState [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 13 01 00 [10:05:50]Write to MH i2c: E2 08 00 95 0B 80 13 01 00 00 00 00 00 1D [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:50]Read from MH i2c: E2 0E 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 0E 00 95 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F9 [10:05:50]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:05:50]wFMCommunicate OK [10:05:50]SAM_PROTO_GetShiftState done [10:05:50]FM_GetShiftState done [10:05:50]req_shift_opened done [10:05:50]requested_item shift.open_date is exist - process it [10:05:50]req_shift_open_date [10:05:50]req_shift_open_date done [10:05:50]produce_requested_data done [10:05:50]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76602,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [10:05:50]process_action_free close_receipt [10:05:50]json_value_free [10:05:50]json_value_free done [10:05:50]process_json_proto returns [10:05:50]Send response to host [10:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76602,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [10:05:50]free response buf [10:05:50]execute_script done [10:05:50]execute_script returns [10:05:50]free content buf [10:05:50]Sock 9.Close socket [10:05:50]Sock 9.Thread stoped [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]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: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:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:31]accept exits with 7 [10:13:31]New connection [10:13:31]New thread 3066989924 created [10:13:31]Thread 3067133284 joined [10:13:31]Waiting for new connection... [10:13:31] Sock 7.Parse request [10:13:31]Sock 7.Check first char [10:13:31]Sock 7.First char is OK [10:13:31]request: POST /json_proto HTTP/1.0 [10:13:31]Method: POST [10:13:31]URL: /json_proto [10:13:31]Method is POST - this is cgi request [10:13:31]url: /json_proto [10:13:31]query_string will be loaded in cgi processing [10:13:31]execute_cgi json_proto POST (null) [10:13:31]execute_cgi path=json_proto method=POST [10:13:31]POST find Content-Length [10:13:31]Host: 172.17.39.195:8080 [10:13:31]Content-Length: 623 [10:13:31]Content-Type: application/json [10:13:31] [10:13:31]POST finish read [10:13:31]Found Content-Length = 623 [10:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220748", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:31]execute_script... [10:13: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 : (3)220748", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:31]POST & json_proto [10:13:31]process_json_proto [10:13:31]json parsed OK: [10:13:31]protocol is kg_v1.0 [10:13:31]action value=close_receipt [10:13:31]process_action close_receipt [10:13:31]cmd_close_receipt [10:13:31]MH_GetDate [10:13:31]Write to MH i2c: F0 00 00 96 0B 90 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: F0 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: F0 09 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: F0 09 00 96 0B 00 CE 00 74 66 99 81 91 64 50 [10:13:31]GetLastDocTimeStamp 1718877949 [10:13:31]current date 1718878414 [10:13:31]FM_GetShiftState [10:13:31]SAM_PROTO_GetShiftState [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 13 01 00 [10:13:31]Write to MH i2c: E2 08 00 97 0B 80 13 01 00 00 00 00 00 1F [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 97 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 FB [10:13:31]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_GetShiftState done [10:13:31]FM_GetShiftState done [10:13:31]opened in 1718843774 [10:13:31]opened+sec_in_day 1718930174 [10:13:31]quantity*price = 14000 [10:13:31]sum+1 = 14001 [10:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 44 20.06.2024 10:13 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76603 ФПД: 80686628286552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101334&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76603&fm=80686628286552&tin=02508201610067®Number=0000000000095696&sum=14000 0 [10:13:32]StoreToDocumentArchive [10:13:32]shift 393 fd 76603 [10:13:32]save to /storage/0393/doc_00076603 [10:13:32]save last doc name /storage/0393/doc_00076603 to /storage/kkm_last_doc_name [10:13:32]save OK [10:13:32]Clear old archive folders... [10:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:13:32]tlvbuf is 00DC8590 [10:13:32]SAM_PROTO_ClearQueue [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 09 00 00 [10:13:32]Write to MH i2c: E2 08 00 A4 0B 80 09 00 00 00 00 00 00 21 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 A4 0B 00 90 00 23 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]SAM_PROTO_ClearQueue done [10:13:32]KKMCreateOFDPacket [10:13:32]OFDProtocolAddRootSTLVToBuf [10:13:32]FM_MakeSignedData [10:13:32]FM_MakeSignedData [10:13:32]SAM_PROTO_SignData [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 01 02 [10:13:32]Write to MH i2c: E2 08 00 A5 0B 80 0D 01 02 00 00 00 00 29 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 A5 0B 00 90 00 24 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=255 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CE 00 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 [10:13:32]Write to MH i2c: E2 02 01 A6 0B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CE 00 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 00 00 21 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=34 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2B 01 00 35 04 06 00 49 62 51 D1 30 58 [10:13:32]Write to MH i2c: E2 25 00 A7 0B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2B 01 00 35 04 06 00 49 62 51 D1 30 58 00 00 A6 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 03 02 [10:13:32]Write to MH i2c: E2 08 00 A8 0B 80 0D 03 02 00 00 00 00 2E [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 0B 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 0B 00 A8 0B 00 D8 15 CF 50 4F 03 54 A2 90 00 83 [10:13:33]RAPDU: D8 15 CF 50 4F 03 54 A2 90 00 [10:13:33]wFMCommunicate OK [10:13:33]SAM_PROTO_SignData done [10:13:33]FM_MakeSignedData done [10:13:33]CreateOFDProtocolMessage [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 11 00 00 [10:13:33]Write to MH i2c: E2 08 00 A9 0B 80 11 00 00 00 00 00 00 2E [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 A9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7E [10:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:13:33]wFMCommunicate OK [10:13:33]CreateOFDProtocolMessage done [10:13:33]OFDSenderStorePacket 76603 [10:13:33]StoreOFDPacket docnum=76603 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: *** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]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]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [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: 31621275+1687257497=1718878772 [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]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 34 02 74 66 99 81 91 64 1E [10:19:32]Current date/time: 20.06.2024 10:19 [10:19:32]FM_Init [10:19:32]wFMConnect [10:19:32]MH_SAM_On [10:19:32]Write to MH i2c: E0 00 00 08 00 E7 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_init finished! [10:19:32]*** atr: [10:19:32]*** 0F 3B D5 18 FF 81 91 FE [10:19:32]*** 1F C3 80 73 C8 21 10 0A [10:19:32]*** 00 00 00 00 00 00 00 00 [10:19:32]*** 00 00 00 00 00 00 00 00 [10:19:32]*** 00 00 00 00 00 00 00 00 [10:19:32]*** 00 00 00 00 00 00 00 00 [10:19:32]*** 00 00 00 00 00 00 00 00 [10:19:32]*** 00 00 00 00 00 00 00 00 [10:19:32]Read from MH i2c: E0 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E0 10 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:19:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:19:32]wFMCommunicate request_size=10 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:19:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 11 00 00 [10:19:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D4 [10:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:19:32]wFMCommunicate OK [10:19:32]Detected FM SN is 0000000000875009 [10:19:32]Stored FM SN is 0000000000875009 [10:19:32]wFMCommunicate request_size=9 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 16 00 00 04 FA 14 01 00 [10:19:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 14 01 00 00 00 A1 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]FM PIN OK [10:19:32]wFMCommunicate request_size=8 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 14 04 00 03 02 00 01 [10:19:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=13 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:19:32]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 11 00 00 [10:19:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D8 [10:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:19:32]wFMCommunicate OK [10:19:32]DocumentArchiveInit [10:19:32]Start Httpd... [10:19:32]Httpd thread 3067813220 created [10:19:32]Write to MH i2c: 01 00 00 0F 00 0F [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:19:32]MH Int Process started [10:19:32]Allocated Socket 8 [10:19:32]Bind OK [10:19:32]Listen OK [10:19:32]httpd running on port 8080 [10:19:32]Waiting for new connection... [10:19:32]OFD Sender: Processing packet 76603 [packets to send 351, broken 350] [10:19:32]ProducePacketName [10:19:32]name=ofd_packets/00076603 [10:19:32]OFD Sender: To server: pG, [10:19:32]CommunicateWithHost lk.salyk.kg:30040 [10:19:32]ConnectInit lk.salyk.kg [10:19:34]Connected sock=5 [10:19:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 69 6A 1F 01 90 A7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CE 00 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2B 01 00 35 04 06 00 49 62 51 D1 30 58 D8 15 CF 50 4F 03 54 A2 [10:19:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 72 B2 47 00 24 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2B 01 00 F4 03 04 00 D7 A8 73 66 B6 04 01 00 00 FF 5A 89 7C A6 A2 12 DF [10:19:35]CommunicateWithHost err = 0 [10:19:35]CheckOFDResponse [10:19:35]1017 (14) - 77093643461234 [10:19:35]1041 (16) - 0000000000875009 [10:19:35]1040 (4) - 76603 [10:19:35]1012 (4) - 20.06.2024 03:58 [10:19:35]1206 (1) - 0 [10:19:35]OFD Sender: Remove packet 76603 [10:19:35]ProducePacketName [10:19:35]name=ofd_packets/00076603 [10:19:35]NVStorageDeleteData [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:46]accept exits with 9 [10:19:46]New connection [10:19:46]New thread 3067526500 created [10:19:46]Waiting for new connection... [10:19:46] Sock 9.Parse request [10:19:46]Sock 9.Check first char [10:19:46]Sock 9.First char is OK [10:19:46]request: POST /json_proto HTTP/1.0 [10:19:46]Method: POST [10:19:46]URL: /json_proto [10:19:46]Method is POST - this is cgi request [10:19:46]url: /json_proto [10:19:46]query_string will be loaded in cgi processing [10:19:46]execute_cgi json_proto POST (null) [10:19:46]execute_cgi path=json_proto method=POST [10:19:46]POST find Content-Length [10:19:46]Host: 172.17.39.195:8080 [10:19:46]Content-Length: 215 [10:19:46]Content-Type: application/json [10:19:46] [10:19:46]POST finish read [10:19:46]Found Content-Length = 215 [10:19:46]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" ] } } [10:19:46]execute_script... [10:19:46]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" ] } } [10:19:46]POST & json_proto [10:19:46]process_json_proto [10:19:46]json parsed OK: [10:19:46]protocol is kg_v1.0 [10:19:46]action value=get_value [10:19:46]process_action get_value [10:19:46]cmd_get_value [10:19:46]process_action get_value done [10:19:46]requested_data is exist [10:19:46]produce_requested_data [10:19:46]requested_item kkm.sn is exist - process it [10:19:46]requested_item kkm.ver is exist - process it [10:19:46]requested_item fm.sn is exist - process it [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 11 00 00 [10:19:46]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 [10:19:46]MH_I2C_Read... [10:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:46]Read from MH i2c: E2 17 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DA [10:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:19:46]wFMCommunicate OK [10:19:46]requested_item fd.num is exist - process it [10:19:46]SAM_PROTO_GetFieldsCounters [10:19:46]wFMCommunicate request_size=4 [10:19:46]MH_SAM_APDU [10:19:46]CAPDU: 80 13 00 00 [10:19:46]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 62 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [10:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:47]wFMCommunicate OK [10:19:47]SAM_PROTO_GetFieldsCounters done [10:19:47]requested_item shift.num is exist - process it [10:19:47]requested_item shift.opened is exist - process it [10:19:47]req_shift_opened [10:19:47]FM_GetShiftState [10:19:47]SAM_PROTO_GetShiftState [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 13 01 00 [10:19:47]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 6B [10:19:47]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:19:47]wFMCommunicate OK [10:19:47]SAM_PROTO_GetShiftState done [10:19:47]FM_GetShiftState done [10:19:47]req_shift_opened done [10:19:47]requested_item shift.open_date is exist - process it [10:19:47]req_shift_open_date [10:19:47]req_shift_open_date done [10:19:47]produce_requested_data done [10:19:47]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76603,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [10:19:47]process_action_free get_value [10:19:47]json_value_free [10:19:47]json_value_free done [10:19:47]process_json_proto returns [10:19:47]Send response to host [10:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76603,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [10:19:47]free response buf [10:19:47]execute_script done [10:19:47]execute_script returns [10:19:47]free content buf [10:19:47]Sock 9.Close socket [10:19:47]Sock 9.Thread stoped [10:19:47]accept exits with 10 [10:19:47]New connection [10:19:47]New thread 3067383140 created [10:19:47]Thread 3067526500 joined [10:19:47]Waiting for new connection... [10:19:47] Sock 10.Parse request [10:19:47]Sock 10.Check first char [10:19:47]Sock 10.First char is OK [10:19:47]request: POST /json_proto HTTP/1.0 [10:19:47]Method: POST [10:19:47]URL: /json_proto [10:19:47]Method is POST - this is cgi request [10:19:47]url: /json_proto [10:19:47]query_string will be loaded in cgi processing [10:19:47]execute_cgi json_proto POST (null) [10:19:47]execute_cgi path=json_proto method=POST [10:19:47]POST find Content-Length [10:19:47]Host: 172.17.39.195:8080 [10:19:47]Content-Length: 331 [10:19:47]Content-Type: application/json [10:19:47] [10:19:47]POST finish read [10:19:47]Found Content-Length = 331 [10:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:19:47]execute_script... [10:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:19:47]POST & json_proto [10:19:47]process_json_proto [10:19:47]json parsed OK: [10:19:47]protocol is kg_v1.0 [10:19:47]action value=get_value [10:19:47]process_action get_value [10:19:47]cmd_get_value [10:19:47]process_action get_value done [10:19:47]requested_data is exist [10:19:47]produce_requested_data [10:19:47]requested_item fm.sale.total is exist - process it [10:19:47]SAM_PROTO_GetFMData [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 13 03 00 [10:19:47]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 FD 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 EC 24 01 00 B1 04 05 00 42 A1 30 B0 01 70 04 05 00 38 0A 04 6D 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2A 52 E7 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 07 2E D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 64 [10:19:47]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 EC 24 01 00 B1 04 05 00 42 A1 30 B0 01 70 04 05 00 38 0A 04 6D 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2A 52 E7 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 07 2E D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 [10:19:47]wFMCommunicate OK [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 17 00 00 [10:19:47]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 FD 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 D2 [10:19:48]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 17 00 00 [10:19:48]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 FD 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 BC [10:19:48]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 17 00 00 [10:19:48]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 FD 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [10:19:48]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 17 00 00 [10:19:48]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 E3 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [10:19:48]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:19:48]wFMCommunicate OK [10:19:48]SAM_PROTO_GetFMData done [10:19:48]requested_item fm.sale_refund.total is exist - process it [10:19:48]requested_item fm.buy.total is exist - process it [10:19:48]requested_item shift.sale.total is exist - process it [10:19:48]SAM_PROTO_GetShiftData [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 13 02 00 [10:19:48]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 FD 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 2C 00 00 00 69 04 9A 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 11 18 12 70 04 03 00 B8 54 11 72 04 02 00 59 C3 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 06 EC 01 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 FB 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 38 [10:19:49]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 2C 00 00 00 69 04 9A 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 11 18 12 70 04 03 00 B8 54 11 72 04 02 00 59 C3 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 06 EC 01 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 FB 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [10:19:49]wFMCommunicate OK [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 17 00 00 [10:19:49]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 FD 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 AB [10:19:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [10:19:49]wFMCommunicate OK [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 17 00 00 [10:19:49]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 FD 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [10:19:49]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [10:19:49]wFMCommunicate OK [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 17 00 00 [10:19:49]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 FD 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 FD 00 1B 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 03 90 00 10 [10:19:50]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 17 00 00 [10:19:50]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 CA 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 CA 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [10:19:50]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:19:50]wFMCommunicate OK [10:19:50]SAM_PROTO_GetShiftData done [10:19:50]requested_item shift.sale.total_cash is exist - process it [10:19:50]requested_item shift.sale_refund.total is exist - process it [10:19:50]requested_item shift.sale_refund.total_cash is exist - process it [10:19:50]requested_item shift.buy.total is exist - process it [10:19:50]requested_item shift.buy.total_cash is exist - process it [10:19:50]produce_requested_data done [10:19:50]produce_requested_data return {"fm.sale.total":72509443.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":11858.09,"shift.sale.total_cash":11358.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} [10:19:50]process_action_free get_value [10:19:50]json_value_free [10:19:50]json_value_free done [10:19:50]process_json_proto returns [10:19:50]Send response to host [10:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72509443.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":11858.09,"shift.sale.total_cash":11358.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}}} [10:19:50]free response buf [10:19:50]execute_script done [10:19:50]execute_script returns [10:19:50]free content buf [10:19:50]Sock 10.Close socket [10:19:50]Sock 10.Thread stoped [10:19:50]accept exits with 9 [10:19:50]New connection [10:19:50]New thread 3067526500 created [10:19:50]Thread 3067383140 joined [10:19:50]Waiting for new connection... [10:19:50] Sock 9.Parse request [10:19:50]Sock 9.Check first char [10:19:50]Sock 9.First char is OK [10:19:50]request: POST /json_proto HTTP/1.0 [10:19:50]Method: POST [10:19:50]URL: /json_proto [10:19:50]Method is POST - this is cgi request [10:19:50]url: /json_proto [10:19:50]query_string will be loaded in cgi processing [10:19:50]execute_cgi json_proto POST (null) [10:19:50]execute_cgi path=json_proto method=POST [10:19:50]POST find Content-Length [10:19:50]Host: 172.17.39.195:8080 [10:19:50]Content-Length: 1198 [10:19:50]Content-Type: application/json [10:19:50] [10:19:50]POST finish read [10:19:50]Found Content-Length = 1198 [10:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1692922\u000A20.06.2024 09:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A15395131539514\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:50]execute_script... [10:19:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1692922\u000A20.06.2024 09:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A15395131539514\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:50]POST & json_proto [10:19:50]process_json_proto [10:19:50]json parsed OK: [10:19:50]protocol is kg_v1.0 [10:19:50]action value=print_text [10:19:50]process_action print_text [10:19:50]cmd_print_text [10:19:50]ExternCall_PrintAddStr [10:19:50]wPrintStart [10:19:50]Write to MH i2c: 01 00 00 1D 00 1D [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: 01 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: 01 07 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [10:19:50]RasterBufferAndPrint [10:19:50]line *****ТОВАРНЫЙ ЧЕК***** [10:19:50]line АЗС 144 [10:19:50]line Партнер нефть [10:19:50]line 02508201610067 [10:19:50]line Кассир : Эсенканов Э. [10:19:50]line Счет N : (1)1692922 [10:19:50]line 20.06.2024 09:51 [10:19:50]line ПРОДАЖА [10:19:50]line ТРК (МРК, ГНК): 33 [10:19:50]line Вид ГСМ : 2710124130 [10:19:50]line Аи-92-К-5 [10:19:50]line 10.000 x 66.40 [10:19:50]line ИТОГ: 664.00 [10:19:50]line Тип оплаты: Талоны: Партнер нефть [10:19:50]line 15395131539514 [10:19:50]line ______________________ [10:19:50]line (подпись) [10:19:50]written 0, free lines is 4095 [10:19:51]Write to MH i2c: 01 00 00 31 00 31 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 1A 0E 60 [10:19:51]RasterBufferAndPrint [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]written 0, free lines is 3618 [10:19:51]MH_Cut [10:19:51]Write to MH i2c: D1 01 00 38 00 01 0A [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 01 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 01 00 38 00 00 09 [10:19:51]Write to MH i2c: 01 00 00 39 00 39 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]OFD Sender: No OFD packet to send [10:19:51]*** Cut start [10:19:51]*** Partial cut [10:19:51]*** CUTSNS_PIN = 1 [10:19:51]*** CUTSNS_PIN = 0 [10:19:51]*** Brake cut motor [10:19:52]Read from MH i2c: 01 [10:19:52]*** Stop cut motor [10:19:52]MH_I2C_Read... [10:19:52]*** Cut end [10:19:52]Read from MH i2c: 01 07 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 07 00 39 00 00 00 00 00 00 FF 0F 4E [10:19:52]process_action print_text done [10:19:52]requested_data is exist [10:19:52]produce_requested_data [10:19:52]requested_item fm.sn is exist - process it [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 11 00 00 [10:19:52]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 04 [10:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:19:52]wFMCommunicate OK [10:19:52]requested_item fd.num is exist - process it [10:19:52]SAM_PROTO_GetFieldsCounters [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 13 00 00 [10:19:52]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 62 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 62 00 3B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_GetFieldsCounters done [10:19:52]requested_item shift.num is exist - process it [10:19:52]requested_item shift.opened is exist - process it [10:19:52]req_shift_opened [10:19:52]FM_GetShiftState [10:19:52]SAM_PROTO_GetShiftState [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 13 01 00 [10:19:52]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0E 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0E 00 3C 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 95 [10:19:52]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_GetShiftState done [10:19:52]FM_GetShiftState done [10:19:52]req_shift_opened done [10:19:52]requested_item shift.open_date is exist - process it [10:19:52]req_shift_open_date [10:19:52]req_shift_open_date done [10:19:52]produce_requested_data done [10:19:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76603,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [10:19:52]process_action_free print_text [10:19:52]json_value_free [10:19:52]json_value_free done [10:19:52]process_json_proto returns [10:19:52]Send response to host [10:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76603,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [10:19:52]free response buf [10:19:52]execute_script done [10:19:52]execute_script returns [10:19:52]free content buf [10:19:52]Sock 9.Close socket [10:19:52]Sock 9.Thread stoped [10:19:56]OFD Sender: No OFD packet to send [10:19:57]accept exits with 7 [10:19:57]New connection [10:19:57]New thread 3067383140 created [10:19:57]Thread 3067526500 joined [10:19:57]Waiting for new connection... [10:19:57] Sock 7.Parse request [10:19:57]Sock 7.Check first char [10:19:57]Sock 7.First char is OK [10:19:57]request: POST /json_proto HTTP/1.0 [10:19:57]Method: POST [10:19:57]URL: /json_proto [10:19:57]Method is POST - this is cgi request [10:19:57]url: /json_proto [10:19:57]query_string will be loaded in cgi processing [10:19:57]execute_cgi json_proto POST (null) [10:19:57]execute_cgi path=json_proto method=POST [10:19:57]POST find Content-Length [10:19:57]Host: 172.17.39.195:8080 [10:19:57]Content-Length: 678 [10:19:57]Content-Type: application/json [10:19:57] [10:19:57]POST finish read [10:19:57]Found Content-Length = 678 [10:19:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1692925", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [10:19:57]execute_script... [10:19: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)1692925", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [10:19:57]POST & json_proto [10:19:57]process_json_proto [10:19:57]json parsed OK: [10:19:57]protocol is kg_v1.0 [10:19:57]action value=close_receipt [10:19:57]process_action close_receipt [10:19:57]cmd_close_receipt [10:19:57]MH_GetDate [10:19:57]Write to MH i2c: F0 00 00 3D 00 2C [10:19:57]Write i2c OK [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: F0 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: F0 09 00 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: F0 09 00 3D 00 00 4E 02 74 66 99 81 91 64 6E [10:19:57]GetLastDocTimeStamp 1718878414 [10:19:57]current date 1718878798 [10:19:57]FM_GetShiftState [10:19:57]SAM_PROTO_GetShiftState [10:19:57]wFMCommunicate request_size=4 [10:19:57]MH_SAM_APDU [10:19:57]CAPDU: 80 13 01 00 [10:19:57]Write to MH i2c: E2 08 00 3E 00 80 13 01 00 00 00 00 00 BB [10:19:57]Write i2c OK [10:19:57]MH_I2C_Read... [10:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:57]Read from MH i2c: E2 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 0E 00 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 0E 00 3E 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 97 [10:19:57]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:19:57]wFMCommunicate OK [10:19:57]SAM_PROTO_GetShiftState done [10:19:57]FM_GetShiftState done [10:19:57]opened in 1718843774 [10:19:57]opened+sec_in_day 1718930174 [10:19:57]quantity*price = 35059 [10:19:57]sum+1 = 35060 [10:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 45 20.06.2024 10:19 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76604 ФПД: 203981621832304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101958&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76604&fm=203981621832304&tin=02508201610067®Number=0000000000095696&sum=35000 [10:19:58]StoreToDocumentArchive [10:19:58]shift 393 fd 76604 [10:19:58]save to /storage/0393/doc_00076604 [10:19:58]save last doc name /storage/0393/doc_00076604 to /storage/kkm_last_doc_name [10:19:58]save OK [10:19:58]Clear old archive folders... [10:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:58]tlvbuf is 011EACE0 [10:19:58]SAM_PROTO_ClearQueue [10:19:58]wFMCommunicate request_size=4 [10:19:58]MH_SAM_APDU [10:19:58]CAPDU: 80 09 00 00 [10:19:58]Write to MH i2c: E2 08 00 4B 00 80 09 00 00 00 00 00 00 BD [10:19:58]Write i2c OK [10:19:58]MH_I2C_Read... [10:19:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:58]Read from MH i2c: E2 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 4B 00 00 90 00 BF [10:19:58]RAPDU: 90 00 [10:19:58]wFMCommunicate OK [10:19:58]SAM_PROTO_ClearQueue done [10:19:58]KKMCreateOFDPacket [10:19:58]OFDProtocolAddRootSTLVToBuf [10:19:58]FM_MakeSignedData [10:19:58]FM_MakeSignedData [10:19:58]SAM_PROTO_SignData [10:19:58]wFMCommunicate request_size=4 [10:19:58]MH_SAM_APDU [10:19:58]CAPDU: 80 0D 01 02 [10:19:58]Write to MH i2c: E2 08 00 4C 00 80 0D 01 02 00 00 00 00 C5 [10:19:58]Write i2c OK [10:19:58]MH_I2C_Read... [10:19:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:58]Read from MH i2c: E2 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 4C 00 00 90 00 C0 [10:19:58]RAPDU: 90 00 [10:19:58]wFMCommunicate OK [10:19:58]wFMCommunicate request_size=255 [10:19:58]MH_SAM_APDU [10:19: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4E 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2B 01 00 35 04 06 00 B9 [10:19:58]Write to MH i2c: E2 02 01 4D 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4E 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2B 01 00 35 04 06 00 B9 00 00 60 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 4D 00 00 90 00 C1 [10:19:59]RAPDU: 90 00 [10:19:59]wFMCommunicate OK [10:19:59]wFMCommunicate request_size=10 [10:19:59]MH_SAM_APDU [10:19:59]CAPDU: 80 0D 02 02 05 85 2C 1C 2A 70 [10:19:59]Write to MH i2c: E2 0D 00 4E 00 80 0D 02 02 05 00 85 2C 1C 2A 70 00 00 39 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 4E 00 00 90 00 C2 [10:19:59]RAPDU: 90 00 [10:19:59]wFMCommunicate OK [10:19:59]wFMCommunicate request_size=4 [10:19:59]MH_SAM_APDU [10:19:59]CAPDU: 80 0D 03 02 [10:19:59]Write to MH i2c: E2 08 00 4F 00 80 0D 03 02 00 00 00 00 CA [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 0B 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 0B 00 4F 00 00 0D 3F DD 6A 0E 13 5E 2C 90 00 09 [10:19:59]RAPDU: 0D 3F DD 6A 0E 13 5E 2C 90 00 [10:19:59]wFMCommunicate OK [10:19:59]SAM_PROTO_SignData done [10:19:59]FM_MakeSignedData done [10:19:59]CreateOFDProtocolMessage [10:19:59]wFMCommunicate request_size=4 [10:19:59]MH_SAM_APDU [10:19:59]CAPDU: 80 11 00 00 [10:19:59]Write to MH i2c: E2 08 00 50 00 80 11 00 00 00 00 00 00 CA [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 17 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 17 00 50 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1A [10:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:19:59]wFMCommunicate OK [10:19:59]CreateOFDProtocolMessage done [10:19:59]OFDSenderStorePacket 76604 [10:19:59]StoreOFDPacket docnum=76604 [10:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F0 B1 07 01 86 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4E 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2B 01 00 35 04 06 00 B9 85 2C 1C 2A 70 0D 3F DD 6A 0E 13 5E 2C [10:19:59]CheckFolder [10:19:59]dirname=/storage/ofd_packets [10:19:59]CheckFolder done [10:19:59]ProducePacketName [10:19:59]name=ofd_packets/00076604 [10:19:59]NVStorageSaveData ofd_packets/00076604 [10:19:59]File name is /storage/ofd_packets/00076604 [10:19:59]Write 301 bytes [10:19:59]NVStorageSaveData done [10:19:59]OFDSenderStorePacket done [10:19:59]KKMCreateOFDPacket done [10:19:59]NVStorageSaveData kkm_last_timestamp [10:19:59]File name is /storage/kkm_last_timestamp [10:19:59]Write 4 bytes [10:19:59]NVStorageSaveData done [10:19:59]ExternCall_PrintAddStr [10:19:59]wPrintStart [10:19:59]Write to MH i2c: 01 00 00 51 00 51 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 FF 0F 66 [10:19:59]RasterBufferAndPrint [10:19:59]line Счет N : (1)1692925 [10:19:59]line ИНН: 02508201610067 [10:19:59]line Контрольно-Кассовый Чек [10:19:59]line ПРОДАЖА [10:19:59]line ТРК (МРК, ГНК) : 53 [10:19:59]line Товар: 2710124130 [10:19:59]line Аи-92-К-5 [10:19:59]line 5.280 * 66.40 [10:19:59]line = 350.59 [10:19:59]line НДС 12% НСП 1% [10:19:59]line > о реализуемом товаре [10:19:59]line ОКРУГЛЕНИЕ: -0.59 [10:19:59]line ИТОГО: 350.00 [10:19:59]line Внесено: 350.00 [10:19:59]line СДАЧА: 0.00 [10:19:59]line НСП 1% : 3.10 [10:19:59]line НДС 12% : 37.23 [10:19:59]line Наличными: 350.00 [10:19:59]line Безнал.: 0.00 [10:19:59]line Место: АЗС № 144 "Партнер Нефть" [10:19:59]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [10:19:59]line СНО: Общий режим [10:19:59]line Чек 45 20.06.2024 10:19 [10:19:59]line Смена: 393 ФФД: 1.0 [10:19:59]line ЗНМ: 0300000170 [10:19:59]line РНМ: 0000000000095696 [10:19:59]line Версия ККМ: 001 [10:19:59]line ФМ: 0000000000875009 [10:19:59]line ФД: 76604 [10:19:59]line ФПД: 203981621832304 [10:19:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101958&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76604&fm=203981621832304&tin=02508201610067®Number=0000000000095696&sum=35000 [10:19:59]OFD Sender: Processing packet 76604 [packets to send 351, broken 350] [10:19:59]ProducePacketName [10:19:59]name=ofd_packets/00076604 [10:19:59]OFD Sender: To server: pG, [10:19:59]CommunicateWithHost lk.salyk.kg:30040 [10:19:59]ConnectInit lk.salyk.kg [10:19:59]written 0, free lines is 4095 [10:19:59]Connected sock=9 [10:19:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F0 B1 07 01 86 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4E 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2B 01 00 35 04 06 00 B9 85 2C 1C 2A 70 0D 3F DD 6A 0E 13 5E 2C [10:19:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 8A C2 47 00 C0 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2B 01 00 F4 03 04 00 EF A8 73 66 B6 04 01 00 00 B2 83 35 DE CA 84 9A 67 [10:19:59]CommunicateWithHost err = 0 [10:19:59]CheckOFDResponse [10:19:59]1017 (14) - 77093643461234 [10:19:59]1041 (16) - 0000000000875009 [10:19:59]1040 (4) - 76604 [10:19:59]1012 (4) - 20.06.2024 03:58 [10:19:59]1206 (1) - 0 [10:19:59]OFD Sender: Remove packet 76604 [10:19:59]ProducePacketName [10:19:59]name=ofd_packets/00076604 [10:19:59]NVStorageDeleteData [10:19:59]Write to MH i2c: 01 00 00 7C 00 7C [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 E6 0C 75 [10:19:59]RasterBufferAndPrint [10:19:59]line [10:19:59]line [10:19:59]line [10:19:59]line [10:19:59]line [10:19:59]written 0, free lines is 3317 [10:19:59]MH_Cut [10:19:59]Write to MH i2c: D1 01 00 83 00 01 55 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: D1 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: D1 01 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: D1 01 00 83 00 00 54 [10:19:59]Write to MH i2c: 01 00 00 84 00 84 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:20:00]OFD Sender: No OFD packet to send [10:20:00]*** Cut start [10:20:00]*** Partial cut [10:20:00]*** CUTSNS_PIN = 1 [10:20:00]*** CUTSNS_PIN = 0 [10:20:00]*** Brake cut motor [10:20:01]Read from MH i2c: 01 [10:20:01]MH_I2C_Read... [10:20:01]*** Stop cut motor [10:20:01]*** Cut end [10:20:01]Read from MH i2c: 01 07 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: 01 07 00 84 00 00 00 00 00 00 FF 0F 99 [10:20:01]process_action close_receipt done [10:20:01]requested_data is exist [10:20:01]produce_requested_data [10:20:01]requested_item fm.sn is exist - process it [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 11 00 00 [10:20:01]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 17 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 4F [10:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:20:01]wFMCommunicate OK [10:20:01]requested_item fd.num is exist - process it [10:20:01]SAM_PROTO_GetFieldsCounters [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 13 00 00 [10:20:01]Write to MH i2c: E2 08 00 86 00 80 13 00 00 00 00 00 00 02 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 62 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 62 00 86 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [10:20:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_GetFieldsCounters done [10:20:01]requested_item shift.num is exist - process it [10:20:01]requested_item shift.opened is exist - process it [10:20:01]req_shift_opened [10:20:01]FM_GetShiftState [10:20:01]SAM_PROTO_GetShiftState [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 13 01 00 [10:20:01]Write to MH i2c: E2 08 00 87 00 80 13 01 00 00 00 00 00 04 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 87 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E0 [10:20:01]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_GetShiftState done [10:20:01]FM_GetShiftState done [10:20:01]req_shift_opened done [10:20:01]requested_item shift.open_date is exist - process it [10:20:01]req_shift_open_date [10:20:01]req_shift_open_date done [10:20:01]produce_requested_data done [10:20:01]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76604,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [10:20:01]process_action_free close_receipt [10:20:01]json_value_free [10:20:01]json_value_free done [10:20:01]process_json_proto returns [10:20:01]Send response to host [10:20:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76604,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [10:20:01]free response buf [10:20:01]execute_script done [10:20:01]execute_script returns [10:20:01]free content buf [10:20:01]Sock 7.Close socket [10:20:01]Sock 7.Thread stoped [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:22]accept exits with 10 [10:21:22]New connection [10:21:22]New thread 3067526500 created [10:21:22]Thread 3067383140 joined [10:21:22]Waiting for new connection... [10:21:22] Sock 10.Parse request [10:21:22]Sock 10.Check first char [10:21:22]Sock 10.First char is OK [10:21:22]request: POST /json_proto HTTP/1.0 [10:21:22]Method: POST [10:21:22]URL: /json_proto [10:21:22]Method is POST - this is cgi request [10:21:22]url: /json_proto [10:21:22]query_string will be loaded in cgi processing [10:21:22]execute_cgi json_proto POST (null) [10:21:22]execute_cgi path=json_proto method=POST [10:21:22]POST find Content-Length [10:21:22]Host: 172.17.39.195:8080 [10:21:22]Content-Length: 678 [10:21:22]Content-Type: application/json [10:21:22] [10:21:22]POST finish read [10:21:22]Found Content-Length = 678 [10:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1692927", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:22]execute_script... [10:21: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)1692927", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:22]POST & json_proto [10:21:22]process_json_proto [10:21:22]json parsed OK: [10:21:22]protocol is kg_v1.0 [10:21:22]action value=close_receipt [10:21:22]process_action close_receipt [10:21:22]cmd_close_receipt [10:21:22]MH_GetDate [10:21:22]Write to MH i2c: F0 00 00 88 00 77 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: F0 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: F0 09 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: F0 09 00 88 00 00 A3 02 74 66 99 81 91 64 0E [10:21:22]GetLastDocTimeStamp 1718878798 [10:21:22]current date 1718878883 [10:21:22]FM_GetShiftState [10:21:22]SAM_PROTO_GetShiftState [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 13 01 00 [10:21:22]Write to MH i2c: E2 08 00 89 00 80 13 01 00 00 00 00 00 06 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0E 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0E 00 89 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E2 [10:21:22]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:21:22]wFMCommunicate OK [10:21:22]SAM_PROTO_GetShiftState done [10:21:22]FM_GetShiftState done [10:21:22]opened in 1718843774 [10:21:22]opened+sec_in_day 1718930174 [10:21:22]quantity*price = 50065 [10:21:22]sum+1 = 50067 [10:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 46 20.06.2024 10:21 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76605 ФПД: 226031755774586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102123&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76605&fm=226031755774586&tin=02508201610067®Number=0000000000095696&sum=50000 [10:21:23]StoreToDocumentArchive [10:21:23]shift 393 fd 76605 [10:21:23]save to /storage/0393/doc_00076605 [10:21:23]save last doc name /storage/0393/doc_00076605 to /storage/kkm_last_doc_name [10:21:23]save OK [10:21:23]Clear old archive folders... [10:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:23]tlvbuf is 011EA8A0 [10:21:23]SAM_PROTO_ClearQueue [10:21:23]wFMCommunicate request_size=4 [10:21:23]MH_SAM_APDU [10:21:23]CAPDU: 80 09 00 00 [10:21:23]Write to MH i2c: E2 08 00 96 00 80 09 00 00 00 00 00 00 08 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:23]Read from MH i2c: E2 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 96 00 00 90 00 0A [10:21:23]RAPDU: 90 00 [10:21:23]wFMCommunicate OK [10:21:23]SAM_PROTO_ClearQueue done [10:21:23]KKMCreateOFDPacket [10:21:23]OFDProtocolAddRootSTLVToBuf [10:21:23]FM_MakeSignedData [10:21:23]FM_MakeSignedData [10:21:23]SAM_PROTO_SignData [10:21:23]wFMCommunicate request_size=4 [10:21:23]MH_SAM_APDU [10:21:23]CAPDU: 80 0D 01 02 [10:21:23]Write to MH i2c: E2 08 00 97 00 80 0D 01 02 00 00 00 00 10 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:23]Read from MH i2c: E2 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 97 00 00 90 00 0B [10:21:23]RAPDU: 90 00 [10:21:23]wFMCommunicate OK [10:21:23]wFMCommunicate request_size=255 [10:21:23]MH_SAM_APDU [10:21: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A3 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2B 01 00 35 04 06 00 CD [10:21:23]Write to MH i2c: E2 02 01 98 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A3 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2B 01 00 35 04 06 00 CD 00 00 38 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:23]Read from MH i2c: E2 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 98 00 00 90 00 0C [10:21:23]RAPDU: 90 00 [10:21:23]wFMCommunicate OK [10:21:23]wFMCommunicate request_size=10 [10:21:23]MH_SAM_APDU [10:21:23]CAPDU: 80 0D 02 02 05 93 1E 82 CA 7A [10:21:23]Write to MH i2c: E2 0D 00 99 00 80 0D 02 02 05 00 93 1E 82 CA 7A 00 00 94 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:23]Read from MH i2c: E2 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 03 00 99 00 00 90 00 0D [10:21:23]RAPDU: 90 00 [10:21:23]wFMCommunicate OK [10:21:23]wFMCommunicate request_size=4 [10:21:23]MH_SAM_APDU [10:21:23]CAPDU: 80 0D 03 02 [10:21:23]Write to MH i2c: E2 08 00 9A 00 80 0D 03 02 00 00 00 00 15 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:23]Read from MH i2c: E2 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 0B 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: E2 0B 00 9A 00 00 EB B5 A6 5B 83 44 66 A5 90 00 89 [10:21:23]RAPDU: EB B5 A6 5B 83 44 66 A5 90 00 [10:21:23]wFMCommunicate OK [10:21:23]SAM_PROTO_SignData done [10:21:23]FM_MakeSignedData done [10:21:23]CreateOFDProtocolMessage [10:21:23]wFMCommunicate request_size=4 [10:21:23]MH_SAM_APDU [10:21:23]CAPDU: 80 11 00 00 [10:21:23]Write to MH i2c: E2 08 00 9B 00 80 11 00 00 00 00 00 00 15 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:24]Read from MH i2c: E2 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 17 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 17 00 9B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 65 [10:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:21:24]wFMCommunicate OK [10:21:24]CreateOFDProtocolMessage done [10:21:24]OFDSenderStorePacket 76605 [10:21:24]StoreOFDPacket docnum=76605 [10:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 BB 48 07 01 D6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A3 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2B 01 00 35 04 06 00 CD 93 1E 82 CA 7A EB B5 A6 5B 83 44 66 A5 [10:21:24]CheckFolder [10:21:24]dirname=/storage/ofd_packets [10:21:24]CheckFolder done [10:21:24]ProducePacketName [10:21:24]name=ofd_packets/00076605 [10:21:24]NVStorageSaveData ofd_packets/00076605 [10:21:24]File name is /storage/ofd_packets/00076605 [10:21:24]Write 301 bytes [10:21:24]NVStorageSaveData done [10:21:24]OFDSenderStorePacket done [10:21:24]KKMCreateOFDPacket done [10:21:24]NVStorageSaveData kkm_last_timestamp [10:21:24]File name is /storage/kkm_last_timestamp [10:21:24]Write 4 bytes [10:21:24]NVStorageSaveData done [10:21:24]ExternCall_PrintAddStr [10:21:24]wPrintStart [10:21:24]Write to MH i2c: 01 00 00 9C 00 9C [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 07 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 07 00 9C 00 00 00 00 00 00 FF 0F B1 [10:21:24]RasterBufferAndPrint [10:21:24]line Счет N : (1)1692927 [10:21:24]line ИНН: 02508201610067 [10:21:24]line Контрольно-Кассовый Чек [10:21:24]line ПРОДАЖА [10:21:24]line ТРК (МРК, ГНК) : 53 [10:21:24]line Товар: 2710124130 [10:21:24]line Аи-92-К-5 [10:21:24]line 7.540 * 66.40 [10:21:24]line = 500.66 [10:21:24]line НДС 12% НСП 1% [10:21:24]line > о реализуемом товаре [10:21:24]line ОКРУГЛЕНИЕ: -0.66 [10:21:24]line ИТОГО: 500.00 [10:21:24]line Внесено: 500.00 [10:21:24]line СДАЧА: 0.00 [10:21:24]line НСП 1% : 4.43 [10:21:24]line НДС 12% : 53.17 [10:21:24]line Наличными: 500.00 [10:21:24]line Безнал.: 0.00 [10:21:24]line Место: АЗС № 144 "Партнер Нефть" [10:21:24]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [10:21:24]line СНО: Общий режим [10:21:24]line Чек 46 20.06.2024 10:21 [10:21:24]line Смена: 393 ФФД: 1.0 [10:21:24]line ЗНМ: 0300000170 [10:21:24]line РНМ: 0000000000095696 [10:21:24]line Версия ККМ: 001 [10:21:24]line ФМ: 0000000000875009 [10:21:24]line ФД: 76605 [10:21:24]line ФПД: 226031755774586 [10:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102123&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76605&fm=226031755774586&tin=02508201610067®Number=0000000000095696&sum=50000 [10:21:24]OFD Sender: Processing packet 76605 [packets to send 351, broken 350] [10:21:24]ProducePacketName [10:21:24]name=ofd_packets/00076605 [10:21:24]OFD Sender: To server: pG, [10:21:24]CommunicateWithHost lk.salyk.kg:30040 [10:21:24]ConnectInit lk.salyk.kg [10:21:24]written 0, free lines is 4095 [10:21:24]Connected sock=9 [10:21:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 BB 48 07 01 D6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A3 02 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2B 01 00 35 04 06 00 CD 93 1E 82 CA 7A EB B5 A6 5B 83 44 66 A5 [10:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C8 4F 47 00 58 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2B 01 00 F4 03 04 00 44 A9 73 66 B6 04 01 00 00 36 BE 96 17 4B 2A DC 4D [10:21:24]CommunicateWithHost err = 0 [10:21:24]CheckOFDResponse [10:21:24]1017 (14) - 77093643461234 [10:21:24]1041 (16) - 0000000000875009 [10:21:24]1040 (4) - 76605 [10:21:24]1012 (4) - 20.06.2024 04:00 [10:21:24]1206 (1) - 0 [10:21:24]OFD Sender: Remove packet 76605 [10:21:24]ProducePacketName [10:21:24]name=ofd_packets/00076605 [10:21:24]NVStorageDeleteData [10:21:24]Write to MH i2c: 01 00 00 C7 00 C7 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 07 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 E0 0C BA [10:21:24]RasterBufferAndPrint [10:21:24]line [10:21:24]line [10:21:24]line [10:21:24]line [10:21:24]line [10:21:24]written 0, free lines is 3302 [10:21:24]MH_Cut [10:21:24]Write to MH i2c: D1 01 00 CE 00 01 A0 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: D1 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: D1 01 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: D1 01 00 CE 00 00 9F [10:21:24]Write to MH i2c: 01 00 00 CF 00 CF [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:25]OFD Sender: No OFD packet to send [10:21:25]*** Cut start [10:21:25]*** Partial cut [10:21:25]*** CUTSNS_PIN = 1 [10:21:25]*** CUTSNS_PIN = 0 [10:21:25]*** Brake cut motor [10:21:26]Read from MH i2c: 01 [10:21:26]MH_I2C_Read... [10:21:26]*** Stop cut motor [10:21:26]Read from MH i2c: 01 *** Cut end [10:21:26]07 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [10:21:26]process_action close_receipt done [10:21:26]requested_data is exist [10:21:26]produce_requested_data [10:21:26]requested_item fm.sn is exist - process it [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 11 00 00 [10:21:26]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 17 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9A [10:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:21:26]wFMCommunicate OK [10:21:26]requested_item fd.num is exist - process it [10:21:26]SAM_PROTO_GetFieldsCounters [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 13 00 00 [10:21:26]Write to MH i2c: E2 08 00 D1 00 80 13 00 00 00 00 00 00 4D [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 62 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 62 00 D1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [10:21:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:26]wFMCommunicate OK [10:21:26]SAM_PROTO_GetFieldsCounters done [10:21:26]requested_item shift.num is exist - process it [10:21:26]requested_item shift.opened is exist - process it [10:21:26]req_shift_opened [10:21:26]FM_GetShiftState [10:21:26]SAM_PROTO_GetShiftState [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 13 01 00 [10:21:26]Write to MH i2c: E2 08 00 D2 00 80 13 01 00 00 00 00 00 4F [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 0E 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 0E 00 D2 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 2B [10:21:26]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [10:21:26]wFMCommunicate OK [10:21:26]SAM_PROTO_GetShiftState done [10:21:26]FM_GetShiftState done [10:21:26]req_shift_opened done [10:21:26]requested_item shift.open_date is exist - process it [10:21:26]req_shift_open_date [10:21:26]req_shift_open_date done [10:21:26]produce_requested_data done [10:21:26]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76605,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [10:21:26]process_action_free close_receipt [10:21:26]json_value_free [10:21:26]json_value_free done [10:21:26]process_json_proto returns [10:21:26]Send response to host [10:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76605,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [10:21:26]free response buf [10:21:26]execute_script done [10:21:26]execute_script returns [10:21:26]free content buf [10:21:26]Sock 10.Close socket [10:21:26]Sock 10.Thread stoped [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]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:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]accept exits with 7 [11:13:06]New connection [11:13:06]New thread 3067383140 created [11:13:06]Thread 3067526500 joined [11:13:06]Waiting for new connection... [11:13:06] Sock 7.Parse request [11:13:06]Sock 7.Check first char [11:13:06]Sock 7.First char is OK [11:13:06]request: POST /json_proto HTTP/1.0 [11:13:06]Method: POST [11:13:06]URL: /json_proto [11:13:06]Method is POST - this is cgi request [11:13:06]url: /json_proto [11:13:06]query_string will be loaded in cgi processing [11:13:06]execute_cgi json_proto POST (null) [11:13:06]execute_cgi path=json_proto method=POST [11:13:06]POST find Content-Length [11:13:06]Host: 172.17.39.195:8080 [11:13:06]Content-Length: 609 [11:13:06]Content-Type: application/json [11:13:06] [11:13:06]POST finish read [11:13:06]Found Content-Length = 609 [11:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220749", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:06]execute_script... [11:13: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 : (3)220749", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:06]POST & json_proto [11:13:06]process_json_proto [11:13:06]json parsed OK: [11:13:06]protocol is kg_v1.0 [11:13:06]action value=close_receipt [11:13:06]process_action close_receipt [11:13:06]cmd_close_receipt [11:13:06]MH_GetDate [11:13:06]Write to MH i2c: F0 00 00 D3 00 C2 [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: F0 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: F0 09 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: F0 09 00 D3 00 00 C3 0E 74 66 99 81 91 64 85 [11:13:06]GetLastDocTimeStamp 1718878883 [11:13:06]current date 1718881987 [11:13:06]FM_GetShiftState [11:13:06]SAM_PROTO_GetShiftState [11:13:06]wFMCommunicate request_size=4 [11:13:06]MH_SAM_APDU [11:13:06]CAPDU: 80 13 01 00 [11:13:06]Write to MH i2c: E2 08 00 D4 00 80 13 01 00 00 00 00 00 51 [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:06]Read from MH i2c: E2 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 0E 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: E2 0E 00 D4 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 2D [11:13:06]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:13:06]wFMCommunicate OK [11:13:06]SAM_PROTO_GetShiftState done [11:13:06]FM_GetShiftState done [11:13:06]opened in 1718843774 [11:13:06]opened+sec_in_day 1718930174 [11:13:06]quantity*price = 13000 [11:13:06]sum+1 = 13001 [11:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 47 20.06.2024 11:13 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76606 ФПД: 266517485944799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111307&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76606&fm=266517485944799&tin=02508201610067®Number=0000000000095696&sum=13000 0 [11:13:07]StoreToDocumentArchive [11:13:07]shift 393 fd 76606 [11:13:07]save to /storage/0393/doc_00076606 [11:13:07]save last doc name /storage/0393/doc_00076606 to /storage/kkm_last_doc_name [11:13:07]save OK [11:13:07]Clear old archive folders... [11:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=261 [11:13:07]tlvbuf is 011FBA00 [11:13:07]SAM_PROTO_ClearQueue [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 09 00 00 [11:13:07]Write to MH i2c: E2 08 00 E1 00 80 09 00 00 00 00 00 00 53 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 E1 00 00 90 00 55 [11:13:07]RAPDU: 90 00 [11:13:07]wFMCommunicate OK [11:13:07]SAM_PROTO_ClearQueue done [11:13:07]KKMCreateOFDPacket [11:13:07]OFDProtocolAddRootSTLVToBuf [11:13:07]FM_MakeSignedData [11:13:07]FM_MakeSignedData [11:13:07]SAM_PROTO_SignData [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 0D 01 02 [11:13:07]Write to MH i2c: E2 08 00 E2 00 80 0D 01 02 00 00 00 00 5B [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 E2 00 00 90 00 56 [11:13:07]RAPDU: 90 00 [11:13:07]wFMCommunicate OK [11:13:07]wFMCommunicate request_size=255 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C3 0E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 [11:13:07]Write to MH i2c: E2 02 01 E3 00 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C3 0E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 00 6E [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 E3 00 00 90 00 57 [11:13:07]RAPDU: 90 00 [11:13:07]wFMCommunicate OK [11:13:07]wFMCommunicate request_size=20 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 0D 02 02 0F 00 3E 2B 01 00 35 04 06 00 F2 65 70 13 7F DF [11:13:07]Write to MH i2c: E2 17 00 E4 00 80 0D 02 02 0F 00 00 3E 2B 01 00 35 04 06 00 F2 65 70 13 7F DF 00 00 5D [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 03 00 E4 00 00 90 00 58 [11:13:07]RAPDU: 90 00 [11:13:07]wFMCommunicate OK [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 0D 03 02 [11:13:07]Write to MH i2c: E2 08 00 E5 00 80 0D 03 02 00 00 00 00 60 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0B 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0B 00 E5 00 00 62 D3 74 1B 14 90 94 ED 90 00 4A [11:13:07]RAPDU: 62 D3 74 1B 14 90 94 ED 90 00 [11:13:07]wFMCommunicate OK [11:13:07]SAM_PROTO_SignData done [11:13:07]FM_MakeSignedData done [11:13:07]CreateOFDProtocolMessage [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 11 00 00 [11:13:07]Write to MH i2c: E2 08 00 E6 00 80 11 00 00 00 00 00 00 60 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 17 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 17 00 E6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B0 [11:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:13:07]wFMCommunicate OK [11:13:07]CreateOFDProtocolMessage done [11:13:07]OFDSenderStorePacket 76606 [11:13:07]StoreOFDPacket docnum=76606 [11:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 19 01 00 00 9C AD 11 01 1C F7 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C3 0E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2B 01 00 35 04 06 00 F2 65 70 13 7F DF 62 D3 74 1B 14 90 94 ED [11:13:07]CheckFolder [11:13:07]dirname=/storage/ofd_packets [11:13:07]CheckFolder done [11:13:07]ProducePacketName [11:13:07]name=ofd_packets/00076606 [11:13:07]NVStorageSaveData ofd_packets/00076606 [11:13:07]File name is /storage/ofd_packets/00076606 [11:13:07]Write 311 bytes [11:13:07]NVStorageSaveData done [11:13:07]OFDSenderStorePacket done [11:13:07]KKMCreateOFDPacket done [11:13:07]NVStorageSaveData kkm_last_timestamp [11:13:07]File name is /storage/kkm_last_timestamp [11:13:07]Write 4 bytes [11:13:07]NVStorageSaveData done [11:13:07]ExternCall_PrintAddStr [11:13:07]wPrintStart [11:13:07]Write to MH i2c: 01 00 00 E7 00 E7 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: 01 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: 01 07 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 FF 0F FC [11:13:07]RasterBufferAndPrint [11:13:07]line Счет N : (3)220749 [11:13:07]line ИНН: 02508201610067 [11:13:07]line Контрольно-Кассовый Чек [11:13:07]line ПРОДАЖА [11:13:07]line Товар: 48741156 [11:13:07]line Сигареты LD Blue [11:13:07]line 1.000 * 130.00 [11:13:07]line = 130.00 [11:13:07]line НДС 12% НСП 1% [11:13:07]line > о реализуемом товаре [11:13:07]line ИТОГО: 130.00 [11:13:07]line НСП 1% : 1.15 [11:13:07]line НДС 12% : 13.80 [11:13:07]line Наличными: 130.00 [11:13:07]line Безнал.: 0.00 [11:13:07]line Место: АЗС № 144 "Партнер Нефть" [11:13:07]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:13:07]line СНО: Общий режим [11:13:07]line Чек 47 20.06.2024 11:13 [11:13:07]line Смена: 393 ФФД: 1.0 [11:13:07]line ЗНМ: 0300000170 [11:13:07]line РНМ: 0000000000095696 [11:13:07]line Версия ККМ: 001 [11:13:07]line ФМ: 0000000000875009 [11:13:07]line ФД: 76606 [11:13:07]line ФПД: 266517485944799 [11:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111307&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76606&fm=266517485944799&tin=02508201610067®Number=0000000000095696&sum=13000 [11:13:08]line 0 [11:13:08]OFD Sender: Processing packet 76606 [packets to send 351, broken 350] [11:13:08]ProducePacketName [11:13:08]name=ofd_packets/00076606 [11:13:08]OFD Sender: To server: pG, [11:13:08]CommunicateWithHost lk.salyk.kg:30040 [11:13:08]ConnectInit lk.salyk.kg [11:13:08]written 0, free lines is 4095 [11:13:08]Connected sock=11 [11:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 19 01 00 00 9C AD 11 01 1C F7 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C3 0E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2B 01 00 35 04 06 00 F2 65 70 13 7F DF 62 D3 74 1B 14 90 94 ED [11:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 8E 18 47 00 6E 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2B 01 00 F4 03 04 00 64 B5 73 66 B6 04 01 00 00 D2 CD 8F E4 FC BD F8 3D [11:13:08]CommunicateWithHost err = 0 [11:13:08]CheckOFDResponse [11:13:08]1017 (14) - 77093643461234 [11:13:08]1041 (16) - 0000000000875009 [11:13:08]1040 (4) - 76606 [11:13:08]1012 (4) - 20.06.2024 04:51 [11:13:08]1206 (1) - 0 [11:13:08]OFD Sender: Remove packet 76606 [11:13:08]ProducePacketName [11:13:08]name=ofd_packets/00076606 [11:13:08]NVStorageDeleteData [11:13:08]Write to MH i2c: 01 00 00 0F 01 10 [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: 01 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: 01 07 00 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 05 0D 29 [11:13:08]RasterBufferAndPrint [11:13:08]line [11:13:08]line [11:13:08]line [11:13:08]line [11:13:08]line [11:13:08]written 0, free lines is 3340 [11:13:08]MH_Cut [11:13:08]Write to MH i2c: D1 01 00 16 01 01 E9 [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: D1 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: D1 01 00 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: D1 01 00 16 01 00 E8 [11:13:08]Write to MH i2c: 01 00 00 17 01 18 [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:09]OFD Sender: No OFD packet to send [11:13:09]*** Cut start [11:13:09]*** Partial cut [11:13:09]*** CUTSNS_PIN = 1 [11:13:09]*** CUTSNS_PIN = 0 [11:13:09]*** Brake cut motor [11:13:10]Read from MH i2c: 01 [11:13:10]MH_I2C_Read... [11:13:10]*** Stop cut motor [11:13:10]*** Cut end [11:13:10]Read from MH i2c: 01 07 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FF 0F 2D [11:13:10]process_action close_receipt done [11:13:10]requested_data is exist [11:13:10]produce_requested_data [11:13:10]requested_item fm.sn is exist - process it [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 11 00 00 [11:13:10]Write to MH i2c: E2 08 00 18 01 80 11 00 00 00 00 00 00 93 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 17 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 17 00 18 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E3 [11:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:13:10]wFMCommunicate OK [11:13:10]requested_item fd.num is exist - process it [11:13:10]SAM_PROTO_GetFieldsCounters [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 13 00 00 [11:13:10]Write to MH i2c: E2 08 00 19 01 80 13 00 00 00 00 00 00 96 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 62 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 62 00 19 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [11:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_GetFieldsCounters done [11:13:10]requested_item shift.num is exist - process it [11:13:10]requested_item shift.opened is exist - process it [11:13:10]req_shift_opened [11:13:10]FM_GetShiftState [11:13:10]SAM_PROTO_GetShiftState [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 13 01 00 [11:13:10]Write to MH i2c: E2 08 00 1A 01 80 13 01 00 00 00 00 00 98 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0E 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0E 00 1A 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 74 [11:13:10]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_GetShiftState done [11:13:10]FM_GetShiftState done [11:13:10]req_shift_opened done [11:13:10]requested_item shift.open_date is exist - process it [11:13:10]req_shift_open_date [11:13:10]req_shift_open_date done [11:13:10]produce_requested_data done [11:13:10]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76606,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [11:13:10]process_action_free close_receipt [11:13:10]json_value_free [11:13:10]json_value_free done [11:13:10]process_json_proto returns [11:13:10]Send response to host [11:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76606,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [11:13:10]free response buf [11:13:10]execute_script done [11:13:10]execute_script returns [11:13:10]free content buf [11:13:10]Sock 7.Close socket [11:13:10]Sock 7.Thread stoped [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:43]accept exits with 9 [11:17:43]New connection [11:17:43]New thread 3067526500 created [11:17:43]Thread 3067383140 joined [11:17:43]Waiting for new connection... [11:17:43] Sock 9.Parse request [11:17:43]Sock 9.Check first char [11:17:43]Sock 9.First char is OK [11:17:43]request: POST /json_proto HTTP/1.0 [11:17:43]Method: POST [11:17:43]URL: /json_proto [11:17:43]Method is POST - this is cgi request [11:17:43]url: /json_proto [11:17:43]query_string will be loaded in cgi processing [11:17:43]execute_cgi json_proto POST (null) [11:17:43]execute_cgi path=json_proto method=POST [11:17:43]POST find Content-Length [11:17:43]Host: 172.17.39.195:8080 [11:17:43]Content-Length: 747 [11:17:43]Content-Type: application/json [11:17:43] [11:17:43]POST finish read [11:17:43]Found Content-Length = 747 [11:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220750", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:43]execute_script... [11:17: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 : (3)220750", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:43]POST & json_proto [11:17:43]process_json_proto [11:17:43]json parsed OK: [11:17:43]protocol is kg_v1.0 [11:17:43]action value=close_receipt [11:17:43]process_action close_receipt [11:17:43]cmd_close_receipt [11:17:43]MH_GetDate [11:17:43]Write to MH i2c: F0 00 00 1B 01 0B [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: F0 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: F0 09 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: F0 09 00 1B 01 00 D8 0F 74 66 99 81 91 64 E4 [11:17:43]GetLastDocTimeStamp 1718881987 [11:17:43]current date 1718882264 [11:17:43]FM_GetShiftState [11:17:43]SAM_PROTO_GetShiftState [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 13 01 00 [11:17:43]Write to MH i2c: E2 08 00 1C 01 80 13 01 00 00 00 00 00 9A [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0E 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0E 00 1C 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 76 [11:17:43]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_GetShiftState done [11:17:43]FM_GetShiftState done [11:17:43]opened in 1718843774 [11:17:43]opened+sec_in_day 1718930174 [11:17:43]quantity*price = 50200 [11:17:43]sum+1 = 50201 [11:17:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607015232592 Вафли Яшкино с вареной сгущенкой 200г 1.000 * 81.00 = 81.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 231.00 НСП 1% : 2.05 НДС 12% : 24.53 Наличными: 231.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 49 20.06.2024 11:37 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76608 ФПД: 264391953865126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113747&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76608&fm=264391953865126&tin=02508201610067®Number=0000000000095696&sum=23100 0 [11:37:48]StoreToDocumentArchive [11:37:48]shift 393 fd 76608 [11:37:48]save to /storage/0393/doc_00076608 [11:37:48]save last doc name /storage/0393/doc_00076608 to /storage/kkm_last_doc_name [11:37:48]save OK [11:37:48]Clear old archive folders... [11:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=412 [11:37:48]tlvbuf is 01F9E4B0 [11:37:48]SAM_PROTO_ClearQueue [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 09 00 00 [11:37:48]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:37:48]RAPDU: 90 00 [11:37:48]wFMCommunicate OK [11:37:48]SAM_PROTO_ClearQueue done [11:37:48]KKMCreateOFDPacket [11:37:48]OFDProtocolAddRootSTLVToBuf [11:37:48]FM_MakeSignedData [11:37:48]FM_MakeSignedData [11:37:48]SAM_PROTO_SignData [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 0D 01 02 [11:37:48]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:37:48]RAPDU: 90 00 [11:37:48]wFMCommunicate OK [11:37:48]wFMCommunicate request_size=255 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [11:37:49]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 BD [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 03 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:37:49]RAPDU: 90 00 [11:37:49]wFMCommunicate OK [11:37:49]wFMCommunicate request_size=171 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8B 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2B 01 00 35 04 06 00 F0 76 8C 7D D9 A6 [11:37:49]Write to MH i2c: E2 AE 00 2E 00 80 0D 02 02 A6 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8B 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2B 01 00 35 04 06 00 F0 76 8C 7D D9 A6 00 00 63 [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 03 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:37:49]RAPDU: 90 00 [11:37:49]wFMCommunicate OK [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 0D 03 02 [11:37:49]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 0B 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 0B 00 2F 00 00 29 BD 7C 04 3E 5A 9F 58 90 00 A0 [11:37:49]RAPDU: 29 BD 7C 04 3E 5A 9F 58 90 00 [11:37:49]wFMCommunicate OK [11:37:49]SAM_PROTO_SignData done [11:37:49]FM_MakeSignedData done [11:37:49]CreateOFDProtocolMessage [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 11 00 00 [11:37:49]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 17 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FA [11:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:37:49]wFMCommunicate OK [11:37:49]CreateOFDProtocolMessage done [11:37:49]OFDSenderStorePacket 76608 [11:37:49]StoreOFDPacket docnum=76608 [11:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 B0 01 00 00 F9 15 A8 01 70 20 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8B 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2B 01 00 35 04 06 00 F0 76 8C 7D D9 A6 29 BD 7C 04 3E 5A 9F 58 [11:37:49]CheckFolder [11:37:49]dirname=/storage/ofd_packets [11:37:49]CheckFolder done [11:37:49]ProducePacketName [11:37:49]name=ofd_packets/00076608 [11:37:49]NVStorageSaveData ofd_packets/00076608 [11:37:49]File name is /storage/ofd_packets/00076608 [11:37:49]Write 462 bytes [11:37:49]NVStorageSaveData done [11:37:49]OFDSenderStorePacket done [11:37:49]KKMCreateOFDPacket done [11:37:49]NVStorageSaveData kkm_last_timestamp [11:37:49]File name is /storage/kkm_last_timestamp [11:37:49]Write 4 bytes [11:37:49]NVStorageSaveData done [11:37:49]ExternCall_PrintAddStr [11:37:49]wPrintStart [11:37:49]Write to MH i2c: 01 00 00 31 00 31 [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 07 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:37:49]RasterBufferAndPrint [11:37:49]line Счет N : (3)220751 [11:37:49]line ИНН: 02508201610067 [11:37:49]line Контрольно-Кассовый Чек [11:37:49]line ПРОДАЖА [11:37:49]line Товар: 46230614 [11:37:49]line Сигареты Richmond Red Edition [11:37:49]line 1.000 * 150.00 [11:37:49]line = 150.00 [11:37:49]line НДС 12% НСП 1% [11:37:49]line > о реализуемом товаре [11:37:49]line Товар: 4607015232592 [11:37:49]line Вафли Яшкино с вареной сгущенкой 200г [11:37:49]line 1.000 * 81.00 [11:37:49]line = 81.00 [11:37:49]line НДС 12% НСП 1% [11:37:49]line > о реализуемом товаре [11:37:49]line ИТОГО: 231.00 [11:37:49]line НСП 1% : 2.05 [11:37:49]line НДС 12% : 24.53 [11:37:49]line Наличными: 231.00 [11:37:49]line Безнал.: 0.00 [11:37:49]line Место: АЗС № 144 "Партнер Нефть" [11:37:49]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:37:49]line СНО: Общий режим [11:37:49]line Чек 49 20.06.2024 11:37 [11:37:49]line Смена: 393 ФФД: 1.0 [11:37:49]line ЗНМ: 0300000170 [11:37:49]line РНМ: 0000000000095696 [11:37:49]line Версия ККМ: 001 [11:37:49]line ФМ: 0000000000875009 [11:37:49]line ФД: 76608 [11:37:49]line ФПД: 264391953865126 [11:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113747&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76608&fm=264391953865126&tin=02508201610067®Number=0000000000095696&sum=23100 [11:37:49]line 0 [11:37:49]written 0, free lines is 4095 [11:37:49]OFD Sender: Processing packet 76608 [packets to send 351, broken 350] [11:37:49]ProducePacketName [11:37:49]name=ofd_packets/00076608 [11:37:49]OFD Sender: To server: pG, [11:37:49]CommunicateWithHost lk.salyk.kg:30040 [11:37:49]ConnectInit lk.salyk.kg [11:37:50]Connected sock=10 [11:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 B0 01 00 00 F9 15 A8 01 70 20 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 8B 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2B 01 00 35 04 06 00 F0 76 8C 7D D9 A6 29 BD 7C 04 3E 5A 9F 58 [11:37:50]Write to MH i2c: 01 00 00 61 00 61 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 07 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 52 0C C6 [11:37:50]RasterBufferAndPrint [11:37:50]line [11:37:50]line [11:37:50]line [11:37:50]line [11:37:50]line [11:37:50]written 0, free lines is 3179 [11:37:50]MH_Cut [11:37:50]Write to MH i2c: D1 01 00 68 00 01 3A [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: D1 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: D1 01 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: D1 01 00 68 00 00 39 [11:37:50]Write to MH i2c: 01 00 00 69 00 69 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 8B 65 47 00 36 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2B 01 00 F4 03 04 00 2D BB 73 66 B6 04 01 00 00 4B 16 13 D1 51 F6 6F 5F [11:37:50]CommunicateWithHost err = 0 [11:37:50]CheckOFDResponse [11:37:50]1017 (14) - 77093643461234 [11:37:50]1041 (16) - 0000000000875009 [11:37:50]1040 (4) - 76608 [11:37:50]1012 (4) - 20.06.2024 05:16 [11:37:50]1206 (1) - 0 [11:37:50]OFD Sender: Remove packet 76608 [11:37:50]ProducePacketName [11:37:50]name=ofd_packets/00076608 [11:37:50]NVStorageDeleteData [11:37:51]OFD Sender: No OFD packet to send [11:37:51]*** Cut start [11:37:51]*** Partial cut [11:37:51]*** CUTSNS_PIN = 1 [11:37:51]*** CUTSNS_PIN = 0 [11:37:51]*** Brake cut motor [11:37:51]Read from MH i2c: 01 [11:37:51]MH_I2C_Read... [11:37:51]*** Stop cut motor [11:37:51]*** Cut end [11:37:51]Read from MH i2c: 01 07 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 FF 0F 7E [11:37:51]process_action close_receipt done [11:37:51]requested_data is exist [11:37:51]produce_requested_data [11:37:51]requested_item fm.sn is exist - process it [11:37:51]wFMCommunicate request_size=4 [11:37:51]MH_SAM_APDU [11:37:51]CAPDU: 80 11 00 00 [11:37:51]Write to MH i2c: E2 08 00 6A 00 80 11 00 00 00 00 00 00 E4 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:51]Read from MH i2c: E2 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 17 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 17 00 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 34 [11:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:37:51]wFMCommunicate OK [11:37:51]requested_item fd.num is exist - process it [11:37:51]SAM_PROTO_GetFieldsCounters [11:37:51]wFMCommunicate request_size=4 [11:37:51]MH_SAM_APDU [11:37:51]CAPDU: 80 13 00 00 [11:37:51]Write to MH i2c: E2 08 00 6B 00 80 13 00 00 00 00 00 00 E7 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 62 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 62 00 6B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 40 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 40 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:52]wFMCommunicate OK [11:37:52]SAM_PROTO_GetFieldsCounters done [11:37:52]requested_item shift.num is exist - process it [11:37:52]requested_item shift.opened is exist - process it [11:37:52]req_shift_opened [11:37:52]FM_GetShiftState [11:37:52]SAM_PROTO_GetShiftState [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 13 01 00 [11:37:52]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 0E 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C5 [11:37:52]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:37:52]wFMCommunicate OK [11:37:52]SAM_PROTO_GetShiftState done [11:37:52]FM_GetShiftState done [11:37:52]req_shift_opened done [11:37:52]requested_item shift.open_date is exist - process it [11:37:52]req_shift_open_date [11:37:52]req_shift_open_date done [11:37:52]produce_requested_data done [11:37:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76608,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [11:37:52]process_action_free close_receipt [11:37:52]json_value_free [11:37:52]json_value_free done [11:37:52]process_json_proto returns [11:37:52]Send response to host [11:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76608,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [11:37:52]free response buf [11:37:52]execute_script done [11:37:52]execute_script returns [11:37:52]free content buf [11:37:52]Sock 9.Close socket [11:37:52]Sock 9.Thread stoped [11:37:53]accept exits with 7 [11:37:53]New connection [11:37:53]New thread 3067059556 created [11:37:53]Thread 3067202916 joined [11:37:53]Waiting for new connection... [11:37:53] Sock 7.Parse request [11:37:53]Sock 7.Check first char [11:37:53]Sock 7.First char is OK [11:37:53]request: POST /json_proto HTTP/1.0 [11:37:53]Method: POST [11:37:53]URL: /json_proto [11:37:53]Method is POST - this is cgi request [11:37:53]url: /json_proto [11:37:53]query_string will be loaded in cgi processing [11:37:53]execute_cgi json_proto POST (null) [11:37:53]execute_cgi path=json_proto method=POST [11:37:53]POST find Content-Length [11:37:53]Host: 172.17.39.195:8080 [11:37:53]Content-Length: 914 [11:37:53]Content-Type: application/json [11:37:53] [11:37:53]POST finish read [11:37:53]Found Content-Length = 914 [11:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220752", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 253.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:53]execute_script... [11:37: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 : (3)220752", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 253.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:53]POST & json_proto [11:37:53]process_json_proto [11:37:53]json parsed OK: [11:37:53]protocol is kg_v1.0 [11:37:53]action value=close_receipt [11:37:53]process_action close_receipt [11:37:53]cmd_close_receipt [11:37:53]MH_GetDate [11:37:53]Write to MH i2c: F0 00 00 6D 00 5C [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: F0 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: F0 09 00 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: F0 09 00 6D 00 00 91 14 74 66 99 81 91 64 F3 [11:37:53]GetLastDocTimeStamp 1718883467 [11:37:53]current date 1718883473 [11:37:53]FM_GetShiftState [11:37:53]SAM_PROTO_GetShiftState [11:37:53]wFMCommunicate request_size=4 [11:37:53]MH_SAM_APDU [11:37:53]CAPDU: 80 13 01 00 [11:37:53]Write to MH i2c: E2 08 00 6E 00 80 13 01 00 00 00 00 00 EB [11:37:53]Write i2c OK [11:37:53]MH_I2C_Read... [11:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:53]Read from MH i2c: E2 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: E2 0E 00 [11:37:53]MH_I2C_Read... [11:37:53]Read from MH i2c: E2 0E 00 6E 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C7 [11:37:53]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:37:53]wFMCommunicate OK [11:37:53]SAM_PROTO_GetShiftState done [11:37:53]FM_GetShiftState done [11:37:53]opened in 1718843774 [11:37:53]opened+sec_in_day 1718930174 [11:37:53]quantity*price = 14000 [11:37:53]sum+1 = 14001 [11:37:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 253.00 НСП 1% : 2.24 НДС 12% : 26.87 Наличными: 253.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 50 20.06.2024 11:37 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76609 ФПД: 74267174476146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113753&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76609&fm=74267174476146&tin=02508201610067®Number=0000000000095696&sum=25300 0 [11:37:55]StoreToDocumentArchive [11:37:55]shift 393 fd 76609 [11:37:55]save to /storage/0393/doc_00076609 [11:37:55]save last doc name /storage/0393/doc_00076609 to /storage/kkm_last_doc_name [11:37:55]save OK [11:37:55]Clear old archive folders... [11:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=381 [11:37:55]tlvbuf is 02000800 [11:37:55]SAM_PROTO_ClearQueue [11:37:55]wFMCommunicate request_size=4 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 09 00 00 [11:37:55]Write to MH i2c: E2 08 00 7B 00 80 09 00 00 00 00 00 00 ED [11:37:55]Write i2c OK [11:37:55]MH_I2C_Read... [11:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [11:37:55]RAPDU: 90 00 [11:37:55]wFMCommunicate OK [11:37:55]SAM_PROTO_ClearQueue done [11:37:55]KKMCreateOFDPacket [11:37:55]OFDProtocolAddRootSTLVToBuf [11:37:55]FM_MakeSignedData [11:37:55]FM_MakeSignedData [11:37:55]SAM_PROTO_SignData [11:37:55]wFMCommunicate request_size=4 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 0D 01 02 [11:37:55]Write to MH i2c: E2 08 00 7C 00 80 0D 01 02 00 00 00 00 F5 [11:37:55]Write i2c OK [11:37:55]MH_I2C_Read... [11:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [11:37:55]RAPDU: 90 00 [11:37:55]wFMCommunicate OK [11:37:55]wFMCommunicate request_size=255 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 [11:37:55]Write to MH i2c: E2 02 01 7D 00 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 17 [11:37:55]Write i2c OK [11:37:55]MH_I2C_Read... [11:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [11:37:55]RAPDU: 90 00 [11:37:55]wFMCommunicate OK [11:37:55]wFMCommunicate request_size=140 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 D4 62 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 91 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2B 01 00 35 04 06 00 43 8B AC 8D 99 72 [11:37:56]Write to MH i2c: E2 8F 00 7E 00 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 D4 62 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 91 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2B 01 00 35 04 06 00 43 8B AC 8D 99 72 00 00 B3 [11:37:56]OFD Sender: No OFD packet to send [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [11:37:56]RAPDU: 90 00 [11:37:56]wFMCommunicate OK [11:37:56]wFMCommunicate request_size=4 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 0D 03 02 [11:37:56]Write to MH i2c: E2 08 00 7F 00 80 0D 03 02 00 00 00 00 FA [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 0B 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 0B 00 7F 00 00 B5 60 9D C5 5A 61 9D AC 90 00 76 [11:37:56]RAPDU: B5 60 9D C5 5A 61 9D AC 90 00 [11:37:56]wFMCommunicate OK [11:37:56]SAM_PROTO_SignData done [11:37:56]FM_MakeSignedData done [11:37:56]CreateOFDProtocolMessage [11:37:56]wFMCommunicate request_size=4 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 11 00 00 [11:37:56]Write to MH i2c: E2 08 00 80 00 80 11 00 00 00 00 00 00 FA [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 80 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 4A [11:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:37:56]wFMCommunicate OK [11:37:56]CreateOFDProtocolMessage done [11:37:56]OFDSenderStorePacket 76609 [11:37:56]StoreOFDPacket docnum=76609 [11:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 91 01 00 00 03 C1 89 01 29 E8 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 D4 62 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 91 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2B 01 00 35 04 06 00 43 8B AC 8D 99 72 B5 60 9D C5 5A 61 9D AC [11:37:56]CheckFolder [11:37:56]dirname=/storage/ofd_packets [11:37:56]CheckFolder done [11:37:56]ProducePacketName [11:37:56]name=ofd_packets/00076609 [11:37:56]NVStorageSaveData ofd_packets/00076609 [11:37:56]File name is /storage/ofd_packets/00076609 [11:37:56]Write 431 bytes [11:37:56]NVStorageSaveData done [11:37:56]OFDSenderStorePacket done [11:37:56]KKMCreateOFDPacket done [11:37:56]NVStorageSaveData kkm_last_timestamp [11:37:56]File name is /storage/kkm_last_timestamp [11:37:56]Write 4 bytes [11:37:56]NVStorageSaveData done [11:37:56]ExternCall_PrintAddStr [11:37:56]wPrintStart [11:37:56]Write to MH i2c: 01 00 00 81 00 81 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 81 00 00 00 00 00 00 FF 0F 96 [11:37:56]RasterBufferAndPrint [11:37:56]line Счет N : (3)220752 [11:37:56]line ИНН: 02508201610067 [11:37:56]line Контрольно-Кассовый Чек [11:37:56]line ПРОДАЖА [11:37:56]line Товар: 4700002082931 [11:37:56]line Водка Хорошая 0,1л [11:37:56]line 2.000 * 70.00 [11:37:56]line = 140.00 [11:37:56]line НДС 12% НСП 1% [11:37:56]line > о реализуемом товаре [11:37:56]line Товар: 5449000054227 [11:37:56]line Напиток Кока-Кола 1л [11:37:56]line 1.000 * 113.00 [11:37:56]line = 113.00 [11:37:56]line НДС 12% НСП 1% [11:37:56]line > о реализуемом товаре [11:37:56]line ИТОГО: 253.00 [11:37:56]line НСП 1% : 2.24 [11:37:56]line НДС 12% : 26.87 [11:37:56]line Наличными: 253.00 [11:37:56]line Безнал.: 0.00 [11:37:56]line Место: АЗС № 144 "Партнер Нефть" [11:37:56]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:37:56]line СНО: Общий режим [11:37:56]line Чек 50 20.06.2024 11:37 [11:37:56]line Смена: 393 ФФД: 1.0 [11:37:56]line ЗНМ: 0300000170 [11:37:56]line РНМ: 0000000000095696 [11:37:56]line Версия ККМ: 001 [11:37:56]line ФМ: 0000000000875009 [11:37:56]line ФД: 76609 [11:37:56]line ФПД: 74267174476146 [11:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113753&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76609&fm=74267174476146&tin=02508201610067®Number=0000000000095696&sum=25300 [11:37:56]line 0 [11:37:56]written 0, free lines is 4095 [11:37:56]OFD Sender: Processing packet 76609 [packets to send 351, broken 350] [11:37:56]ProducePacketName [11:37:56]name=ofd_packets/00076609 [11:37:56]OFD Sender: To server: pG, [11:37:56]CommunicateWithHost lk.salyk.kg:30040 [11:37:56]ConnectInit lk.salyk.kg [11:37:56]Connected sock=10 [11:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 91 01 00 00 03 C1 89 01 29 E8 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0A 00 00 00 00 07 04 06 00 D4 62 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 91 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2B 01 00 35 04 06 00 43 8B AC 8D 99 72 B5 60 9D C5 5A 61 9D AC [11:37:56]Write to MH i2c: 01 00 00 AF 00 AF [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 [11:37:56]MH_I2C_Read... [11:37:57]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 B6 0C 78 [11:37:57]RasterBufferAndPrint [11:37:57]line [11:37:57]line [11:37:57]line [11:37:57]line [11:37:57]line [11:37:57]written 0, free lines is 3281 [11:37:57]MH_Cut [11:37:57]Write to MH i2c: D1 01 00 B6 00 01 88 [11:37:57]Write i2c OK [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: D1 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: D1 01 00 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: D1 01 00 B6 00 00 87 [11:37:57]Write to MH i2c: 01 00 00 B7 00 B7 [11:37:57]Write i2c OK [11:37:57]MH_I2C_Read... [11:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 44 47 47 00 B4 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2B 01 00 F4 03 04 00 34 BB 73 66 B6 04 01 00 00 59 31 C9 46 78 F0 C7 F6 [11:37:57]CommunicateWithHost err = 0 [11:37:57]CheckOFDResponse [11:37:57]1017 (14) - 77093643461234 [11:37:57]1041 (16) - 0000000000875009 [11:37:57]1040 (4) - 76609 [11:37:57]1012 (4) - 20.06.2024 05:16 [11:37:57]1206 (1) - 0 [11:37:57]OFD Sender: Remove packet 76609 [11:37:57]ProducePacketName [11:37:57]name=ofd_packets/00076609 [11:37:57]NVStorageDeleteData [11:37:57]*** Cut start [11:37:57]*** Partial cut [11:37:57]*** CUTSNS_PIN = 1 [11:37:57]OFD Sender: No OFD packet to send [11:37:57]*** CUTSNS_PIN = 0 [11:37:58]*** Brake cut motor [11:37:58]Read from MH i2c: *** Stop cut motor [11:37:58]01 *** Cut end [11:37:58] [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 FF 0F CC [11:37:58]process_action close_receipt done [11:37:58]requested_data is exist [11:37:58]produce_requested_data [11:37:58]requested_item fm.sn is exist - process it [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 11 00 00 [11:37:58]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 17 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 82 [11:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:37:58]wFMCommunicate OK [11:37:58]requested_item fd.num is exist - process it [11:37:58]SAM_PROTO_GetFieldsCounters [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 13 00 00 [11:37:58]Write to MH i2c: E2 08 00 B9 00 80 13 00 00 00 00 00 00 35 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 62 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 62 00 B9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 41 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 41 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_GetFieldsCounters done [11:37:58]requested_item shift.num is exist - process it [11:37:58]requested_item shift.opened is exist - process it [11:37:58]req_shift_opened [11:37:58]FM_GetShiftState [11:37:58]SAM_PROTO_GetShiftState [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 13 01 00 [11:37:58]Write to MH i2c: E2 08 00 BA 00 80 13 01 00 00 00 00 00 37 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0E 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0E 00 BA 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 13 [11:37:58]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_GetShiftState done [11:37:58]FM_GetShiftState done [11:37:58]req_shift_opened done [11:37:58]requested_item shift.open_date is exist - process it [11:37:58]req_shift_open_date [11:37:58]req_shift_open_date done [11:37:58]produce_requested_data done [11:37:58]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76609,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [11:37:58]process_action_free close_receipt [11:37:58]json_value_free [11:37:58]json_value_free done [11:37:58]process_json_proto returns [11:37:58]Send response to host [11:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76609,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [11:37:58]free response buf [11:37:58]execute_script done [11:37:58]execute_script returns [11:37:58]free content buf [11:37:58]Sock 7.Close socket [11:37:58]Sock 7.Thread stoped [11:38:00]accept exits with 9 [11:38:00]New connection [11:38:00]New thread 3067202916 created [11:38:00]Thread 3067059556 joined [11:38:00]Waiting for new connection... [11:38:00] Sock 9.Parse request [11:38:00]Sock 9.Check first char [11:38:00]Sock 9.First char is OK [11:38:00]request: POST /json_proto HTTP/1.0 [11:38:00]Method: POST [11:38:00]URL: /json_proto [11:38:00]Method is POST - this is cgi request [11:38:00]url: /json_proto [11:38:00]query_string will be loaded in cgi processing [11:38:00]execute_cgi json_proto POST (null) [11:38:00]execute_cgi path=json_proto method=POST [11:38:00]POST find Content-Length [11:38:00]Host: 172.17.39.195:8080 [11:38:00]Content-Length: 658 [11:38:00]Content-Type: application/json [11:38:00] [11:38:00]POST finish read [11:38:00]Found Content-Length = 658 [11:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220753", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:00]execute_script... [11:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220753", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:00]POST & json_proto [11:38:00]process_json_proto [11:38:00]json parsed OK: [11:38:00]protocol is kg_v1.0 [11:38:00]action value=close_receipt [11:38:00]process_action close_receipt [11:38:00]cmd_close_receipt [11:38:00]MH_GetDate [11:38:00]Write to MH i2c: F0 00 00 BB 00 AA [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: F0 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: F0 09 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: F0 09 00 BB 00 00 98 14 74 66 99 81 91 64 48 [11:38:00]GetLastDocTimeStamp 1718883473 [11:38:00]current date 1718883480 [11:38:00]FM_GetShiftState [11:38:00]SAM_PROTO_GetShiftState [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 13 01 00 [11:38:00]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 15 [11:38:00]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:38:00]wFMCommunicate OK [11:38:00]SAM_PROTO_GetShiftState done [11:38:00]FM_GetShiftState done [11:38:00]opened in 1718843774 [11:38:00]opened+sec_in_day 1718930174 [11:38:00]quantity*price = 20500 [11:38:00]sum+1 = 20501 [11:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 51 20.06.2024 11:38 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76610 ФПД: 3041465229021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113800&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76610&fm=3041465229021&tin=02508201610067®Number=0000000000095696&sum=20500 0 [11:38:01]StoreToDocumentArchive [11:38:01]shift 393 fd 76610 [11:38:01]save to /storage/0393/doc_00076610 [11:38:01]save last doc name /storage/0393/doc_00076610 to /storage/kkm_last_doc_name [11:38:01]save OK [11:38:01]Clear old archive folders... [11:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:38:01]tlvbuf is 01FB9E80 [11:38:01]SAM_PROTO_ClearQueue [11:38:01]wFMCommunicate request_size=4 [11:38:01]MH_SAM_APDU [11:38:01]CAPDU: 80 09 00 00 [11:38:01]Write to MH i2c: E2 08 00 C9 00 80 09 00 00 00 00 00 00 3B [11:38:01]Write i2c OK [11:38:01]MH_I2C_Read... [11:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:01]Read from MH i2c: E2 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 03 00 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [11:38:01]RAPDU: 90 00 [11:38:01]wFMCommunicate OK [11:38:01]SAM_PROTO_ClearQueue done [11:38:01]KKMCreateOFDPacket [11:38:01]OFDProtocolAddRootSTLVToBuf [11:38:01]FM_MakeSignedData [11:38:01]FM_MakeSignedData [11:38:01]SAM_PROTO_SignData [11:38:01]wFMCommunicate request_size=4 [11:38:01]MH_SAM_APDU [11:38:01]CAPDU: 80 0D 01 02 [11:38:01]Write to MH i2c: E2 08 00 CA 00 80 0D 01 02 00 00 00 00 43 [11:38:01]Write i2c OK [11:38:01]MH_I2C_Read... [11:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:01]Read from MH i2c: E2 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 03 00 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [11:38:01]RAPDU: 90 00 [11:38:01]wFMCommunicate OK [11:38:01]wFMCommunicate request_size=255 [11:38:01]MH_SAM_APDU [11:38:01]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [11:38:02]Write to MH i2c: E2 02 01 CB 00 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 54 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [11:38:02]RAPDU: 90 00 [11:38:02]wFMCommunicate OK [11:38:02]wFMCommunicate request_size=37 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2B 01 00 35 04 06 00 02 C4 25 74 5E DD [11:38:02]Write to MH i2c: E2 28 00 CC 00 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2B 01 00 35 04 06 00 02 C4 25 74 5E DD 00 00 A2 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [11:38:02]RAPDU: 90 00 [11:38:02]wFMCommunicate OK [11:38:02]wFMCommunicate request_size=4 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 0D 03 02 [11:38:02]Write to MH i2c: E2 08 00 CD 00 80 0D 03 02 00 00 00 00 48 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 0B 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 0B 00 CD 00 00 D6 E0 64 53 86 FD 24 6C 90 00 C9 [11:38:02]RAPDU: D6 E0 64 53 86 FD 24 6C 90 00 [11:38:02]wFMCommunicate OK [11:38:02]SAM_PROTO_SignData done [11:38:02]FM_MakeSignedData done [11:38:02]CreateOFDProtocolMessage [11:38:02]wFMCommunicate request_size=4 [11:38:02]MH_SAM_APDU [11:38:02]CAPDU: 80 11 00 00 [11:38:02]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:02]Read from MH i2c: E2 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 17 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 98 [11:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:38:02]wFMCommunicate OK [11:38:02]CreateOFDProtocolMessage done [11:38:02]OFDSenderStorePacket 76610 [11:38:02]StoreOFDPacket docnum=76610 [11:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 57 C6 22 01 FD 60 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2B 01 00 35 04 06 00 02 C4 25 74 5E DD D6 E0 64 53 86 FD 24 6C [11:38:02]CheckFolder [11:38:02]dirname=/storage/ofd_packets [11:38:02]CheckFolder done [11:38:02]ProducePacketName [11:38:02]name=ofd_packets/00076610 [11:38:02]NVStorageSaveData ofd_packets/00076610 [11:38:02]File name is /storage/ofd_packets/00076610 [11:38:02]Write 328 bytes [11:38:02]NVStorageSaveData done [11:38:02]OFDSenderStorePacket done [11:38:02]KKMCreateOFDPacket done [11:38:02]NVStorageSaveData kkm_last_timestamp [11:38:02]File name is /storage/kkm_last_timestamp [11:38:02]Write 4 bytes [11:38:02]NVStorageSaveData done [11:38:02]ExternCall_PrintAddStr [11:38:02]wPrintStart [11:38:02]Write to MH i2c: 01 00 00 CF 00 CF [11:38:02]Write i2c OK [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: 01 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: 01 07 00 [11:38:02]MH_I2C_Read... [11:38:02]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [11:38:02]RasterBufferAndPrint [11:38:02]line Счет N : (3)220753 [11:38:02]line ИНН: 02508201610067 [11:38:02]line Контрольно-Кассовый Чек [11:38:02]line ПРОДАЖА [11:38:02]line Товар: 5449000000286 [11:38:02]line Напиток Кока-Кола 2л [11:38:02]line 1.000 * 205.00 [11:38:02]line = 205.00 [11:38:02]line НДС 12% НСП 1% [11:38:02]line > о реализуемом товаре [11:38:02]line ИТОГО: 205.00 [11:38:02]line НСП 1% : 1.81 [11:38:02]line НДС 12% : 21.77 [11:38:02]line Наличными: 205.00 [11:38:02]line Безнал.: 0.00 [11:38:02]line Место: АЗС № 144 "Партнер Нефть" [11:38:02]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:38:02]line СНО: Общий режим [11:38:02]line Чек 51 20.06.2024 11:38 [11:38:02]line Смена: 393 ФФД: 1.0 [11:38:02]line ЗНМ: 0300000170 [11:38:02]line РНМ: 0000000000095696 [11:38:02]line Версия ККМ: 001 [11:38:02]line ФМ: 0000000000875009 [11:38:02]line ФД: 76610 [11:38:02]line ФПД: 3041465229021 [11:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113800&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76610&fm=3041465229021&tin=02508201610067®Number=0000000000095696&sum=20500 [11:38:02]line 0 [11:38:02]written 0, free lines is 4095 [11:38:02]OFD Sender: Processing packet 76610 [packets to send 351, broken 350] [11:38:02]ProducePacketName [11:38:02]name=ofd_packets/00076610 [11:38:02]OFD Sender: To server: pG, [11:38:02]CommunicateWithHost lk.salyk.kg:30040 [11:38:02]ConnectInit lk.salyk.kg [11:38:03]Connected sock=10 [11:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 57 C6 22 01 FD 60 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 98 14 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2B 01 00 35 04 06 00 02 C4 25 74 5E DD D6 E0 64 53 86 FD 24 6C [11:38:03]Write to MH i2c: 01 00 00 F7 00 F7 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: 01 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: 01 07 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 08 0D 13 [11:38:03]RasterBufferAndPrint [11:38:03]line [11:38:03]line [11:38:03]line [11:38:03]line [11:38:03]line [11:38:03]written 0, free lines is 3366 [11:38:03]MH_Cut [11:38:03]Write to MH i2c: D1 01 00 FE 00 01 D0 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: D1 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: D1 01 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: D1 01 00 FE 00 00 CF [11:38:03]Write to MH i2c: 01 00 00 FF 00 FF [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 6E FE 47 00 8F C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2B 01 00 F4 03 04 00 3A BB 73 66 B6 04 01 00 00 12 7C B8 92 DA 33 41 26 [11:38:03]CommunicateWithHost err = 0 [11:38:03]CheckOFDResponse [11:38:03]1017 (14) - 77093643461234 [11:38:03]1041 (16) - 0000000000875009 [11:38:03]1040 (4) - 76610 [11:38:03]1012 (4) - 20.06.2024 05:16 [11:38:03]1206 (1) - 0 [11:38:03]OFD Sender: Remove packet 76610 [11:38:03]ProducePacketName [11:38:03]name=ofd_packets/00076610 [11:38:03]NVStorageDeleteData [11:38:03]*** Cut start [11:38:03]*** Partial cut [11:38:03]*** CUTSNS_PIN = 1 [11:38:04]OFD Sender: No OFD packet to send [11:38:04]*** CUTSNS_PIN = 0 [11:38:04]*** Brake cut motor [11:38:04]Read from MH i2c: 01 [11:38:04]MH_I2C_Read... [11:38:04]*** Stop cut motor [11:38:04]*** Cut end [11:38:04]Read from MH i2c: 01 07 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FF 0F 14 [11:38:04]process_action close_receipt done [11:38:04]requested_data is exist [11:38:04]produce_requested_data [11:38:04]requested_item fm.sn is exist - process it [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 11 00 00 [11:38:04]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CB [11:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:38:04]wFMCommunicate OK [11:38:04]requested_item fd.num is exist - process it [11:38:04]SAM_PROTO_GetFieldsCounters [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 13 00 00 [11:38:04]Write to MH i2c: E2 08 00 01 01 80 13 00 00 00 00 00 00 7E [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 62 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 62 00 01 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:38:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_GetFieldsCounters done [11:38:04]requested_item shift.num is exist - process it [11:38:04]requested_item shift.opened is exist - process it [11:38:04]req_shift_opened [11:38:04]FM_GetShiftState [11:38:05]SAM_PROTO_GetShiftState [11:38:05]wFMCommunicate request_size=4 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 13 01 00 [11:38:05]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 0E 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5C [11:38:05]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:38:05]wFMCommunicate OK [11:38:05]SAM_PROTO_GetShiftState done [11:38:05]FM_GetShiftState done [11:38:05]req_shift_opened done [11:38:05]requested_item shift.open_date is exist - process it [11:38:05]req_shift_open_date [11:38:05]req_shift_open_date done [11:38:05]produce_requested_data done [11:38:05]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76610,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [11:38:05]process_action_free close_receipt [11:38:05]json_value_free [11:38:05]json_value_free done [11:38:05]process_json_proto returns [11:38:05]Send response to host [11:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76610,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [11:38:05]free response buf [11:38:05]execute_script done [11:38:05]execute_script returns [11:38:05]free content buf [11:38:05]Sock 9.Close socket [11:38:05]Sock 9.Thread stoped [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]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:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42: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: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 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 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: 31626446+1687257497=1718883943 [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]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 67 16 74 66 99 81 91 64 65 [11:45:43]Current date/time: 20.06.2024 11:45 [11:45:43]FM_Init [11:45:43]wFMConnect [11:45:43]MH_SAM_On [11:45:43]Write to MH i2c: E0 00 00 08 00 E7 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_init finished! [11:45:43]*** atr: [11:45:43]*** 0F 3B D5 18 FF 81 91 FE [11:45:43]*** 1F C3 80 73 C8 21 10 0A [11:45:43]*** 00 00 00 00 00 00 00 00 [11:45:43]*** 00 00 00 00 00 00 00 00 [11:45:43]*** 00 00 00 00 00 00 00 00 [11:45:43]*** 00 00 00 00 00 00 00 00 [11:45:43]*** 00 00 00 00 00 00 00 00 [11:45:43]*** 00 00 00 00 00 00 00 00 [11:45:43]Read from MH i2c: E0 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E0 10 00 [11:45:43]MH_I2C_Read... [11:45: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 [11:45:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:45:43]wFMCommunicate request_size=10 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:45:43]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 11 00 00 [11:45:43]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D4 [11:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:45:43]wFMCommunicate OK [11:45:43]Detected FM SN is 0000000000875009 [11:45:43]Stored FM SN is 0000000000875009 [11:45:43]wFMCommunicate request_size=9 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 16 00 00 04 FA 14 01 00 [11:45:43]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 14 01 00 00 00 A1 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]FM PIN OK [11:45:43]wFMCommunicate request_size=8 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 14 04 00 03 02 00 01 [11:45:43]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]wFMCommunicate request_size=13 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:45: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 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:45:43]RAPDU: 90 00 [11:45:43]wFMCommunicate OK [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 11 00 00 [11:45:43]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D8 [11:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:45:43]wFMCommunicate OK [11:45:43]DocumentArchiveInit [11:45:43]Start Httpd... [11:45:43]Httpd thread 3067235684 created [11:45:43]Write to MH i2c: 01 00 00 0F 00 0F [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:45:43]MH Int Process started [11:45:43]Allocated Socket 8 [11:45:43]Bind OK [11:45:43]Listen OK [11:45:43]httpd running on port 8080 [11:45:43]Waiting for new connection... [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]accept exits with 9 [11:45:53]New connection [11:45:53]New thread 3066948964 created [11:45:53]Waiting for new connection... [11:45:53] Sock 9.Parse request [11:45:53]Sock 9.Check first char [11:45:53]Sock 9.First char is OK [11:45:53]request: POST /json_proto HTTP/1.0 [11:45:53]Method: POST [11:45:53]URL: /json_proto [11:45:53]Method is POST - this is cgi request [11:45:53]url: /json_proto [11:45:53]query_string will be loaded in cgi processing [11:45:53]execute_cgi json_proto POST (null) [11:45:53]execute_cgi path=json_proto method=POST [11:45:53]POST find Content-Length [11:45:53]Host: 172.17.39.195:8080 [11:45:53]Content-Length: 215 [11:45:53]Content-Type: application/json [11:45:53] [11:45:53]POST finish read [11:45:53]Found Content-Length = 215 [11:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:53]execute_script... [11:45:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:53]POST & json_proto [11:45:53]process_json_proto [11:45:53]json parsed OK: [11:45:53]protocol is kg_v1.0 [11:45:53]action value=get_value [11:45:53]process_action get_value [11:45:53]cmd_get_value [11:45:53]process_action get_value done [11:45:53]requested_data is exist [11:45:53]produce_requested_data [11:45:53]requested_item kkm.sn is exist - process it [11:45:53]requested_item kkm.ver is exist - process it [11:45:53]requested_item fm.sn is exist - process it [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 11 00 00 [11:45:53]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DA [11:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:45:53]wFMCommunicate OK [11:45:53]requested_item fd.num is exist - process it [11:45:53]SAM_PROTO_GetFieldsCounters [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 13 00 00 [11:45:53]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]OFD Sender: No OFD packet to send [11:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 62 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [11:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_GetFieldsCounters done [11:45:54]requested_item shift.num is exist - process it [11:45:54]requested_item shift.opened is exist - process it [11:45:54]req_shift_opened [11:45:54]FM_GetShiftState [11:45:54]SAM_PROTO_GetShiftState [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 13 01 00 [11:45:54]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 6B [11:45:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_GetShiftState done [11:45:54]FM_GetShiftState done [11:45:54]req_shift_opened done [11:45:54]requested_item shift.open_date is exist - process it [11:45:54]req_shift_open_date [11:45:54]req_shift_open_date done [11:45:54]produce_requested_data done [11:45:54]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76610,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [11:45:54]process_action_free get_value [11:45:54]json_value_free [11:45:54]json_value_free done [11:45:54]process_json_proto returns [11:45:54]Send response to host [11:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76610,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [11:45:54]free response buf [11:45:54]execute_script done [11:45:54]execute_script returns [11:45:54]free content buf [11:45:54]Sock 9.Close socket [11:45:54]Sock 9.Thread stoped [11:45:54]accept exits with 10 [11:45:54]New connection [11:45:54]New thread 3066805604 created [11:45:54]Thread 3066948964 joined [11:45:54]Waiting for new connection... [11:45:54] Sock 10.Parse request [11:45:54]Sock 10.Check first char [11:45:54]Sock 10.First char is OK [11:45:54]request: POST /json_proto HTTP/1.0 [11:45:54]Method: POST [11:45:54]URL: /json_proto [11:45:54]Method is POST - this is cgi request [11:45:54]url: /json_proto [11:45:54]query_string will be loaded in cgi processing [11:45:54]execute_cgi json_proto POST (null) [11:45:54]execute_cgi path=json_proto method=POST [11:45:54]POST find Content-Length [11:45:54]Host: 172.17.39.195:8080 [11:45:54]Content-Length: 331 [11:45:54]Content-Type: application/json [11:45:54] [11:45:54]POST finish read [11:45:54]Found Content-Length = 331 [11:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:45:54]execute_script... [11:45:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:45:54]POST & json_proto [11:45:54]process_json_proto [11:45:54]json parsed OK: [11:45:54]protocol is kg_v1.0 [11:45:54]action value=get_value [11:45:54]process_action get_value [11:45:54]cmd_get_value [11:45:54]process_action get_value done [11:45:54]requested_data is exist [11:45:54]produce_requested_data [11:45:54]requested_item fm.sale.total is exist - process it [11:45:54]SAM_PROTO_GetFMData [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 13 03 00 [11:45:54]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 FD 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 30 28 01 00 69 04 A3 00 6F 04 04 00 F3 24 01 00 B1 04 05 00 4E F1 33 B0 01 70 04 05 00 44 5A 07 6D 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 46 AC E7 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 89 35 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 2F [11:45:54]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 30 28 01 00 69 04 A3 00 6F 04 04 00 F3 24 01 00 B1 04 05 00 4E F1 33 B0 01 70 04 05 00 44 5A 07 6D 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 46 AC E7 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 89 35 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 [11:45:54]wFMCommunicate OK [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 17 00 00 [11:45:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 FD 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 D2 [11:45:55]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 [11:45:55]wFMCommunicate OK [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 17 00 00 [11:45:55]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 FD 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 BC [11:45:55]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [11:45:55]wFMCommunicate OK [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 17 00 00 [11:45:55]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 FD 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [11:45:55]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:45:55]wFMCommunicate OK [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 17 00 00 [11:45:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:45:55]Read from MH i2c: E2 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 E3 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [11:45:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:45:55]wFMCommunicate OK [11:45:55]SAM_PROTO_GetFMData done [11:45:55]requested_item fm.sale_refund.total is exist - process it [11:45:55]requested_item fm.buy.total is exist - process it [11:45:55]requested_item shift.sale.total is exist - process it [11:45:55]SAM_PROTO_GetShiftData [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 13 02 00 [11:45:55]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 FD 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 33 00 00 00 69 04 9A 00 6F 04 04 00 33 00 00 00 B1 04 03 00 1D 68 15 70 04 03 00 C4 A4 14 72 04 02 00 59 C3 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 22 46 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 7D 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 05 [11:45:56]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 33 00 00 00 69 04 9A 00 6F 04 04 00 33 00 00 00 B1 04 03 00 1D 68 15 70 04 03 00 C4 A4 14 72 04 02 00 59 C3 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 22 46 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 7D 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [11:45:56]wFMCommunicate OK [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 17 00 00 [11:45:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 FD 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 AB [11:45:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:45:56]wFMCommunicate OK [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 17 00 00 [11:45:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 FD 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [11:45:56]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [11:45:56]wFMCommunicate OK [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 17 00 00 [11:45:56]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:57]Read from MH i2c: E2 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: E2 FD 00 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: E2 FD 00 1B 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 03 90 00 10 [11:45:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [11:45:57]wFMCommunicate OK [11:45:57]wFMCommunicate request_size=4 [11:45:57]MH_SAM_APDU [11:45:57]CAPDU: 80 17 00 00 [11:45:57]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:45:57]Write i2c OK [11:45:57]MH_I2C_Read... [11:45:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [11:45:57]Read from MH i2c: E2 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: E2 CA 00 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: E2 CA 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [11:45:57]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:45:57]wFMCommunicate OK [11:45:57]SAM_PROTO_GetShiftData done [11:45:57]requested_item shift.sale.total_cash is exist - process it [11:45:57]requested_item shift.sale_refund.total is exist - process it [11:45:57]requested_item shift.sale_refund.total_cash is exist - process it [11:45:57]requested_item shift.buy.total is exist - process it [11:45:57]requested_item shift.buy.total_cash is exist - process it [11:45:57]produce_requested_data done [11:45:57]produce_requested_data return {"fm.sale.total":72511614.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":14029.09,"shift.sale.total_cash":13529.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:45:57]process_action_free get_value [11:45:57]json_value_free [11:45:57]json_value_free done [11:45:57]process_json_proto returns [11:45:57]Send response to host [11:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72511614.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":14029.09,"shift.sale.total_cash":13529.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:45:57]free response buf [11:45:57]execute_script done [11:45:57]execute_script returns [11:45:57]free content buf [11:45:57]Sock 10.Close socket [11:45:57]Sock 10.Thread stoped [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:31]accept exits with 7 [11:46:31]New connection [11:46:31]New thread 3066948964 created [11:46:31]Thread 3066805604 joined [11:46:31]Waiting for new connection... [11:46:31] Sock 7.Parse request [11:46:31]Sock 7.Check first char [11:46:31]Sock 7.First char is OK [11:46:31]request: POST /json_proto HTTP/1.0 [11:46:31]Method: POST [11:46:31]URL: /json_proto [11:46:31]Method is POST - this is cgi request [11:46:31]url: /json_proto [11:46:31]query_string will be loaded in cgi processing [11:46:31]execute_cgi json_proto POST (null) [11:46:31]execute_cgi path=json_proto method=POST [11:46:31]POST find Content-Length [11:46:31]Host: 172.17.39.195:8080 [11:46:31]Content-Length: 215 [11:46:31]Content-Type: application/json [11:46:31] [11:46:31]POST finish read [11:46:31]Found Content-Length = 215 [11:46: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" ] } } [11:46:31]execute_script... [11:46: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" ] } } [11:46:31]POST & json_proto [11:46:31]process_json_proto [11:46:31]json parsed OK: [11:46:31]protocol is kg_v1.0 [11:46:31]action value=get_value [11:46:31]process_action get_value [11:46:31]cmd_get_value [11:46:31]process_action get_value done [11:46:31]requested_data is exist [11:46:31]produce_requested_data [11:46:31]requested_item kkm.sn is exist - process it [11:46:31]requested_item kkm.ver is exist - process it [11:46:31]requested_item fm.sn is exist - process it [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 11 00 00 [11:46:31]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 17 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E7 [11:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:46:31]wFMCommunicate OK [11:46:31]requested_item fd.num is exist - process it [11:46:31]SAM_PROTO_GetFieldsCounters [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 13 00 00 [11:46:31]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 62 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [11:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:31]wFMCommunicate OK [11:46:31]SAM_PROTO_GetFieldsCounters done [11:46:31]requested_item shift.num is exist - process it [11:46:31]requested_item shift.opened is exist - process it [11:46:31]req_shift_opened [11:46:31]FM_GetShiftState [11:46:31]SAM_PROTO_GetShiftState [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 13 01 00 [11:46:31]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 0E 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 78 [11:46:31]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:46:31]wFMCommunicate OK [11:46:31]SAM_PROTO_GetShiftState done [11:46:31]FM_GetShiftState done [11:46:31]req_shift_opened done [11:46:31]requested_item shift.open_date is exist - process it [11:46:31]req_shift_open_date [11:46:31]req_shift_open_date done [11:46:31]produce_requested_data done [11:46:31]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76610,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [11:46:31]process_action_free get_value [11:46:31]json_value_free [11:46:31]json_value_free done [11:46:31]process_json_proto returns [11:46:31]Send response to host [11:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76610,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [11:46:31]free response buf [11:46:31]execute_script done [11:46:31]execute_script returns [11:46:31]free content buf [11:46:31]Sock 7.Close socket [11:46:31]Sock 7.Thread stoped [11:46:31]accept exits with 9 [11:46:31]New connection [11:46:31]New thread 3066805604 created [11:46:31]Thread 3066948964 joined [11:46:31]Waiting for new connection... [11:46:31] Sock 9.Parse request [11:46:31]Sock 9.Check first char [11:46:31]Sock 9.First char is OK [11:46:31]request: POST /json_proto HTTP/1.0 [11:46:31]Method: POST [11:46:31]URL: /json_proto [11:46:31]Method is POST - this is cgi request [11:46:31]url: /json_proto [11:46:31]query_string will be loaded in cgi processing [11:46:31]execute_cgi json_proto POST (null) [11:46:31]execute_cgi path=json_proto method=POST [11:46:31]POST find Content-Length [11:46:31]Host: 172.17.39.195:8080 [11:46:31]Content-Length: 331 [11:46:31]Content-Type: application/json [11:46:31] [11:46:31]POST finish read [11:46:31]Found Content-Length = 331 [11:46: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" ] } } [11:46:31]execute_script... [11:46:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:46:32]POST & json_proto [11:46:32]process_json_proto [11:46:32]json parsed OK: [11:46:32]protocol is kg_v1.0 [11:46:32]action value=get_value [11:46:32]process_action get_value [11:46:32]cmd_get_value [11:46:32]process_action get_value done [11:46:32]requested_data is exist [11:46:32]produce_requested_data [11:46:32]requested_item fm.sale.total is exist - process it [11:46:32]SAM_PROTO_GetFMData [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 03 00 [11:46:32]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 FD 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 FD 00 20 00 00 C6 04 85 04 C2 04 6E 04 04 00 30 28 01 00 69 04 A3 00 6F 04 04 00 F3 24 01 00 B1 04 05 00 4E F1 33 B0 01 70 04 05 00 44 5A 07 6D 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 46 AC E7 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 89 35 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 3C [11:46:32]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 30 28 01 00 69 04 A3 00 6F 04 04 00 F3 24 01 00 B1 04 05 00 4E F1 33 B0 01 70 04 05 00 44 5A 07 6D 01 72 04 04 00 0A 97 2C 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 46 AC E7 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 89 35 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 [11:46:32]wFMCommunicate OK [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 17 00 00 [11:46:32]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 FD 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 DF [11:46:32]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 [11:46:32]wFMCommunicate OK [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 17 00 00 [11:46:32]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 FD 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 FD 00 22 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 C9 [11:46:33]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [11:46:33]wFMCommunicate OK [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 17 00 00 [11:46:33]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 FD 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 FD 00 23 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [11:46:33]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:46:33]wFMCommunicate OK [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 17 00 00 [11:46:33]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 E3 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 E3 00 24 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [11:46:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:46:33]wFMCommunicate OK [11:46:33]SAM_PROTO_GetFMData done [11:46:33]requested_item fm.sale_refund.total is exist - process it [11:46:33]requested_item fm.buy.total is exist - process it [11:46:33]requested_item shift.sale.total is exist - process it [11:46:33]SAM_PROTO_GetShiftData [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 13 02 00 [11:46:33]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:34]OFD Sender: No OFD packet to send [11:46:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 FD 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 FD 00 25 00 00 AD 04 AA 04 A9 04 6E 04 04 00 33 00 00 00 69 04 9A 00 6F 04 04 00 33 00 00 00 B1 04 03 00 1D 68 15 70 04 03 00 C4 A4 14 72 04 02 00 59 C3 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 22 46 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 7D 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 12 [11:46:34]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 33 00 00 00 69 04 9A 00 6F 04 04 00 33 00 00 00 B1 04 03 00 1D 68 15 70 04 03 00 C4 A4 14 72 04 02 00 59 C3 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 22 46 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 7D 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 17 00 00 [11:46:34]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 FD 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 FD 00 26 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 B8 [11:46:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 17 00 00 [11:46:34]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 FD 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 FD 00 27 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 6B [11:46:34]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 17 00 00 [11:46:34]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 FD 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 FD 00 28 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 03 90 00 1D [11:46:35]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [11:46:35]wFMCommunicate OK [11:46:35]wFMCommunicate request_size=4 [11:46:35]MH_SAM_APDU [11:46:35]CAPDU: 80 17 00 00 [11:46:35]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 CA 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 CA 00 29 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [11:46:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:46:35]wFMCommunicate OK [11:46:35]SAM_PROTO_GetShiftData done [11:46:35]requested_item shift.sale.total_cash is exist - process it [11:46:35]requested_item shift.sale_refund.total is exist - process it [11:46:35]requested_item shift.sale_refund.total_cash is exist - process it [11:46:35]requested_item shift.buy.total is exist - process it [11:46:35]requested_item shift.buy.total_cash is exist - process it [11:46:35]produce_requested_data done [11:46:35]produce_requested_data return {"fm.sale.total":72511614.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":14029.09,"shift.sale.total_cash":13529.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:46:35]process_action_free get_value [11:46:35]json_value_free [11:46:35]json_value_free done [11:46:35]process_json_proto returns [11:46:35]Send response to host [11:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72511614.22,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":14029.09,"shift.sale.total_cash":13529.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:46:35]free response buf [11:46:35]execute_script done [11:46:35]execute_script returns [11:46:35]free content buf [11:46:35]Sock 9.Close socket [11:46:35]Sock 9.Thread stoped [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:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:48]accept exits with 7 [11:54:48]New connection [11:54:48]New thread 3066948964 created [11:54:48]Thread 3066805604 joined [11:54:48]Waiting for new connection... [11:54:48] Sock 7.Parse request [11:54:48]Sock 7.Check first char [11:54:48]Sock 7.First char is OK [11:54:48]request: POST /json_proto HTTP/1.0 [11:54:48]Method: POST [11:54:48]URL: /json_proto [11:54:48]Method is POST - this is cgi request [11:54:48]url: /json_proto [11:54:48]query_string will be loaded in cgi processing [11:54:48]execute_cgi json_proto POST (null) [11:54:48]execute_cgi path=json_proto method=POST [11:54:48]POST find Content-Length [11:54:48]Host: 172.17.39.195:8080 [11:54:48]Content-Length: 613 [11:54:48]Content-Type: application/json [11:54:48] [11:54:48]POST finish read [11:54:48]Found Content-Length = 613 [11:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220754", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:48]execute_script... [11:54: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 : (3)220754", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:48]POST & json_proto [11:54:48]process_json_proto [11:54:48]json parsed OK: [11:54:48]protocol is kg_v1.0 [11:54:48]action value=close_receipt [11:54:48]process_action close_receipt [11:54:48]cmd_close_receipt [11:54:48]MH_GetDate [11:54:48]Write to MH i2c: F0 00 00 2A 00 19 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 09 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 09 00 2A 00 00 89 18 74 66 99 81 91 64 AC [11:54:48]GetLastDocTimeStamp 1718883480 [11:54:48]current date 1718884489 [11:54:48]FM_GetShiftState [11:54:48]SAM_PROTO_GetShiftState [11:54:48]wFMCommunicate request_size=4 [11:54:48]MH_SAM_APDU [11:54:48]CAPDU: 80 13 01 00 [11:54:48]Write to MH i2c: E2 08 00 2B 00 80 13 01 00 00 00 00 00 A8 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:48]Read from MH i2c: E2 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 0E 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 0E 00 2B 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 84 [11:54:48]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:54:48]wFMCommunicate OK [11:54:48]SAM_PROTO_GetShiftState done [11:54:48]FM_GetShiftState done [11:54:48]opened in 1718843774 [11:54:48]opened+sec_in_day 1718930174 [11:54:48]quantity*price = 8000 [11:54:48]sum+1 = 8001 [11:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 52 20.06.2024 11:54 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76611 ФПД: 32211231014093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115449&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76611&fm=32211231014093&tin=02508201610067®Number=0000000000095696&sum=8000 0 [11:54:49]StoreToDocumentArchive [11:54:49]shift 393 fd 76611 [11:54:49]save to /storage/0393/doc_00076611 [11:54:49]save last doc name /storage/0393/doc_00076611 to /storage/kkm_last_doc_name [11:54:49]save OK [11:54:49]Clear old archive folders... [11:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=268 [11:54:49]tlvbuf is 00E8F700 [11:54:49]SAM_PROTO_ClearQueue [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 09 00 00 [11:54:49]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [11:54:49]RAPDU: 90 00 [11:54:49]wFMCommunicate OK [11:54:49]SAM_PROTO_ClearQueue done [11:54:49]KKMCreateOFDPacket [11:54:49]OFDProtocolAddRootSTLVToBuf [11:54:49]FM_MakeSignedData [11:54:49]FM_MakeSignedData [11:54:49]SAM_PROTO_SignData [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 0D 01 02 [11:54:49]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [11:54:49]RAPDU: 90 00 [11:54:49]wFMCommunicate OK [11:54:49]wFMCommunicate request_size=255 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 89 18 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [11:54:49]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 89 18 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 08 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:50]OFD Sender: No OFD packet to send [11:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]wFMCommunicate request_size=27 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 43 2B 01 00 35 04 06 00 1D 4B C2 FB 7C CD [11:54:50]Write to MH i2c: E2 1E 00 3B 00 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 43 2B 01 00 35 04 06 00 1D 4B C2 FB 7C CD 00 00 E3 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 03 02 [11:54:50]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0B 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0B 00 3C 00 00 38 9C 86 AE D9 4B 9D 43 90 00 C4 [11:54:50]RAPDU: 38 9C 86 AE D9 4B 9D 43 90 00 [11:54:50]wFMCommunicate OK [11:54:50]SAM_PROTO_SignData done [11:54:50]FM_MakeSignedData done [11:54:50]CreateOFDProtocolMessage [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 11 00 00 [11:54:50]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 17 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 07 [11:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:54:50]wFMCommunicate OK [11:54:50]CreateOFDProtocolMessage done [11:54:50]OFDSenderStorePacket 76611 [11:54:50]StoreOFDPacket docnum=76611 [11:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 64 F3 18 01 4F 7F 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 89 18 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2B 01 00 35 04 06 00 1D 4B C2 FB 7C CD 38 9C 86 AE D9 4B 9D 43 [11:54:50]CheckFolder [11:54:50]dirname=/storage/ofd_packets [11:54:50]CheckFolder done [11:54:50]ProducePacketName [11:54:50]name=ofd_packets/00076611 [11:54:50]NVStorageSaveData ofd_packets/00076611 [11:54:50]File name is /storage/ofd_packets/00076611 [11:54:50]Write 318 bytes [11:54:50]NVStorageSaveData done [11:54:50]OFDSenderStorePacket done [11:54:50]KKMCreateOFDPacket done [11:54:50]NVStorageSaveData kkm_last_timestamp [11:54:50]File name is /storage/kkm_last_timestamp [11:54:50]Write 4 bytes [11:54:50]NVStorageSaveData done [11:54:50]ExternCall_PrintAddStr [11:54:50]wPrintStart [11:54:50]Write to MH i2c: 01 00 00 3E 00 3E [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [11:54:50]RasterBufferAndPrint [11:54:50]line Счет N : (3)220754 [11:54:50]line ИНН: 02508201610067 [11:54:50]line Контрольно-Кассовый Чек [11:54:50]line ПРОДАЖА [11:54:50]line Товар: 4870001570057 [11:54:50]line Напиток Pepsi 0,5л [11:54:50]line 1.000 * 80.00 [11:54:50]line = 80.00 [11:54:50]line НДС 12% НСП 1% [11:54:50]line > о реализуемом товаре [11:54:50]line ИТОГО: 80.00 [11:54:50]line НСП 1% : 0.71 [11:54:50]line НДС 12% : 8.50 [11:54:50]line Наличными: 80.00 [11:54:50]line Безнал.: 0.00 [11:54:50]line Место: АЗС № 144 "Партнер Нефть" [11:54:50]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:54:50]line СНО: Общий режим [11:54:50]line Чек 52 20.06.2024 11:54 [11:54:50]line Смена: 393 ФФД: 1.0 [11:54:50]line ЗНМ: 0300000170 [11:54:50]line РНМ: 0000000000095696 [11:54:50]line Версия ККМ: 001 [11:54:50]line ФМ: 0000000000875009 [11:54:50]line ФД: 76611 [11:54:50]line ФПД: 32211231014093 [11:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115449&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76611&fm=32211231014093&tin=02508201610067®Number=0000000000095696&sum=8000 [11:54:50]OFD Sender: Processing packet 76611 [packets to send 351, broken 350] [11:54:50]ProducePacketName [11:54:50]name=ofd_packets/00076611 [11:54:50]OFD Sender: To server: pG, [11:54:50]CommunicateWithHost lk.salyk.kg:30040 [11:54:50]ConnectInit lk.salyk.kg [11:54:50]line 0 [11:54:50]written 0, free lines is 4095 [11:54:50]Connected sock=10 [11:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 64 F3 18 01 4F 7F 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 89 18 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2B 01 00 35 04 06 00 1D 4B C2 FB 7C CD 38 9C 86 AE D9 4B 9D 43 [11:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 4E 74 47 00 D6 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2B 01 00 F4 03 04 00 2A BF 73 66 B6 04 01 00 00 85 4F CC F0 91 39 3C 3E [11:54:51]CommunicateWithHost err = 0 [11:54:51]CheckOFDResponse [11:54:51]1017 (14) - 77093643461234 [11:54:51]1041 (16) - 0000000000875009 [11:54:51]1040 (4) - 76611 [11:54:51]1012 (4) - 20.06.2024 05:33 [11:54:51]1206 (1) - 0 [11:54:51]OFD Sender: Remove packet 76611 [11:54:51]ProducePacketName [11:54:51]name=ofd_packets/00076611 [11:54:51]NVStorageDeleteData [11:54:51]Write to MH i2c: 01 00 00 66 00 66 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 F8 0C 71 [11:54:51]RasterBufferAndPrint [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]written 0, free lines is 3326 [11:54:51]MH_Cut [11:54:51]Write to MH i2c: D1 01 00 6D 00 01 3F [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 01 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 01 00 6D 00 00 3E [11:54:51]Write to MH i2c: 01 00 00 6E 00 6E [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]OFD Sender: No OFD packet to send [11:54:51]*** Cut start [11:54:51]*** Partial cut [11:54:51]*** CUTSNS_PIN = 1 [11:54:51]*** CUTSNS_PIN = 0 [11:54:52]*** Brake cut motor [11:54:52]Read from MH i2c: 01 [11:54:52]MH_I2C_Read... [11:54:52]*** Stop cut motor [11:54:52]*** Cut end [11:54:52]Read from MH i2c: 01 07 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [11:54:52]process_action close_receipt done [11:54:52]requested_data is exist [11:54:52]produce_requested_data [11:54:52]requested_item fm.sn is exist - process it [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 11 00 00 [11:54:52]Write to MH i2c: E2 08 00 6F 00 80 11 00 00 00 00 00 00 E9 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 17 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 17 00 6F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 39 [11:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:54:52]wFMCommunicate OK [11:54:52]requested_item fd.num is exist - process it [11:54:52]SAM_PROTO_GetFieldsCounters [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 13 00 00 [11:54:52]Write to MH i2c: E2 08 00 70 00 80 13 00 00 00 00 00 00 EC [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 62 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 62 00 70 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 43 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:54:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 43 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:52]wFMCommunicate OK [11:54:52]SAM_PROTO_GetFieldsCounters done [11:54:52]requested_item shift.num is exist - process it [11:54:52]requested_item shift.opened is exist - process it [11:54:52]req_shift_opened [11:54:52]FM_GetShiftState [11:54:52]SAM_PROTO_GetShiftState [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 13 01 00 [11:54:52]Write to MH i2c: E2 08 00 71 00 80 13 01 00 00 00 00 00 EE [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 0E 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 0E 00 71 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 CA [11:54:52]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [11:54:52]wFMCommunicate OK [11:54:52]SAM_PROTO_GetShiftState done [11:54:52]FM_GetShiftState done [11:54:52]req_shift_opened done [11:54:52]requested_item shift.open_date is exist - process it [11:54:52]req_shift_open_date [11:54:52]req_shift_open_date done [11:54:52]produce_requested_data done [11:54:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76611,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [11:54:52]process_action_free close_receipt [11:54:52]json_value_free [11:54:52]json_value_free done [11:54:52]process_json_proto returns [11:54:52]Send response to host [11:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76611,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [11:54:52]free response buf [11:54:52]execute_script done [11:54:52]execute_script returns [11:54:52]free content buf [11:54:52]Sock 7.Close socket [11:54:52]Sock 7.Thread stoped [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]accept exits with 9 [12:06:47]New connection [12:06:47]New thread 3066805604 created [12:06:47]Thread 3066948964 joined [12:06:47]Waiting for new connection... [12:06:47] Sock 9.Parse request [12:06:47]Sock 9.Check first char [12:06:47]Sock 9.First char is OK [12:06:47]request: POST /json_proto HTTP/1.0 [12:06:47]Method: POST [12:06:47]URL: /json_proto [12:06:47]Method is POST - this is cgi request [12:06:47]url: /json_proto [12:06:47]query_string will be loaded in cgi processing [12:06:47]execute_cgi json_proto POST (null) [12:06:47]execute_cgi path=json_proto method=POST [12:06:47]POST find Content-Length [12:06:47]Host: 172.17.39.195:8080 [12:06:47]Content-Length: 1163 [12:06:47]Content-Type: application/json [12:06:47] [12:06:47]POST finish read [12:06:47]Found Content-Length = 1163 [12:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1693039\u000A20.06.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035556\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:47]execute_script... [12:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1693039\u000A20.06.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035556\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:47]POST & json_proto [12:06:47]process_json_proto [12:06:47]json parsed OK: [12:06:47]protocol is kg_v1.0 [12:06:47]action value=print_text [12:06:47]process_action print_text [12:06:47]cmd_print_text [12:06:47]ExternCall_PrintAddStr [12:06:47]wPrintStart [12:06:47]Write to MH i2c: 01 00 00 72 00 72 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 72 00 00 00 00 00 00 FF 0F 87 [12:06:47]RasterBufferAndPrint [12:06:47]line *****ТОВАРНЫЙ ЧЕК***** [12:06:47]line АЗС 144 [12:06:47]line Партнер нефть [12:06:47]line 02508201610067 [12:06:47]line Кассир : Эсенканов Э. [12:06:47]line Счет N : (1)1693039 [12:06:47]line 20.06.2024 11:37 [12:06:47]line ПРОДАЖА [12:06:47]line ТРК (МРК, ГНК): 63 [12:06:47]line Вид ГСМ : 2710124130 [12:06:47]line Аи-92-К-5 [12:06:47]line 10.000 x 66.40 [12:06:47]line ИТОГ: 664.00 [12:06:47]line Тип оплаты: Талоны: ТК ГПНА Online [12:06:47]line 30035556 [12:06:47]line ______________________ [12:06:47]line (подпись) [12:06:47]written 0, free lines is 4095 [12:06:47]Write to MH i2c: 01 00 00 86 00 86 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 10 0E AB [12:06:47]RasterBufferAndPrint [12:06:47]line [12:06:47]line [12:06:47]line [12:06:47]line [12:06:47]line [12:06:47]written 0, free lines is 3601 [12:06:47]MH_Cut [12:06:47]Write to MH i2c: D1 01 00 8D 00 01 5F [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: D1 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: D1 01 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: D1 01 00 8D 00 00 5E [12:06:47]Write to MH i2c: 01 00 00 8E 00 8E [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:48]OFD Sender: No OFD packet to send [12:06:48]*** Cut start [12:06:48]*** Partial cut [12:06:48]*** CUTSNS_PIN = 1 [12:06:48]*** CUTSNS_PIN = 0 [12:06:48]*** Brake cut motor [12:06:48]Read from MH i2c: 01 [12:06:48]MH_I2C_Read... [12:06:48]*** Stop cut motor [12:06:48]*** Cut end [12:06:48]Read from MH i2c: 01 07 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 FF 0F A3 [12:06:48]process_action print_text done [12:06:48]requested_data is exist [12:06:48]produce_requested_data [12:06:48]requested_item fm.sn is exist - process it [12:06:48]wFMCommunicate request_size=4 [12:06:48]MH_SAM_APDU [12:06:48]CAPDU: 80 11 00 00 [12:06:48]Write to MH i2c: E2 08 00 8F 00 80 11 00 00 00 00 00 00 09 [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:48]Read from MH i2c: E2 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: E2 17 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: E2 17 00 8F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 59 [12:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:06:48]wFMCommunicate OK [12:06:48]requested_item fd.num is exist - process it [12:06:48]SAM_PROTO_GetFieldsCounters [12:06:48]wFMCommunicate request_size=4 [12:06:48]MH_SAM_APDU [12:06:48]CAPDU: 80 13 00 00 [12:06:48]Write to MH i2c: E2 08 00 90 00 80 13 00 00 00 00 00 00 0C [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 62 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 62 00 90 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 43 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [12:06:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 43 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_GetFieldsCounters done [12:06:49]requested_item shift.num is exist - process it [12:06:49]requested_item shift.opened is exist - process it [12:06:49]req_shift_opened [12:06:49]FM_GetShiftState [12:06:49]SAM_PROTO_GetShiftState [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 13 01 00 [12:06:49]Write to MH i2c: E2 08 00 91 00 80 13 01 00 00 00 00 00 0E [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0E 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 0E 00 91 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 EA [12:06:49]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_GetShiftState done [12:06:49]FM_GetShiftState done [12:06:49]req_shift_opened done [12:06:49]requested_item shift.open_date is exist - process it [12:06:49]req_shift_open_date [12:06:49]req_shift_open_date done [12:06:49]produce_requested_data done [12:06:49]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76611,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [12:06:49]process_action_free print_text [12:06:49]json_value_free [12:06:49]json_value_free done [12:06:49]process_json_proto returns [12:06:49]Send response to host [12:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76611,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [12:06:49]free response buf [12:06:49]execute_script done [12:06:49]execute_script returns [12:06:49]free content buf [12:06:49]Sock 9.Close socket [12:06:49]Sock 9.Thread stoped [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]accept exits with 7 [12:19:39]New connection [12:19:39]New thread 3066948964 created [12:19:39]Thread 3066805604 joined [12:19:39]Waiting for new connection... [12:19:39] Sock 7.Parse request [12:19:39]Sock 7.Check first char [12:19:39]Sock 7.First char is OK [12:19:39]request: POST /json_proto HTTP/1.0 [12:19:39]Method: POST [12:19:39]URL: /json_proto [12:19:39]Method is POST - this is cgi request [12:19:39]url: /json_proto [12:19:39]query_string will be loaded in cgi processing [12:19:39]execute_cgi json_proto POST (null) [12:19:39]execute_cgi path=json_proto method=POST [12:19:39]POST find Content-Length [12:19:39]Host: 172.17.39.195:8080 [12:19:39]Content-Length: 609 [12:19:39]Content-Type: application/json [12:19:39] [12:19:39]POST finish read [12:19:39]Found Content-Length = 609 [12:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220755", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:39]execute_script... [12:19: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 : (3)220755", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:39]POST & json_proto [12:19:39]process_json_proto [12:19:39]json parsed OK: [12:19:39]protocol is kg_v1.0 [12:19:39]action value=close_receipt [12:19:39]process_action close_receipt [12:19:39]cmd_close_receipt [12:19:39]MH_GetDate [12:19:39]Write to MH i2c: F0 00 00 92 00 81 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: F0 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: F0 09 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: F0 09 00 92 00 00 5C 1E 74 66 99 81 91 64 ED [12:19:39]GetLastDocTimeStamp 1718884489 [12:19:39]current date 1718885980 [12:19:39]FM_GetShiftState [12:19:39]SAM_PROTO_GetShiftState [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 13 01 00 [12:19:39]Write to MH i2c: E2 08 00 93 00 80 13 01 00 00 00 00 00 10 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:39]OFD Sender: No OFD packet to send [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0E 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0E 00 93 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 EC [12:19:39]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_GetShiftState done [12:19:39]FM_GetShiftState done [12:19:39]opened in 1718843774 [12:19:39]opened+sec_in_day 1718930174 [12:19:39]quantity*price = 13000 [12:19:39]sum+1 = 13001 [12:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 53 20.06.2024 12:19 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76612 ФПД: 161393095100896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121940&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76612&fm=161393095100896&tin=02508201610067®Number=0000000000095696&sum=13000 0 [12:19:40]StoreToDocumentArchive [12:19:40]shift 393 fd 76612 [12:19:40]save to /storage/0393/doc_00076612 [12:19:40]save last doc name /storage/0393/doc_00076612 to /storage/kkm_last_doc_name [12:19:40]save OK [12:19:40]Clear old archive folders... [12:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=261 [12:19:40]tlvbuf is 00EB8D80 [12:19:40]SAM_PROTO_ClearQueue [12:19:40]wFMCommunicate request_size=4 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 09 00 00 [12:19:40]Write to MH i2c: E2 08 00 A0 00 80 09 00 00 00 00 00 00 12 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:40]Read from MH i2c: E2 03 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 A0 00 00 90 00 14 [12:19:40]RAPDU: 90 00 [12:19:40]wFMCommunicate OK [12:19:40]SAM_PROTO_ClearQueue done [12:19:40]KKMCreateOFDPacket [12:19:40]OFDProtocolAddRootSTLVToBuf [12:19:40]FM_MakeSignedData [12:19:40]FM_MakeSignedData [12:19:40]SAM_PROTO_SignData [12:19:40]wFMCommunicate request_size=4 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 0D 01 02 [12:19:40]Write to MH i2c: E2 08 00 A1 00 80 0D 01 02 00 00 00 00 1A [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 03 00 A1 00 00 90 00 15 [12:19:40]RAPDU: 90 00 [12:19:40]wFMCommunicate OK [12:19:40]wFMCommunicate request_size=255 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 [12:19:40]Write to MH i2c: E2 02 01 A2 00 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 00 DC [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 A2 00 00 90 00 16 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]wFMCommunicate request_size=20 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 0D 02 02 0F 00 44 2B 01 00 35 04 06 00 92 C9 42 1A 49 E0 [12:19:41]Write to MH i2c: E2 17 00 A3 00 80 0D 02 02 0F 00 00 44 2B 01 00 35 04 06 00 92 C9 42 1A 49 E0 00 00 CA [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 A3 00 00 90 00 17 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 0D 03 02 [12:19:41]Write to MH i2c: E2 08 00 A4 00 80 0D 03 02 00 00 00 00 1F [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 0B 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 0B 00 A4 00 00 07 94 5B 55 0F 5A 20 00 90 00 F4 [12:19:41]RAPDU: 07 94 5B 55 0F 5A 20 00 90 00 [12:19:41]wFMCommunicate OK [12:19:41]SAM_PROTO_SignData done [12:19:41]FM_MakeSignedData done [12:19:41]CreateOFDProtocolMessage [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 11 00 00 [12:19:41]Write to MH i2c: E2 08 00 A5 00 80 11 00 00 00 00 00 00 1F [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 17 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 17 00 A5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6F [12:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:19:41]wFMCommunicate OK [12:19:41]CreateOFDProtocolMessage done [12:19:41]OFDSenderStorePacket 76612 [12:19:41]StoreOFDPacket docnum=76612 [12:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 19 01 00 00 8D A8 11 01 3D 71 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 44 2B 01 00 35 04 06 00 92 C9 42 1A 49 E0 07 94 5B 55 0F 5A 20 00 [12:19:41]CheckFolder [12:19:41]dirname=/storage/ofd_packets [12:19:41]CheckFolder done [12:19:41]ProducePacketName [12:19:41]name=ofd_packets/00076612 [12:19:41]NVStorageSaveData ofd_packets/00076612 [12:19:41]File name is /storage/ofd_packets/00076612 [12:19:41]Write 311 bytes [12:19:41]NVStorageSaveData done [12:19:41]OFDSenderStorePacket done [12:19:41]KKMCreateOFDPacket done [12:19:41]NVStorageSaveData kkm_last_timestamp [12:19:41]File name is /storage/kkm_last_timestamp [12:19:41]Write 4 bytes [12:19:41]NVStorageSaveData done [12:19:41]ExternCall_PrintAddStr [12:19:41]wPrintStart [12:19:41]Write to MH i2c: 01 00 00 A6 00 A6 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FF 0F BB [12:19:41]RasterBufferAndPrint [12:19:41]line Счет N : (3)220755 [12:19:41]line ИНН: 02508201610067 [12:19:41]line Контрольно-Кассовый Чек [12:19:41]line ПРОДАЖА [12:19:41]line Товар: 48741156 [12:19:41]line Сигареты LD Blue [12:19:41]line 1.000 * 130.00 [12:19:41]line = 130.00 [12:19:41]line НДС 12% НСП 1% [12:19:41]line > о реализуемом товаре [12:19:41]line ИТОГО: 130.00 [12:19:41]line НСП 1% : 1.15 [12:19:41]line НДС 12% : 13.80 [12:19:41]line Наличными: 130.00 [12:19:41]line Безнал.: 0.00 [12:19:41]line Место: АЗС № 144 "Партнер Нефть" [12:19:41]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:19:41]line СНО: Общий режим [12:19:41]line Чек 53 20.06.2024 12:19 [12:19:41]line Смена: 393 ФФД: 1.0 [12:19:41]line ЗНМ: 0300000170 [12:19:41]line РНМ: 0000000000095696 [12:19:41]line Версия ККМ: 001 [12:19:41]line ФМ: 0000000000875009 [12:19:41]line ФД: 76612 [12:19:41]line ФПД: 161393095100896 [12:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121940&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76612&fm=161393095100896&tin=02508201610067®Number=0000000000095696&sum=13000 [12:19:41]line 0 [12:19:41]OFD Sender: Processing packet 76612 [packets to send 351, broken 350] [12:19:41]ProducePacketName [12:19:41]name=ofd_packets/00076612 [12:19:41]OFD Sender: To server: pG, [12:19:41]CommunicateWithHost lk.salyk.kg:30040 [12:19:41]ConnectInit lk.salyk.kg [12:19:41]written 0, free lines is 4095 [12:19:41]Connected sock=10 [12:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 19 01 00 00 8D A8 11 01 3D 71 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5C 1E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 44 2B 01 00 35 04 06 00 92 C9 42 1A 49 E0 07 94 5B 55 0F 5A 20 00 [12:19:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A3 2B 47 00 8E AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 44 2B 01 00 F4 03 04 00 FD C4 73 66 B6 04 01 00 00 15 9A 6D D6 EB C8 FF 29 [12:19:41]CommunicateWithHost err = 0 [12:19:41]CheckOFDResponse [12:19:41]1017 (14) - 77093643461234 [12:19:41]1041 (16) - 0000000000875009 [12:19:41]1040 (4) - 76612 [12:19:41]1012 (4) - 20.06.2024 05:58 [12:19:41]1206 (1) - 0 [12:19:41]OFD Sender: Remove packet 76612 [12:19:41]ProducePacketName [12:19:41]name=ofd_packets/00076612 [12:19:41]NVStorageDeleteData [12:19:41]Write to MH i2c: 01 00 00 CE 00 CE [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 06 0D E8 [12:19:41]RasterBufferAndPrint [12:19:41]line [12:19:41]line [12:19:41]line [12:19:41]line [12:19:41]line [12:19:41]written 0, free lines is 3341 [12:19:41]MH_Cut [12:19:41]Write to MH i2c: D1 01 00 D5 00 01 A7 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: D1 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: D1 01 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: D1 01 00 D5 00 00 A6 [12:19:41]Write to MH i2c: 01 00 00 D6 00 D6 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:42]OFD Sender: No OFD packet to send [12:19:42]*** Cut start [12:19:42]*** Partial cut [12:19:42]*** CUTSNS_PIN = 1 [12:19:42]*** CUTSNS_PIN = 0 [12:19:42]*** Brake cut motor [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]*** Stop cut motor [12:19:43]*** Cut end [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 D6 00 00 00 00 00 00 FF 0F EB [12:19:43]process_action close_receipt done [12:19:43]requested_data is exist [12:19:43]produce_requested_data [12:19:43]requested_item fm.sn is exist - process it [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 11 00 00 [12:19:43]Write to MH i2c: E2 08 00 D7 00 80 11 00 00 00 00 00 00 51 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 D7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A1 [12:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:19:43]wFMCommunicate OK [12:19:43]requested_item fd.num is exist - process it [12:19:43]SAM_PROTO_GetFieldsCounters [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 13 00 00 [12:19:43]Write to MH i2c: E2 08 00 D8 00 80 13 00 00 00 00 00 00 54 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 62 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 62 00 D8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 44 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [12:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 44 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_GetFieldsCounters done [12:19:43]requested_item shift.num is exist - process it [12:19:43]requested_item shift.opened is exist - process it [12:19:43]req_shift_opened [12:19:43]FM_GetShiftState [12:19:43]SAM_PROTO_GetShiftState [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 13 01 00 [12:19:43]Write to MH i2c: E2 08 00 D9 00 80 13 01 00 00 00 00 00 56 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 D9 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 32 [12:19:43]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_GetShiftState done [12:19:43]FM_GetShiftState done [12:19:43]req_shift_opened done [12:19:43]requested_item shift.open_date is exist - process it [12:19:43]req_shift_open_date [12:19:43]req_shift_open_date done [12:19:43]produce_requested_data done [12:19:43]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76612,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [12:19:43]process_action_free close_receipt [12:19:43]json_value_free [12:19:43]json_value_free done [12:19:43]process_json_proto returns [12:19:43]Send response to host [12:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76612,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [12:19:43]free response buf [12:19:43]execute_script done [12:19:43]execute_script returns [12:19:43]free content buf [12:19:43]Sock 7.Close socket [12:19:43]Sock 7.Thread stoped [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]accept exits with 9 [12:22:47]New connection [12:22:47]New thread 3066805604 created [12:22:47]Thread 3066948964 joined [12:22:47]Waiting for new connection... [12:22:47] Sock 9.Parse request [12:22:47]Sock 9.Check first char [12:22:47]Sock 9.First char is OK [12:22:47]request: POST /json_proto HTTP/1.0 [12:22:47]Method: POST [12:22:47]URL: /json_proto [12:22:47]Method is POST - this is cgi request [12:22:47]url: /json_proto [12:22:47]query_string will be loaded in cgi processing [12:22:47]execute_cgi json_proto POST (null) [12:22:47]execute_cgi path=json_proto method=POST [12:22:47]POST find Content-Length [12:22:47]Host: 172.17.39.195:8080 [12:22:47]Content-Length: 678 [12:22:47]Content-Type: application/json [12:22:47] [12:22:47]POST finish read [12:22:47]Found Content-Length = 678 [12:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220756", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:47]execute_script... [12:22:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220756", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:47]POST & json_proto [12:22:47]process_json_proto [12:22:47]json parsed OK: [12:22:47]protocol is kg_v1.0 [12:22:47]action value=close_receipt [12:22:47]process_action close_receipt [12:22:47]cmd_close_receipt [12:22:47]MH_GetDate [12:22:47]Write to MH i2c: F0 00 00 DA 00 C9 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 09 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 09 00 DA 00 00 18 1F 74 66 99 81 91 64 F2 [12:22:47]GetLastDocTimeStamp 1718885980 [12:22:47]current date 1718886168 [12:22:47]FM_GetShiftState [12:22:47]SAM_PROTO_GetShiftState [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 13 01 00 [12:22:47]Write to MH i2c: E2 08 00 DB 00 80 13 01 00 00 00 00 00 58 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:47]Read from MH i2c: E2 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 0E 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 0E 00 DB 00 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 34 [12:22:47]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:22:47]wFMCommunicate OK [12:22:47]SAM_PROTO_GetShiftState done [12:22:47]FM_GetShiftState done [12:22:47]opened in 1718843774 [12:22:47]opened+sec_in_day 1718930174 [12:22:47]quantity*price = 22000 [12:22:47]sum+1 = 22001 [12:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 54 20.06.2024 12:22 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76613 ФПД: 2016972530309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122248&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76613&fm=2016972530309&tin=02508201610067®Number=0000000000095696&sum=22000 0 [12:22:48]StoreToDocumentArchive [12:22:48]shift 393 fd 76613 [12:22:48]save to /storage/0393/doc_00076613 [12:22:48]save last doc name /storage/0393/doc_00076613 to /storage/kkm_last_doc_name [12:22:48]save OK [12:22:48]Clear old archive folders... [12:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:22:48]tlvbuf is 00E7F010 [12:22:48]SAM_PROTO_ClearQueue [12:22:48]wFMCommunicate request_size=4 [12:22:48]MH_SAM_APDU [12:22:48]CAPDU: 80 09 00 00 [12:22:48]Write to MH i2c: E2 08 00 E8 00 80 09 00 00 00 00 00 00 5A [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 E8 00 00 90 00 5C [12:22:48]RAPDU: 90 00 [12:22:48]wFMCommunicate OK [12:22:48]SAM_PROTO_ClearQueue done [12:22:48]KKMCreateOFDPacket [12:22:48]OFDProtocolAddRootSTLVToBuf [12:22:48]FM_MakeSignedData [12:22:48]FM_MakeSignedData [12:22:48]SAM_PROTO_SignData [12:22:48]wFMCommunicate request_size=4 [12:22:48]MH_SAM_APDU [12:22:48]CAPDU: 80 0D 01 02 [12:22:48]Write to MH i2c: E2 08 00 E9 00 80 0D 01 02 00 00 00 00 62 [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 E9 00 00 90 00 5D [12:22:48]RAPDU: 90 00 [12:22:48]wFMCommunicate OK [12:22:48]wFMCommunicate request_size=255 [12:22:48]MH_SAM_APDU [12:22:48]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 18 1F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:22:48]Write to MH i2c: E2 02 01 EA 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 18 1F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 5F [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=53 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2B 01 00 35 04 06 00 01 D5 9C EE 62 85 [12:22:49]Write to MH i2c: E2 38 00 EB 00 80 0D 02 02 30 00 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2B 01 00 35 04 06 00 01 D5 9C EE 62 85 00 00 19 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 03 02 [12:22:49]Write to MH i2c: E2 08 00 EC 00 80 0D 03 02 00 00 00 00 67 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 0B 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 0B 00 EC 00 00 84 0F A7 F6 48 C7 E2 13 90 00 9C [12:22:49]RAPDU: 84 0F A7 F6 48 C7 E2 13 90 00 [12:22:49]wFMCommunicate OK [12:22:49]SAM_PROTO_SignData done [12:22:49]FM_MakeSignedData done [12:22:49]CreateOFDProtocolMessage [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 11 00 00 [12:22:49]Write to MH i2c: E2 08 00 ED 00 80 11 00 00 00 00 00 00 67 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 17 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 17 00 ED 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B7 [12:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:22:49]wFMCommunicate OK [12:22:49]CreateOFDProtocolMessage done [12:22:49]OFDSenderStorePacket 76613 [12:22:49]StoreOFDPacket docnum=76613 [12:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 EE 4E 32 01 44 FA 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 18 1F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2B 01 00 35 04 06 00 01 D5 9C EE 62 85 84 0F A7 F6 48 C7 E2 13 [12:22:49]CheckFolder [12:22:49]dirname=/storage/ofd_packets [12:22:49]CheckFolder done [12:22:49]ProducePacketName [12:22:49]name=ofd_packets/00076613 [12:22:49]NVStorageSaveData ofd_packets/00076613 [12:22:49]File name is /storage/ofd_packets/00076613 [12:22:49]Write 344 bytes [12:22:49]NVStorageSaveData done [12:22:49]OFDSenderStorePacket done [12:22:49]KKMCreateOFDPacket done [12:22:49]NVStorageSaveData kkm_last_timestamp [12:22:49]File name is /storage/kkm_last_timestamp [12:22:49]Write 4 bytes [12:22:49]NVStorageSaveData done [12:22:49]ExternCall_PrintAddStr [12:22:49]wPrintStart [12:22:49]Write to MH i2c: 01 00 00 EE 00 EE [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 FF 0F 03 [12:22:49]RasterBufferAndPrint [12:22:49]line Счет N : (3)220756 [12:22:49]line ИНН: 02508201610067 [12:22:49]line Контрольно-Кассовый Чек [12:22:49]line ПРОДАЖА [12:22:49]line Товар: 4650243871828 [12:22:49]line Gorilla эн нап манго-кокос 0,45 ж/б [12:22:49]line 2.000 * 110.00 [12:22:49]line = 220.00 [12:22:49]line НДС 12% НСП 1% [12:22:49]line > о реализуемом товаре [12:22:49]line ИТОГО: 220.00 [12:22:49]line НСП 1% : 1.95 [12:22:49]line НДС 12% : 23.36 [12:22:49]line Наличными: 220.00 [12:22:49]line Безнал.: 0.00 [12:22:49]line Место: АЗС № 144 "Партнер Нефть" [12:22:49]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:22:49]line СНО: Общий режим [12:22:49]line Чек 54 20.06.2024 12:22 [12:22:49]line Смена: 393 ФФД: 1.0 [12:22:49]line ЗНМ: 0300000170 [12:22:49]line РНМ: 0000000000095696 [12:22:49]line Версия ККМ: 001 [12:22:49]line ФМ: 0000000000875009 [12:22:49]line ФД: 76613 [12:22:49]line ФПД: 2016972530309 [12:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122248&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76613&fm=2016972530309&tin=02508201610067®Number=0000000000095696&sum=22000 [12:22:49]line 0 [12:22:49]OFD Sender: Processing packet 76613 [packets to send 351, broken 350] [12:22:49]ProducePacketName [12:22:49]name=ofd_packets/00076613 [12:22:49]OFD Sender: To server: pG, [12:22:49]CommunicateWithHost lk.salyk.kg:30040 [12:22:49]ConnectInit lk.salyk.kg [12:22:49]written 0, free lines is 4095 [12:22:49]Connected sock=10 [12:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 EE 4E 32 01 44 FA 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 18 1F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2B 01 00 35 04 06 00 01 D5 9C EE 62 85 84 0F A7 F6 48 C7 E2 13 [12:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C3 E8 47 00 31 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2B 01 00 F4 03 04 00 B9 C5 73 66 B6 04 01 00 00 15 B4 1A 97 AF 20 FA 39 [12:22:50]CommunicateWithHost err = 0 [12:22:50]CheckOFDResponse [12:22:50]1017 (14) - 77093643461234 [12:22:50]1041 (16) - 0000000000875009 [12:22:50]1040 (4) - 76613 [12:22:50]1012 (4) - 20.06.2024 06:01 [12:22:50]1206 (1) - 0 [12:22:50]OFD Sender: Remove packet 76613 [12:22:50]ProducePacketName [12:22:50]name=ofd_packets/00076613 [12:22:50]NVStorageDeleteData [12:22:50]Write to MH i2c: 01 00 00 17 01 18 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 E2 0C 0D [12:22:50]RasterBufferAndPrint [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]written 0, free lines is 3307 [12:22:50]MH_Cut [12:22:50]Write to MH i2c: D1 01 00 1E 01 01 F1 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 01 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 01 00 1E 01 00 F0 [12:22:50]Write to MH i2c: 01 00 00 1F 01 20 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]OFD Sender: No OFD packet to send [12:22:50]*** Cut start [12:22:50]*** Partial cut [12:22:50]*** CUTSNS_PIN = 1 [12:22:50]*** CUTSNS_PIN = 0 [12:22:51]*** Brake cut motor [12:22:51]Read from MH i2c: 01 [12:22:51]MH_I2C_Read... [12:22:51]*** Stop cut motor [12:22:51]*** Cut end [12:22:51]Read from MH i2c: 01 07 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 07 00 1F 01 00 00 00 00 00 FF 0F 35 [12:22:51]process_action close_receipt done [12:22:51]requested_data is exist [12:22:51]produce_requested_data [12:22:51]requested_item fm.sn is exist - process it [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 11 00 00 [12:22:51]Write to MH i2c: E2 08 00 20 01 80 11 00 00 00 00 00 00 9B [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 20 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EB [12:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:22:51]wFMCommunicate OK [12:22:51]requested_item fd.num is exist - process it [12:22:51]SAM_PROTO_GetFieldsCounters [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 13 00 00 [12:22:51]Write to MH i2c: E2 08 00 21 01 80 13 00 00 00 00 00 00 9E [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 62 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 62 00 21 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 45 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 45 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:51]wFMCommunicate OK [12:22:51]SAM_PROTO_GetFieldsCounters done [12:22:51]requested_item shift.num is exist - process it [12:22:51]requested_item shift.opened is exist - process it [12:22:51]req_shift_opened [12:22:51]FM_GetShiftState [12:22:51]SAM_PROTO_GetShiftState [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 13 01 00 [12:22:51]Write to MH i2c: E2 08 00 22 01 80 13 01 00 00 00 00 00 A0 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 0E 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 0E 00 22 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 7C [12:22:51]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:22:51]wFMCommunicate OK [12:22:51]SAM_PROTO_GetShiftState done [12:22:51]FM_GetShiftState done [12:22:51]req_shift_opened done [12:22:51]requested_item shift.open_date is exist - process it [12:22:51]req_shift_open_date [12:22:51]req_shift_open_date done [12:22:51]produce_requested_data done [12:22:51]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76613,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [12:22:51]process_action_free close_receipt [12:22:51]json_value_free [12:22:51]json_value_free done [12:22:51]process_json_proto returns [12:22:51]Send response to host [12:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76613,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [12:22:51]free response buf [12:22:51]execute_script done [12:22:51]execute_script returns [12:22:51]free content buf [12:22:51]Sock 9.Close socket [12:22:51]Sock 9.Thread stoped [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]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: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:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:53]accept exits with 7 [12:31:53]New connection [12:31:53]New thread 3066948964 created [12:31:53]Thread 3066805604 joined [12:31:53]Waiting for new connection... [12:31:53] Sock 7.Parse request [12:31:53]Sock 7.Check first char [12:31:53]Sock 7.First char is OK [12:31:53]request: POST /json_proto HTTP/1.0 [12:31:53]Method: POST [12:31:53]URL: /json_proto [12:31:53]Method is POST - this is cgi request [12:31:53]url: /json_proto [12:31:53]query_string will be loaded in cgi processing [12:31:53]execute_cgi json_proto POST (null) [12:31:53]execute_cgi path=json_proto method=POST [12:31:53]POST find Content-Length [12:31:53]Host: 172.17.39.195:8080 [12:31:53]Content-Length: 658 [12:31:53]Content-Type: application/json [12:31:53] [12:31:53]POST finish read [12:31:53]Found Content-Length = 658 [12:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220757", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:53]execute_script... [12: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 : (3)220757", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:53]POST & json_proto [12:31:53]process_json_proto [12:31:53]json parsed OK: [12:31:53]protocol is kg_v1.0 [12:31:53]action value=close_receipt [12:31:53]process_action close_receipt [12:31:53]cmd_close_receipt [12:31:53]MH_GetDate [12:31:53]Write to MH i2c: F0 00 00 23 01 13 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: F0 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: F0 09 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: F0 09 00 23 01 00 3A 21 74 66 99 81 91 64 60 [12:31:53]GetLastDocTimeStamp 1718886168 [12:31:53]current date 1718886714 [12:31:53]FM_GetShiftState [12:31:53]SAM_PROTO_GetShiftState [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 13 01 00 [12:31:53]Write to MH i2c: E2 08 00 24 01 80 13 01 00 00 00 00 00 A2 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 24 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 7E [12:31:53]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_GetShiftState done [12:31:53]FM_GetShiftState done [12:31:53]opened in 1718843774 [12:31:53]opened+sec_in_day 1718930174 [12:31:53]quantity*price = 11300 [12:31:53]sum+1 = 11301 [12:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 55 20.06.2024 12:31 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76614 ФПД: 186422816276502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123154&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76614&fm=186422816276502&tin=02508201610067®Number=0000000000095696&sum=11300 0 [12:31:54]StoreToDocumentArchive [12:31:54]shift 393 fd 76614 [12:31:54]save to /storage/0393/doc_00076614 [12:31:54]save last doc name /storage/0393/doc_00076614 to /storage/kkm_last_doc_name [12:31:54]save OK [12:31:54]Clear old archive folders... [12:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=278 [12:31:54]tlvbuf is 00E7B2A0 [12:31:54]SAM_PROTO_ClearQueue [12:31:54]wFMCommunicate request_size=4 [12:31:54]MH_SAM_APDU [12:31:54]CAPDU: 80 09 00 00 [12:31:54]Write to MH i2c: E2 08 00 31 01 80 09 00 00 00 00 00 00 A4 [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:54]Read from MH i2c: E2 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: E2 03 00 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: E2 03 00 31 01 00 90 00 A6 [12:31:54]RAPDU: 90 00 [12:31:54]wFMCommunicate OK [12:31:54]SAM_PROTO_ClearQueue done [12:31:54]KKMCreateOFDPacket [12:31:54]OFDProtocolAddRootSTLVToBuf [12:31:54]FM_MakeSignedData [12:31:54]FM_MakeSignedData [12:31:54]SAM_PROTO_SignData [12:31:54]wFMCommunicate request_size=4 [12:31:54]MH_SAM_APDU [12:31:54]CAPDU: 80 0D 01 02 [12:31:54]Write to MH i2c: E2 08 00 32 01 80 0D 01 02 00 00 00 00 AC [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:54]Read from MH i2c: E2 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: E2 03 00 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: E2 03 00 32 01 00 90 00 A7 [12:31:54]RAPDU: 90 00 [12:31:54]wFMCommunicate OK [12:31:54]wFMCommunicate request_size=255 [12:31:54]MH_SAM_APDU [12:31:54]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 3A 21 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [12:31:54]Write to MH i2c: E2 02 01 33 01 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 3A 21 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 FD [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 03 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 03 00 33 01 00 90 00 A8 [12:31:55]RAPDU: 90 00 [12:31:55]wFMCommunicate OK [12:31:55]wFMCommunicate request_size=37 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2B 01 00 35 04 06 00 A9 8C F1 BE 00 16 [12:31:55]Write to MH i2c: E2 28 00 34 01 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2B 01 00 35 04 06 00 A9 8C F1 BE 00 16 00 00 6F [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 03 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 03 00 34 01 00 90 00 A9 [12:31:55]RAPDU: 90 00 [12:31:55]wFMCommunicate OK [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 0D 03 02 [12:31:55]Write to MH i2c: E2 08 00 35 01 80 0D 03 02 00 00 00 00 B1 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0B 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0B 00 35 01 00 FB FD E0 4C EF B0 03 80 90 00 F8 [12:31:55]RAPDU: FB FD E0 4C EF B0 03 80 90 00 [12:31:55]wFMCommunicate OK [12:31:55]SAM_PROTO_SignData done [12:31:55]FM_MakeSignedData done [12:31:55]CreateOFDProtocolMessage [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 11 00 00 [12:31:55]Write to MH i2c: E2 08 00 36 01 80 11 00 00 00 00 00 00 B1 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 17 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 17 00 36 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 01 [12:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:31:55]wFMCommunicate OK [12:31:55]CreateOFDProtocolMessage done [12:31:55]OFDSenderStorePacket 76614 [12:31:55]StoreOFDPacket docnum=76614 [12:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 E1 52 22 01 BC 68 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 3A 21 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2B 01 00 35 04 06 00 A9 8C F1 BE 00 16 FB FD E0 4C EF B0 03 80 [12:31:55]CheckFolder [12:31:55]dirname=/storage/ofd_packets [12:31:55]CheckFolder done [12:31:55]ProducePacketName [12:31:55]name=ofd_packets/00076614 [12:31:55]NVStorageSaveData ofd_packets/00076614 [12:31:55]File name is /storage/ofd_packets/00076614 [12:31:55]Write 328 bytes [12:31:55]NVStorageSaveData done [12:31:55]OFDSenderStorePacket done [12:31:55]KKMCreateOFDPacket done [12:31:55]NVStorageSaveData kkm_last_timestamp [12:31:55]File name is /storage/kkm_last_timestamp [12:31:55]Write 4 bytes [12:31:55]NVStorageSaveData done [12:31:55]ExternCall_PrintAddStr [12:31:55]wPrintStart [12:31:55]Write to MH i2c: 01 00 00 37 01 38 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [12:31:55]RasterBufferAndPrint [12:31:55]line Счет N : (3)220757 [12:31:55]line ИНН: 02508201610067 [12:31:55]line Контрольно-Кассовый Чек [12:31:55]line ПРОДАЖА [12:31:55]line Товар: 5449000054227 [12:31:55]line Напиток Кока-Кола 1л [12:31:55]line 1.000 * 113.00 [12:31:55]line = 113.00 [12:31:55]line НДС 12% НСП 1% [12:31:55]line > о реализуемом товаре [12:31:55]line ИТОГО: 113.00 [12:31:55]line НСП 1% : 1.00 [12:31:55]line НДС 12% : 12.00 [12:31:55]line Наличными: 113.00 [12:31:55]line Безнал.: 0.00 [12:31:55]line Место: АЗС № 144 "Партнер Нефть" [12:31:55]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:31:55]line СНО: Общий режим [12:31:55]line Чек 55 20.06.2024 12:31 [12:31:55]line Смена: 393 ФФД: 1.0 [12:31:55]line ЗНМ: 0300000170 [12:31:55]line РНМ: 0000000000095696 [12:31:55]line Версия ККМ: 001 [12:31:55]line ФМ: 0000000000875009 [12:31:55]line ФД: 76614 [12:31:55]line ФПД: 186422816276502 [12:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123154&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76614&fm=186422816276502&tin=02508201610067®Number=0000000000095696&sum=11300 [12:31:55]line 0 [12:31:55]OFD Sender: Processing packet 76614 [packets to send 351, broken 350] [12:31:55]ProducePacketName [12:31:55]name=ofd_packets/00076614 [12:31:55]OFD Sender: To server: pG, [12:31:55]CommunicateWithHost lk.salyk.kg:30040 [12:31:55]ConnectInit lk.salyk.kg [12:31:55]written 0, free lines is 4095 [12:31:55]Connected sock=9 [12:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 E1 52 22 01 BC 68 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 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 3A 21 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2B 01 00 35 04 06 00 A9 8C F1 BE 00 16 FB FD E0 4C EF B0 03 80 [12:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 6F 65 47 00 2D D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2B 01 00 F4 03 04 00 DB C7 73 66 B6 04 01 00 00 A1 D8 96 1F 96 4C 37 B9 [12:31:56]CommunicateWithHost err = 0 [12:31:56]CheckOFDResponse [12:31:56]1017 (14) - 77093643461234 [12:31:56]1041 (16) - 0000000000875009 [12:31:56]1040 (4) - 76614 [12:31:56]1012 (4) - 20.06.2024 06:10 [12:31:56]1206 (1) - 0 [12:31:56]OFD Sender: Remove packet 76614 [12:31:56]ProducePacketName [12:31:56]name=ofd_packets/00076614 [12:31:56]NVStorageDeleteData [12:31:56]Write to MH i2c: 01 00 00 5F 01 60 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: 01 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: 01 07 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: 01 07 00 5F 01 00 00 00 00 00 EB 0C 5E [12:31:56]RasterBufferAndPrint [12:31:56]line [12:31:56]line [12:31:56]line [12:31:56]line [12:31:56]line [12:31:56]written 0, free lines is 3313 [12:31:56]MH_Cut [12:31:56]Write to MH i2c: D1 01 00 66 01 01 39 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: D1 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: D1 01 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: D1 01 00 66 01 00 38 [12:31:56]Write to MH i2c: 01 00 00 67 01 68 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]OFD Sender: No OFD packet to send [12:31:56]*** Cut start [12:31:56]*** Partial cut [12:31:56]*** CUTSNS_PIN = 1 [12:31:56]*** CUTSNS_PIN = 0 [12:31:57]*** Brake cut motor [12:31:57]Read from MH i2c: 01 [12:31:57]MH_I2C_Read... [12:31:57]*** Stop cut motor [12:31:57]*** Cut end [12:31:57]Read from MH i2c: 01 07 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: 01 07 00 67 01 00 00 00 00 00 FF 0F 7D [12:31:57]process_action close_receipt done [12:31:57]requested_data is exist [12:31:57]produce_requested_data [12:31:57]requested_item fm.sn is exist - process it [12:31:57]wFMCommunicate request_size=4 [12:31:57]MH_SAM_APDU [12:31:57]CAPDU: 80 11 00 00 [12:31:57]Write to MH i2c: E2 08 00 68 01 80 11 00 00 00 00 00 00 E3 [12:31:57]Write i2c OK [12:31:57]MH_I2C_Read... [12:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:57]Read from MH i2c: E2 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 17 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 17 00 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 33 [12:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:31:57]wFMCommunicate OK [12:31:57]requested_item fd.num is exist - process it [12:31:57]SAM_PROTO_GetFieldsCounters [12:31:57]wFMCommunicate request_size=4 [12:31:57]MH_SAM_APDU [12:31:57]CAPDU: 80 13 00 00 [12:31:57]Write to MH i2c: E2 08 00 69 01 80 13 00 00 00 00 00 00 E6 [12:31:57]Write i2c OK [12:31:57]MH_I2C_Read... [12:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:57]Read from MH i2c: E2 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 62 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 62 00 69 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 46 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 46 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:57]wFMCommunicate OK [12:31:57]SAM_PROTO_GetFieldsCounters done [12:31:57]requested_item shift.num is exist - process it [12:31:57]requested_item shift.opened is exist - process it [12:31:57]req_shift_opened [12:31:57]FM_GetShiftState [12:31:57]SAM_PROTO_GetShiftState [12:31:57]wFMCommunicate request_size=4 [12:31:57]MH_SAM_APDU [12:31:57]CAPDU: 80 13 01 00 [12:31:57]Write to MH i2c: E2 08 00 6A 01 80 13 01 00 00 00 00 00 E8 [12:31:57]Write i2c OK [12:31:57]MH_I2C_Read... [12:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:57]Read from MH i2c: E2 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 0E 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 0E 00 6A 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C4 [12:31:57]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:31:57]wFMCommunicate OK [12:31:57]SAM_PROTO_GetShiftState done [12:31:57]FM_GetShiftState done [12:31:57]req_shift_opened done [12:31:57]requested_item shift.open_date is exist - process it [12:31:57]req_shift_open_date [12:31:57]req_shift_open_date done [12:31:57]produce_requested_data done [12:31:57]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76614,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [12:31:57]process_action_free close_receipt [12:31:57]json_value_free [12:31:57]json_value_free done [12:31:57]process_json_proto returns [12:31:57]Send response to host [12:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76614,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [12:31:57]free response buf [12:31:57]execute_script done [12:31:57]execute_script returns [12:31:57]free content buf [12:31:57]Sock 7.Close socket [12:31:57]Sock 7.Thread stoped [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34: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]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:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:34]accept exits with 10 [12:40:34]New connection [12:40:34]New thread 3066805604 created [12:40:34]Thread 3066948964 joined [12:40:34]Waiting for new connection... [12:40:34] Sock 10.Parse request [12:40:34]Sock 10.Check first char [12:40:34]Sock 10.First char is OK [12:40:34]request: POST /json_proto HTTP/1.0 [12:40:34]Method: POST [12:40:34]URL: /json_proto [12:40:34]Method is POST - this is cgi request [12:40:34]url: /json_proto [12:40:34]query_string will be loaded in cgi processing [12:40:34]execute_cgi json_proto POST (null) [12:40:34]execute_cgi path=json_proto method=POST [12:40:34]POST find Content-Length [12:40:34]Host: 172.17.39.195:8080 [12:40:34]Content-Length: 707 [12:40:34]Content-Type: application/json [12:40:34] [12:40:34]POST finish read [12:40:34]Found Content-Length = 707 [12:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220758", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:34]execute_script... [12:40: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 : (3)220758", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:34]POST & json_proto [12:40:34]process_json_proto [12:40:34]json parsed OK: [12:40:34]protocol is kg_v1.0 [12:40:34]action value=close_receipt [12:40:34]process_action close_receipt [12:40:34]cmd_close_receipt [12:40:34]MH_GetDate [12:40:34]Write to MH i2c: F0 00 00 6B 01 5B [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: F0 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: F0 09 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: F0 09 00 6B 01 00 43 23 74 66 99 81 91 64 B3 [12:40:34]GetLastDocTimeStamp 1718886714 [12:40:34]current date 1718887235 [12:40:34]FM_GetShiftState [12:40:34]SAM_PROTO_GetShiftState [12:40:34]wFMCommunicate request_size=4 [12:40:34]MH_SAM_APDU [12:40:34]CAPDU: 80 13 01 00 [12:40:34]Write to MH i2c: E2 08 00 6C 01 80 13 01 00 00 00 00 00 EA [12:40:34]Write i2c OK [12:40:34]MH_I2C_Read... [12:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:34]Read from MH i2c: E2 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 0E 00 [12:40:34]MH_I2C_Read... [12:40:34]Read from MH i2c: E2 0E 00 6C 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C6 [12:40:34]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:40:34]wFMCommunicate OK [12:40:34]SAM_PROTO_GetShiftState done [12:40:34]FM_GetShiftState done [12:40:34]opened in 1718843774 [12:40:34]opened+sec_in_day 1718930174 [12:40:34]quantity*price = 15000 [12:40:34]sum+1 = 15001 [12:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 56 20.06.2024 12:40 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76615 ФПД: 42676401685639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124035&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76615&fm=42676401685639&tin=02508201610067®Number=0000000000095696&sum=15000 0 [12:40:35]StoreToDocumentArchive [12:40:35]shift 393 fd 76615 [12:40:35]save to /storage/0393/doc_00076615 [12:40:35]save last doc name /storage/0393/doc_00076615 to /storage/kkm_last_doc_name [12:40:35]save OK [12:40:35]Clear old archive folders... [12:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=300 [12:40:35]tlvbuf is 00E7D9E0 [12:40:35]SAM_PROTO_ClearQueue [12:40:35]wFMCommunicate request_size=4 [12:40:35]MH_SAM_APDU [12:40:35]CAPDU: 80 09 00 00 [12:40:35]Write to MH i2c: E2 08 00 79 01 80 09 00 00 00 00 00 00 EC [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:35]*** iso7816_exchange 80 09 00 00... 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 79 01 00 90 00 EE [12:40:35]RAPDU: 90 00 [12:40:35]wFMCommunicate OK [12:40:35]SAM_PROTO_ClearQueue done [12:40:35]KKMCreateOFDPacket [12:40:35]OFDProtocolAddRootSTLVToBuf [12:40:35]FM_MakeSignedData [12:40:35]FM_MakeSignedData [12:40:35]SAM_PROTO_SignData [12:40:35]wFMCommunicate request_size=4 [12:40:35]MH_SAM_APDU [12:40:35]CAPDU: 80 0D 01 02 [12:40:35]Write to MH i2c: E2 08 00 7A 01 80 0D 01 02 00 00 00 00 F4 [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:35]*** iso7816_exchange 80 0D 01 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 7A 01 00 90 00 EF [12:40:35]RAPDU: 90 00 [12:40:35]wFMCommunicate OK [12:40:35]wFMCommunicate request_size=255 [12:40:35]MH_SAM_APDU [12:40:35]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 23 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 [12:40:35]Write to MH i2c: E2 02 01 7B 01 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 23 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 EB [12:40:35]Write i2c OK [12:40:35]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 7B 01 00 90 00 F0 [12:40:35]RAPDU: 90 00 [12:40:35]wFMCommunicate OK [12:40:35]wFMCommunicate request_size=59 [12:40:35]MH_SAM_APDU [12:40:35]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2B 01 00 35 04 06 00 26 D0 5F C3 44 87 [12:40:35]Write to MH i2c: E2 3E 00 7C 01 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2B 01 00 35 04 06 00 26 D0 5F C3 44 87 00 00 75 [12:40:35]Write i2c OK [12:40:35]MH_I2C_Read... [12:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:36]Read from MH i2c: E2 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 03 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 03 00 7C 01 00 90 00 F1 [12:40:36]RAPDU: 90 00 [12:40:36]wFMCommunicate OK [12:40:36]wFMCommunicate request_size=4 [12:40:36]MH_SAM_APDU [12:40:36]CAPDU: 80 0D 03 02 [12:40:36]Write to MH i2c: E2 08 00 7D 01 80 0D 03 02 00 00 00 00 F9 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:36]Read from MH i2c: E2 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0B 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0B 00 7D 01 00 6C A1 81 B8 D9 7F DC 1C 90 00 90 [12:40:36]RAPDU: 6C A1 81 B8 D9 7F DC 1C 90 00 [12:40:36]wFMCommunicate OK [12:40:36]SAM_PROTO_SignData done [12:40:36]FM_MakeSignedData done [12:40:36]CreateOFDProtocolMessage [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 7E 01 80 11 00 00 00 00 00 00 F9 [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 7E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 49 [12:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:40:36]wFMCommunicate OK [12:40:36]CreateOFDProtocolMessage done [12:40:36]OFDSenderStorePacket 76615 [12:40:36]StoreOFDPacket docnum=76615 [12:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 40 01 00 00 1E D0 38 01 3B 02 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 23 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2B 01 00 35 04 06 00 26 D0 5F C3 44 87 6C A1 81 B8 D9 7F DC 1C [12:40:36]CheckFolder [12:40:36]dirname=/storage/ofd_packets [12:40:36]CheckFolder done [12:40:36]ProducePacketName [12:40:36]name=ofd_packets/00076615 [12:40:36]NVStorageSaveData ofd_packets/00076615 [12:40:36]File name is /storage/ofd_packets/00076615 [12:40:36]Write 350 bytes [12:40:36]NVStorageSaveData done [12:40:36]OFDSenderStorePacket done [12:40:36]KKMCreateOFDPacket done [12:40:36]NVStorageSaveData kkm_last_timestamp [12:40:36]File name is /storage/kkm_last_timestamp [12:40:36]Write 4 bytes [12:40:36]NVStorageSaveData done [12:40:36]ExternCall_PrintAddStr [12:40:36]wPrintStart [12:40:36]Write to MH i2c: 01 00 00 7F 01 80 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: 01 [12:40:36]MH_I2C_Read... [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 7F 01 00 00 00 00 00 FF 0F 95 [12:40:36]RasterBufferAndPrint [12:40:36]line Счет N : (3)220758 [12:40:36]line ИНН: 02508201610067 [12:40:36]line Контрольно-Кассовый Чек [12:40:36]line ПРОДАЖА [12:40:36]line Товар: 5449000189349 [12:40:36]line Холодный чай Fuse манго ананас 0,5л [12:40:36]line 2.000 * 75.00 [12:40:36]line = 150.00 [12:40:36]line НДС 12% НСП 1% [12:40:36]line > о реализуемом товаре [12:40:36]line ИТОГО: 150.00 [12:40:36]line НСП 1% : 1.33 [12:40:36]line НДС 12% : 15.93 [12:40:36]line Наличными: 150.00 [12:40:36]line Безнал.: 0.00 [12:40:36]line Место: АЗС № 144 "Партнер Нефть" [12:40:36]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:40:36]line СНО: Общий режим [12:40:36]line Чек 56 20.06.2024 12:40 [12:40:36]line Смена: 393 ФФД: 1.0 [12:40:36]line ЗНМ: 0300000170 [12:40:36]line РНМ: 0000000000095696 [12:40:36]line Версия ККМ: 001 [12:40:36]line ФМ: 0000000000875009 [12:40:36]line ФД: 76615 [12:40:36]line ФПД: 42676401685639 [12:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124035&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76615&fm=42676401685639&tin=02508201610067®Number=0000000000095696&sum=15000 [12:40:36]line 0 [12:40:36]OFD Sender: Processing packet 76615 [packets to send 351, broken 350] [12:40:36]ProducePacketName [12:40:36]name=ofd_packets/00076615 [12:40:36]OFD Sender: To server: pG, [12:40:36]CommunicateWithHost lk.salyk.kg:30040 [12:40:36]ConnectInit lk.salyk.kg [12:40:36]written 0, free lines is 4095 [12:40:36]Write to MH i2c: 01 00 00 A8 01 A9 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: 01 [12:40:36]MH_I2C_Read... [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 A8 01 00 00 00 00 00 D7 0C 93 [12:40:36]RasterBufferAndPrint [12:40:36]line [12:40:36]line [12:40:36]line [12:40:36]line [12:40:36]line [12:40:36]written 0, free lines is 3290 [12:40:36]MH_Cut [12:40:36]Write to MH i2c: D1 01 00 AF 01 01 82 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: D1 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: D1 01 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: D1 01 00 AF 01 00 81 [12:40:36]Write to MH i2c: 01 00 00 B0 01 B1 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:37]Connected sock=11 [12:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 40 01 00 00 1E D0 38 01 3B 02 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 23 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2B 01 00 35 04 06 00 26 D0 5F C3 44 87 6C A1 81 B8 D9 7F DC 1C [12:40:37]*** Cut start [12:40:37]*** Partial cut [12:40:37]*** CUTSNS_PIN = 1 [12:40:37]*** CUTSNS_PIN = 0 [12:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 3E 58 47 00 89 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2B 01 00 F4 03 04 00 E5 C9 73 66 B6 04 01 00 00 84 92 DB D5 A4 4D 37 65 [12:40:37]CommunicateWithHost err = 0 [12:40:37]CheckOFDResponse [12:40:37]1017 (14) - 77093643461234 [12:40:37]1041 (16) - 0000000000875009 [12:40:37]1040 (4) - 76615 [12:40:37]1012 (4) - 20.06.2024 06:19 [12:40:37]1206 (1) - 0 [12:40:37]OFD Sender: Remove packet 76615 [12:40:37]ProducePacketName [12:40:37]name=ofd_packets/00076615 [12:40:37]NVStorageDeleteData [12:40:38]*** Brake cut motor [12:40:38]Read from MH i2c: 01 [12:40:38]MH_I2C_Read... [12:40:38]*** Stop cut motor [12:40:38]*** Cut end [12:40:38]Read from MH i2c: 01 07 00 [12:40:38]MH_I2C_Read... [12:40:38]OFD Sender: No OFD packet to send [12:40:38]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 FF 0F C6 [12:40:38]process_action close_receipt done [12:40:38]requested_data is exist [12:40:38]produce_requested_data [12:40:38]requested_item fm.sn is exist - process it [12:40:38]wFMCommunicate request_size=4 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 11 00 00 [12:40:38]Write to MH i2c: E2 08 00 B1 01 80 11 00 00 00 00 00 00 2C [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 17 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 17 00 B1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7C [12:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:40:38]wFMCommunicate OK [12:40:38]requested_item fd.num is exist - process it [12:40:38]SAM_PROTO_GetFieldsCounters [12:40:38]wFMCommunicate request_size=4 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 13 00 00 [12:40:38]Write to MH i2c: E2 08 00 B2 01 80 13 00 00 00 00 00 00 2F [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 62 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 62 00 B2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 47 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:40:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 47 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:38]wFMCommunicate OK [12:40:38]SAM_PROTO_GetFieldsCounters done [12:40:38]requested_item shift.num is exist - process it [12:40:38]requested_item shift.opened is exist - process it [12:40:38]req_shift_opened [12:40:38]FM_GetShiftState [12:40:38]SAM_PROTO_GetShiftState [12:40:38]wFMCommunicate request_size=4 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 13 01 00 [12:40:38]Write to MH i2c: E2 08 00 B3 01 80 13 01 00 00 00 00 00 31 [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 0E 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 0E 00 B3 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 0D [12:40:38]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [12:40:38]wFMCommunicate OK [12:40:38]SAM_PROTO_GetShiftState done [12:40:38]FM_GetShiftState done [12:40:38]req_shift_opened done [12:40:38]requested_item shift.open_date is exist - process it [12:40:38]req_shift_open_date [12:40:38]req_shift_open_date done [12:40:38]produce_requested_data done [12:40:38]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76615,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [12:40:38]process_action_free close_receipt [12:40:38]json_value_free [12:40:38]json_value_free done [12:40:38]process_json_proto returns [12:40:38]Send response to host [12:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76615,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [12:40:38]free response buf [12:40:38]execute_script done [12:40:38]execute_script returns [12:40:38]free content buf [12:40:38]Sock 10.Close socket [12:40:38]Sock 10.Thread stoped [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]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: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:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04: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:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05: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: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]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:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:49]accept exits with 7 [13:14:49]New connection [13:14:49]New thread 3066948964 created [13:14:49]Thread 3066805604 joined [13:14:49]Waiting for new connection... [13:14:49] Sock 7.Parse request [13:14:49]Sock 7.Check first char [13:14:49]Sock 7.First char is OK [13:14:49]request: POST /json_proto HTTP/1.0 [13:14:49]Method: POST [13:14:49]URL: /json_proto [13:14:49]Method is POST - this is cgi request [13:14:49]url: /json_proto [13:14:49]query_string will be loaded in cgi processing [13:14:49]execute_cgi json_proto POST (null) [13:14:49]execute_cgi path=json_proto method=POST [13:14:49]POST find Content-Length [13:14:49]Host: 172.17.39.195:8080 [13:14:49]Content-Length: 882 [13:14:49]Content-Type: application/json [13:14:49] [13:14:49]POST finish read [13:14:49]Found Content-Length = 882 [13:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220759", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:49]execute_script... [13:14: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 : (3)220759", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:49]POST & json_proto [13:14:49]process_json_proto [13:14:49]json parsed OK: [13:14:49]protocol is kg_v1.0 [13:14:49]action value=close_receipt [13:14:49]process_action close_receipt [13:14:49]cmd_close_receipt [13:14:49]MH_GetDate [13:14:49]Write to MH i2c: F0 00 00 B4 01 A4 [13:14:49]Write i2c OK [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: F0 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: F0 09 00 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: F0 09 00 B4 01 00 4A 2B 74 66 99 81 91 64 0B [13:14:49]GetLastDocTimeStamp 1718887235 [13:14:49]current date 1718889290 [13:14:49]FM_GetShiftState [13:14:49]SAM_PROTO_GetShiftState [13:14:49]wFMCommunicate request_size=4 [13:14:49]MH_SAM_APDU [13:14:49]CAPDU: 80 13 01 00 [13:14:49]Write to MH i2c: E2 08 00 B5 01 80 13 01 00 00 00 00 00 33 [13:14:49]Write i2c OK [13:14:49]MH_I2C_Read... [13:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:49]Read from MH i2c: E2 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 0E 00 [13:14:49]MH_I2C_Read... [13:14:49]Read from MH i2c: E2 0E 00 B5 01 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 0F [13:14:49]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:14:49]wFMCommunicate OK [13:14:49]SAM_PROTO_GetShiftState done [13:14:49]FM_GetShiftState done [13:14:49]opened in 1718843774 [13:14:49]opened+sec_in_day 1718930174 [13:14:49]quantity*price = 8000 [13:14:49]sum+1 = 8001 [13:14:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 3.000 * 75.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.70 НДС 12% : 32.39 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 57 20.06.2024 13:14 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76616 ФПД: 81830443515694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131450&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76616&fm=81830443515694&tin=02508201610067®Number=0000000000095696&sum=30500 0 [13:14:50]StoreToDocumentArchive [13:14:50]shift 393 fd 76616 [13:14:50]save to /storage/0393/doc_00076616 [13:14:50]save last doc name /storage/0393/doc_00076616 to /storage/kkm_last_doc_name [13:14:50]save OK [13:14:50]Clear old archive folders... [13:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=383 [13:14:50]tlvbuf is 00E95CF0 [13:14:50]SAM_PROTO_ClearQueue [13:14:50]wFMCommunicate request_size=4 [13:14:50]MH_SAM_APDU [13:14:50]CAPDU: 80 09 00 00 [13:14:50]Write to MH i2c: E2 08 00 C2 01 80 09 00 00 00 00 00 00 35 [13:14:50]Write i2c OK [13:14:50]MH_I2C_Read... [13:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:50]Read from MH i2c: E2 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: E2 03 00 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: E2 03 00 C2 01 00 90 00 37 [13:14:50]RAPDU: 90 00 [13:14:50]wFMCommunicate OK [13:14:50]SAM_PROTO_ClearQueue done [13:14:50]KKMCreateOFDPacket [13:14:50]OFDProtocolAddRootSTLVToBuf [13:14:50]FM_MakeSignedData [13:14:50]FM_MakeSignedData [13:14:50]SAM_PROTO_SignData [13:14:50]wFMCommunicate request_size=4 [13:14:50]MH_SAM_APDU [13:14:50]CAPDU: 80 0D 01 02 [13:14:50]Write to MH i2c: E2 08 00 C3 01 80 0D 01 02 00 00 00 00 3D [13:14:50]Write i2c OK [13:14:50]MH_I2C_Read... [13:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:50]Read from MH i2c: E2 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: E2 03 00 [13:14:50]MH_I2C_Read... [13:14:50]Read from MH i2c: E2 03 00 C3 01 00 90 00 38 [13:14:50]RAPDU: 90 00 [13:14:50]wFMCommunicate OK [13:14:50]wFMCommunicate request_size=255 [13:14:50]MH_SAM_APDU [13:14:50]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E [13:14:50]Write to MH i2c: E2 02 01 C4 01 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 00 00 DC [13:14:50]Write i2c OK [13:14:50]MH_I2C_Read... [13:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:51]Read from MH i2c: E2 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 03 00 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 03 00 C4 01 00 90 00 39 [13:14:51]RAPDU: 90 00 [13:14:51]wFMCommunicate OK [13:14:51]wFMCommunicate request_size=142 [13:14:51]MH_SAM_APDU [13:14:51]CAPDU: 80 0D 02 02 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 4A 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 48 2B 01 00 35 04 06 00 4A 6C A2 84 7F 2E [13:14:51]Write to MH i2c: E2 91 00 C5 01 80 0D 02 02 89 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 4A 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 48 2B 01 00 35 04 06 00 4A 6C A2 84 7F 2E 00 00 E4 [13:14:51]Write i2c OK [13:14:51]MH_I2C_Read... [13:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:51]Read from MH i2c: E2 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 03 00 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 03 00 C5 01 00 90 00 3A [13:14:51]RAPDU: 90 00 [13:14:51]wFMCommunicate OK [13:14:51]wFMCommunicate request_size=4 [13:14:51]MH_SAM_APDU [13:14:51]CAPDU: 80 0D 03 02 [13:14:51]Write to MH i2c: E2 08 00 C6 01 80 0D 03 02 00 00 00 00 42 [13:14:51]Write i2c OK [13:14:51]MH_I2C_Read... [13:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:51]Read from MH i2c: E2 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 0B 00 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 0B 00 C6 01 00 25 B0 3D 8C 35 ED B6 04 90 00 BD [13:14:51]RAPDU: 25 B0 3D 8C 35 ED B6 04 90 00 [13:14:51]wFMCommunicate OK [13:14:51]SAM_PROTO_SignData done [13:14:51]FM_MakeSignedData done [13:14:51]CreateOFDProtocolMessage [13:14:51]wFMCommunicate request_size=4 [13:14:51]MH_SAM_APDU [13:14:51]CAPDU: 80 11 00 00 [13:14:51]Write to MH i2c: E2 08 00 C7 01 80 11 00 00 00 00 00 00 42 [13:14:51]Write i2c OK [13:14:51]MH_I2C_Read... [13:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:51]Read from MH i2c: E2 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 17 00 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: E2 17 00 C7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 92 [13:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:14:51]wFMCommunicate OK [13:14:51]CreateOFDProtocolMessage done [13:14:51]OFDSenderStorePacket 76616 [13:14:51]StoreOFDPacket docnum=76616 [13:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 93 01 00 00 A2 46 8B 01 DB 45 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 4A 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 48 2B 01 00 35 04 06 00 4A 6C A2 84 7F 2E 25 B0 3D 8C 35 ED B6 04 [13:14:51]CheckFolder [13:14:51]dirname=/storage/ofd_packets [13:14:51]CheckFolder done [13:14:51]ProducePacketName [13:14:51]name=ofd_packets/00076616 [13:14:51]NVStorageSaveData ofd_packets/00076616 [13:14:51]File name is /storage/ofd_packets/00076616 [13:14:51]Write 433 bytes [13:14:51]NVStorageSaveData done [13:14:51]OFDSenderStorePacket done [13:14:51]KKMCreateOFDPacket done [13:14:51]NVStorageSaveData kkm_last_timestamp [13:14:51]File name is /storage/kkm_last_timestamp [13:14:51]Write 4 bytes [13:14:51]NVStorageSaveData done [13:14:51]ExternCall_PrintAddStr [13:14:51]wPrintStart [13:14:51]Write to MH i2c: 01 00 00 C8 01 C9 [13:14:51]Write i2c OK [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: 01 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: 01 07 00 [13:14:51]MH_I2C_Read... [13:14:51]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [13:14:51]RasterBufferAndPrint [13:14:51]line Счет N : (3)220759 [13:14:51]line ИНН: 02508201610067 [13:14:51]line Контрольно-Кассовый Чек [13:14:51]line ПРОДАЖА [13:14:51]line Товар: 4870001570057 [13:14:51]line Напиток Pepsi 0,5л [13:14:51]line 1.000 * 80.00 [13:14:51]line = 80.00 [13:14:51]line НДС 12% НСП 1% [13:14:51]line > о реализуемом товаре [13:14:51]line Товар: 4870112002775 [13:14:51]line Шок батончик ALBENI BITES 80гр [13:14:51]line 3.000 * 75.00 [13:14:51]line = 225.00 [13:14:51]line НДС 12% НСП 1% [13:14:51]line > о реализуемом товаре [13:14:51]line ИТОГО: 305.00 [13:14:51]line НСП 1% : 2.70 [13:14:51]line НДС 12% : 32.39 [13:14:51]line Наличными: 305.00 [13:14:51]line Безнал.: 0.00 [13:14:51]line Место: АЗС № 144 "Партнер Нефть" [13:14:51]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:14:51]line СНО: Общий режим [13:14:51]line Чек 57 20.06.2024 13:14 [13:14:51]line Смена: 393 ФФД: 1.0 [13:14:51]line ЗНМ: 0300000170 [13:14:51]line РНМ: 0000000000095696 [13:14:51]line Версия ККМ: 001 [13:14:51]line ФМ: 0000000000875009 [13:14:51]line ФД: 76616 [13:14:51]line ФПД: 81830443515694 [13:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131450&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76616&fm=81830443515694&tin=02508201610067®Number=0000000000095696&sum=30500 [13:14:51]line 0 [13:14:51]OFD Sender: Processing packet 76616 [packets to send 351, broken 350] [13:14:51]ProducePacketName [13:14:51]name=ofd_packets/00076616 [13:14:51]OFD Sender: To server: pG, [13:14:51]CommunicateWithHost lk.salyk.kg:30040 [13:14:51]ConnectInit lk.salyk.kg [13:14:51]written 0, free lines is 4095 [13:14:52]Connected sock=10 [13:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 93 01 00 00 A2 46 8B 01 DB 45 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 4A 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 48 2B 01 00 35 04 06 00 4A 6C A2 84 7F 2E 25 B0 3D 8C 35 ED B6 04 [13:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 82 B8 47 00 D1 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 48 2B 01 00 F4 03 04 00 EB D1 73 66 B6 04 01 00 00 9B A4 74 79 FF 04 B6 C0 [13:14:52]CommunicateWithHost err = 0 [13:14:52]CheckOFDResponse [13:14:52]1017 (14) - 77093643461234 [13:14:52]1041 (16) - 0000000000875009 [13:14:52]1040 (4) - 76616 [13:14:52]1012 (4) - 20.06.2024 06:53 [13:14:52]1206 (1) - 0 [13:14:52]OFD Sender: Remove packet 76616 [13:14:52]ProducePacketName [13:14:52]name=ofd_packets/00076616 [13:14:52]NVStorageDeleteData [13:14:52]Write to MH i2c: 01 00 00 F7 01 F8 [13:14:52]Write i2c OK [13:14:52]MH_I2C_Read... [13:14:52]Read from MH i2c: 01 [13:14:52]MH_I2C_Read... [13:14:52]Read from MH i2c: 01 07 00 [13:14:52]MH_I2C_Read... [13:14:52]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 88 0C 93 [13:14:52]RasterBufferAndPrint [13:14:52]line [13:14:52]line [13:14:52]line [13:14:52]line [13:14:52]line [13:14:52]written 0, free lines is 3215 [13:14:52]MH_Cut [13:14:52]Write to MH i2c: D1 01 00 FE 01 01 D1 [13:14:52]Write i2c OK [13:14:52]MH_I2C_Read... [13:14:52]Read from MH i2c: D1 [13:14:52]MH_I2C_Read... [13:14:52]Read from MH i2c: D1 01 00 [13:14:52]MH_I2C_Read... [13:14:52]Read from MH i2c: D1 01 00 FE 01 00 D0 [13:14:52]Write to MH i2c: 01 00 00 FF 01 00 [13:14:52]Write i2c OK [13:14:52]MH_I2C_Read... [13:14:52]OFD Sender: No OFD packet to send [13:14:53]*** Cut start [13:14:53]*** Partial cut [13:14:53]*** CUTSNS_PIN = 1 [13:14:53]*** CUTSNS_PIN = 0 [13:14:53]*** Brake cut motor [13:14:53]Read from MH i2c: 01 [13:14:53]MH_I2C_Read... [13:14:53]*** Stop cut motor [13:14:53]*** Cut end [13:14:53]Read from MH i2c: 01 07 00 [13:14:53]MH_I2C_Read... [13:14:53]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 FF 0F 15 [13:14:53]process_action close_receipt done [13:14:53]requested_data is exist [13:14:53]produce_requested_data [13:14:53]requested_item fm.sn is exist - process it [13:14:53]wFMCommunicate request_size=4 [13:14:53]MH_SAM_APDU [13:14:53]CAPDU: 80 11 00 00 [13:14:53]Write to MH i2c: E2 08 00 00 02 80 11 00 00 00 00 00 00 7C [13:14:53]Write i2c OK [13:14:53]MH_I2C_Read... [13:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:53]Read from MH i2c: E2 [13:14:53]MH_I2C_Read... [13:14:53]Read from MH i2c: E2 17 00 [13:14:53]MH_I2C_Read... [13:14:53]Read from MH i2c: E2 17 00 00 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CC [13:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:14:53]wFMCommunicate OK [13:14:53]requested_item fd.num is exist - process it [13:14:53]SAM_PROTO_GetFieldsCounters [13:14:53]wFMCommunicate request_size=4 [13:14:53]MH_SAM_APDU [13:14:53]CAPDU: 80 13 00 00 [13:14:53]Write to MH i2c: E2 08 00 01 02 80 13 00 00 00 00 00 00 7F [13:14:53]Write i2c OK [13:14:53]MH_I2C_Read... [13:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:54]Read from MH i2c: E2 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 62 00 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 62 00 01 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 48 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [13:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 48 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:54]wFMCommunicate OK [13:14:54]SAM_PROTO_GetFieldsCounters done [13:14:54]requested_item shift.num is exist - process it [13:14:54]requested_item shift.opened is exist - process it [13:14:54]req_shift_opened [13:14:54]FM_GetShiftState [13:14:54]SAM_PROTO_GetShiftState [13:14:54]wFMCommunicate request_size=4 [13:14:54]MH_SAM_APDU [13:14:54]CAPDU: 80 13 01 00 [13:14:54]Write to MH i2c: E2 08 00 02 02 80 13 01 00 00 00 00 00 81 [13:14:54]Write i2c OK [13:14:54]MH_I2C_Read... [13:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:54]Read from MH i2c: E2 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 0E 00 [13:14:54]MH_I2C_Read... [13:14:54]Read from MH i2c: E2 0E 00 02 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5D [13:14:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:14:54]wFMCommunicate OK [13:14:54]SAM_PROTO_GetShiftState done [13:14:54]FM_GetShiftState done [13:14:54]req_shift_opened done [13:14:54]requested_item shift.open_date is exist - process it [13:14:54]req_shift_open_date [13:14:54]req_shift_open_date done [13:14:54]produce_requested_data done [13:14:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76616,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [13:14:54]process_action_free close_receipt [13:14:54]json_value_free [13:14:54]json_value_free done [13:14:54]process_json_proto returns [13:14:54]Send response to host [13:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76616,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [13:14:54]free response buf [13:14:54]execute_script done [13:14:54]execute_script returns [13:14:54]free content buf [13:14:54]Sock 7.Close socket [13:14:54]Sock 7.Thread stoped [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:21]accept exits with 9 [13:17:21]New connection [13:17:21]New thread 3066805604 created [13:17:21]Thread 3066948964 joined [13:17:21]Waiting for new connection... [13:17:21] Sock 9.Parse request [13:17:21]Sock 9.Check first char [13:17:21]Sock 9.First char is OK [13:17:21]request: POST /json_proto HTTP/1.0 [13:17:21]Method: POST [13:17:21]URL: /json_proto [13:17:21]Method is POST - this is cgi request [13:17:21]url: /json_proto [13:17:21]query_string will be loaded in cgi processing [13:17:21]execute_cgi json_proto POST (null) [13:17:21]execute_cgi path=json_proto method=POST [13:17:21]POST find Content-Length [13:17:21]Host: 172.17.39.195:8080 [13:17:21]Content-Length: 655 [13:17:21]Content-Type: application/json [13:17:21] [13:17:21]POST finish read [13:17:21]Found Content-Length = 655 [13:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220760", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:21]execute_script... [13:17:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220760", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:21]POST & json_proto [13:17:21]process_json_proto [13:17:21]json parsed OK: [13:17:21]protocol is kg_v1.0 [13:17:21]action value=close_receipt [13:17:21]process_action close_receipt [13:17:21]cmd_close_receipt [13:17:21]MH_GetDate [13:17:21]Write to MH i2c: F0 00 00 03 02 F4 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 09 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 09 00 03 02 00 E2 2B 74 66 99 81 91 64 F3 [13:17:21]GetLastDocTimeStamp 1718889290 [13:17:21]current date 1718889442 [13:17:21]FM_GetShiftState [13:17:21]SAM_PROTO_GetShiftState [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 13 01 00 [13:17:21]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5F [13:17:21]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_GetShiftState done [13:17:21]FM_GetShiftState done [13:17:21]opened in 1718843774 [13:17:21]opened+sec_in_day 1718930174 [13:17:21]quantity*price = 9000 [13:17:21]sum+1 = 9001 [13:17:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 58 20.06.2024 13:17 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76617 ФПД: 196323595002091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131722&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76617&fm=196323595002091&tin=02508201610067®Number=0000000000095696&sum=9000 0 [13:17:22]StoreToDocumentArchive [13:17:22]shift 393 fd 76617 [13:17:22]save to /storage/0393/doc_00076617 [13:17:22]save last doc name /storage/0393/doc_00076617 to /storage/kkm_last_doc_name [13:17:22]save OK [13:17:22]Clear old archive folders... [13:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=282 [13:17:22]tlvbuf is 00E88D80 [13:17:22]SAM_PROTO_ClearQueue [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 09 00 00 [13:17:22]Write to MH i2c: E2 08 00 11 02 80 09 00 00 00 00 00 00 85 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 11 02 00 90 00 87 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_ClearQueue done [13:17:22]KKMCreateOFDPacket [13:17:22]OFDProtocolAddRootSTLVToBuf [13:17:22]FM_MakeSignedData [13:17:22]FM_MakeSignedData [13:17:22]SAM_PROTO_SignData [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 01 02 [13:17:22]Write to MH i2c: E2 08 00 12 02 80 0D 01 02 00 00 00 00 8D [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 12 02 00 90 00 88 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=255 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 E2 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 [13:17:22]Write to MH i2c: E2 02 01 13 02 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 E2 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 00 00 0D [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=41 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2B 01 00 35 04 06 00 B2 8E 26 24 20 EB [13:17:22]Write to MH i2c: E2 2C 00 14 02 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2B 01 00 35 04 06 00 B2 8E 26 24 20 EB 00 00 66 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 03 02 [13:17:22]Write to MH i2c: E2 08 00 15 02 80 0D 03 02 00 00 00 00 92 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 15 02 00 3B 0A AD 7C 75 41 A0 D5 90 00 2C [13:17:22]RAPDU: 3B 0A AD 7C 75 41 A0 D5 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_SignData done [13:17:22]FM_MakeSignedData done [13:17:22]CreateOFDProtocolMessage [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 11 00 00 [13:17:22]Write to MH i2c: E2 08 00 16 02 80 11 00 00 00 00 00 00 92 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 16 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E2 [13:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:17:22]wFMCommunicate OK [13:17:22]CreateOFDProtocolMessage done [13:17:22]OFDSenderStorePacket 76617 [13:17:22]StoreOFDPacket docnum=76617 [13:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 80 16 26 01 42 0E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 E2 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2B 01 00 35 04 06 00 B2 8E 26 24 20 EB 3B 0A AD 7C 75 41 A0 D5 [13:17:22]CheckFolder [13:17:22]dirname=/storage/ofd_packets [13:17:22]CheckFolder done [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00076617 [13:17:22]NVStorageSaveData ofd_packets/00076617 [13:17:22]File name is /storage/ofd_packets/00076617 [13:17:22]Write 332 bytes [13:17:22]NVStorageSaveData done [13:17:22]OFDSenderStorePacket done [13:17:22]KKMCreateOFDPacket done [13:17:22]NVStorageSaveData kkm_last_timestamp [13:17:22]File name is /storage/kkm_last_timestamp [13:17:22]Write 4 bytes [13:17:22]NVStorageSaveData done [13:17:22]ExternCall_PrintAddStr [13:17:22]wPrintStart [13:17:22]Write to MH i2c: 01 00 00 17 02 19 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [13:17:22]RasterBufferAndPrint [13:17:22]line Счет N : (3)220760 [13:17:22]line ИНН: 02508201610067 [13:17:22]line Контрольно-Кассовый Чек [13:17:22]line ПРОДАЖА [13:17:22]line Товар: 4870001159955 [13:17:22]line Вода ASU пит н.газ ПЭТ 1л [13:17:22]line 2.000 * 45.00 [13:17:22]line = 90.00 [13:17:22]line НДС 12% НСП 1% [13:17:22]line > о реализуемом товаре [13:17:22]line ИТОГО: 90.00 [13:17:22]line НСП 1% : 0.80 [13:17:22]line НДС 12% : 9.56 [13:17:22]line Наличными: 90.00 [13:17:22]line Безнал.: 0.00 [13:17:22]line Место: АЗС № 144 "Партнер Нефть" [13:17:22]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:17:22]line СНО: Общий режим [13:17:22]line Чек 58 20.06.2024 13:17 [13:17:22]line Смена: 393 ФФД: 1.0 [13:17:22]line ЗНМ: 0300000170 [13:17:22]line РНМ: 0000000000095696 [13:17:22]line Версия ККМ: 001 [13:17:22]line ФМ: 0000000000875009 [13:17:22]line ФД: 76617 [13:17:22]line ФПД: 196323595002091 [13:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131722&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76617&fm=196323595002091&tin=02508201610067®Number=0000000000095696&sum=9000 [13:17:23]line 0 [13:17:23]OFD Sender: Processing packet 76617 [packets to send 351, broken 350] [13:17:23]ProducePacketName [13:17:23]name=ofd_packets/00076617 [13:17:23]OFD Sender: To server: pG, [13:17:23]CommunicateWithHost lk.salyk.kg:30040 [13:17:23]ConnectInit lk.salyk.kg [13:17:23]written 0, free lines is 4095 [13:17:23]Write to MH i2c: 01 00 00 3F 02 41 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 07 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 F4 0C 48 [13:17:23]RasterBufferAndPrint [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]written 0, free lines is 3323 [13:17:23]MH_Cut [13:17:23]Write to MH i2c: D1 01 00 46 02 01 1A [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 46 02 00 19 [13:17:23]Write to MH i2c: 01 00 00 47 02 49 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:24]Connected sock=6 [13:17:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 80 16 26 01 42 0E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 E2 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2B 01 00 35 04 06 00 B2 8E 26 24 20 EB 3B 0A AD 7C 75 41 A0 D5 [13:17:24]*** Cut start [13:17:24]*** Partial cut [13:17:24]*** CUTSNS_PIN = 1 [13:17:24]*** CUTSNS_PIN = 0 [13:17:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E8 ED 47 00 1D 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2B 01 00 F4 03 04 00 84 D2 73 66 B6 04 01 00 00 4E BE 6B E7 3A D1 E4 13 [13:17:24]CommunicateWithHost err = 0 [13:17:24]CheckOFDResponse [13:17:24]1017 (14) - 77093643461234 [13:17:24]1041 (16) - 0000000000875009 [13:17:24]1040 (4) - 76617 [13:17:24]1012 (4) - 20.06.2024 06:56 [13:17:24]1206 (1) - 0 [13:17:24]OFD Sender: Remove packet 76617 [13:17:24]ProducePacketName [13:17:24]name=ofd_packets/00076617 [13:17:24]NVStorageDeleteData [13:17:24]*** Brake cut motor [13:17:25]OFD Sender: No OFD packet to send [13:17:25]Read from MH i2c: 01 [13:17:25]MH_I2C_Read... [13:17:25]*** Stop cut motor [13:17:25]*** Cut end [13:17:25]Read from MH i2c: 01 07 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 47 02 00 00 00 00 00 FF 0F 5E [13:17:25]process_action close_receipt done [13:17:25]requested_data is exist [13:17:25]produce_requested_data [13:17:25]requested_item fm.sn is exist - process it [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 11 00 00 [13:17:25]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 14 [13:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:17:25]wFMCommunicate OK [13:17:25]requested_item fd.num is exist - process it [13:17:25]SAM_PROTO_GetFieldsCounters [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 13 00 00 [13:17:25]Write to MH i2c: E2 08 00 49 02 80 13 00 00 00 00 00 00 C7 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 62 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 62 00 49 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 49 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [13:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 49 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetFieldsCounters done [13:17:25]requested_item shift.num is exist - process it [13:17:25]requested_item shift.opened is exist - process it [13:17:25]req_shift_opened [13:17:25]FM_GetShiftState [13:17:25]SAM_PROTO_GetShiftState [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 13 01 00 [13:17:25]Write to MH i2c: E2 08 00 4A 02 80 13 01 00 00 00 00 00 C9 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:25]Read from MH i2c: E2 0E 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 4A 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A5 [13:17:25]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetShiftState done [13:17:25]FM_GetShiftState done [13:17:25]req_shift_opened done [13:17:25]requested_item shift.open_date is exist - process it [13:17:25]req_shift_open_date [13:17:25]req_shift_open_date done [13:17:25]produce_requested_data done [13:17:25]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76617,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [13:17:25]process_action_free close_receipt [13:17:25]json_value_free [13:17:25]json_value_free done [13:17:25]process_json_proto returns [13:17:25]Send response to host [13:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76617,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [13:17:25]free response buf [13:17:25]execute_script done [13:17:25]execute_script returns [13:17:25]free content buf [13:17:25]Sock 9.Close socket [13:17:25]Sock 9.Thread stoped [13:17:25]accept exits with 10 [13:17:25]New connection [13:17:25]New thread 3066948964 created [13:17:25]Thread 3066805604 joined [13:17:25]Waiting for new connection... [13:17:25] Sock 10.Parse request [13:17:25]Sock 10.Check first char [13:17:25]Sock 10.First char is OK [13:17:25]request: POST /json_proto HTTP/1.0 [13:17:25]Method: POST [13:17:25]URL: /json_proto [13:17:25]Method is POST - this is cgi request [13:17:25]url: /json_proto [13:17:25]query_string will be loaded in cgi processing [13:17:25]execute_cgi json_proto POST (null) [13:17:25]execute_cgi path=json_proto method=POST [13:17:25]POST find Content-Length [13:17:25]Host: 172.17.39.195:8080 [13:17:25]Content-Length: 662 [13:17:25]Content-Type: application/json [13:17:25] [13:17:25]POST finish read [13:17:25]Found Content-Length = 662 [13:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693092", "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.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:25]execute_script... [13:17: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)1693092", "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.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:25]POST & json_proto [13:17:25]process_json_proto [13:17:25]json parsed OK: [13:17:25]protocol is kg_v1.0 [13:17:25]action value=close_receipt [13:17:25]process_action close_receipt [13:17:25]cmd_close_receipt [13:17:25]MH_GetDate [13:17:25]Write to MH i2c: F0 00 00 4B 02 3C [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: F0 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: F0 09 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: F0 09 00 4B 02 00 E6 2B 74 66 99 81 91 64 3F [13:17:25]GetLastDocTimeStamp 1718889442 [13:17:25]current date 1718889446 [13:17:25]FM_GetShiftState [13:17:25]SAM_PROTO_GetShiftState [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 13 01 00 [13:17:25]Write to MH i2c: E2 08 00 4C 02 80 13 01 00 00 00 00 00 CB [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 4C 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A7 [13:17:25]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetShiftState done [13:17:25]FM_GetShiftState done [13:17:25]opened in 1718843774 [13:17:25]opened+sec_in_day 1718930174 [13:17:25]quantity*price = 66400 [13:17:25]sum+1 = 66401 [13:17:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 Внесено: 5000.00 СДАЧА: 4336.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 59 20.06.2024 13:17 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76618 ФПД: 114290837967511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131726&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76618&fm=114290837967511&tin=02508201610067®Number=0000000000095696&sum=66400 [13:17:27]StoreToDocumentArchive [13:17:27]shift 393 fd 76618 [13:17:27]save to /storage/0393/doc_00076618 [13:17:27]save last doc name /storage/0393/doc_00076618 to /storage/kkm_last_doc_name [13:17:27]save OK [13:17:27]Clear old archive folders... [13:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:27]tlvbuf is 00E97950 [13:17:27]SAM_PROTO_ClearQueue [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 09 00 00 [13:17:27]Write to MH i2c: E2 08 00 59 02 80 09 00 00 00 00 00 00 CD [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 03 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 03 00 59 02 00 90 00 CF [13:17:27]RAPDU: 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_ClearQueue done [13:17:27]KKMCreateOFDPacket [13:17:27]OFDProtocolAddRootSTLVToBuf [13:17:27]FM_MakeSignedData [13:17:27]FM_MakeSignedData [13:17:27]SAM_PROTO_SignData [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 0D 01 02 [13:17:27]Write to MH i2c: E2 08 00 5A 02 80 0D 01 02 00 00 00 00 D5 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 03 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 03 00 5A 02 00 90 00 D0 [13:17:27]RAPDU: 90 00 [13:17:27]wFMCommunicate OK [13:17:27]wFMCommunicate request_size=255 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 E6 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2B 01 00 35 04 06 00 67 [13:17:27]Write to MH i2c: E2 02 01 5B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 E6 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2B 01 00 35 04 06 00 67 00 00 D3 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 03 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 03 00 5B 02 00 90 00 D1 [13:17:27]RAPDU: 90 00 [13:17:27]wFMCommunicate OK [13:17:27]wFMCommunicate request_size=10 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 0D 02 02 05 F2 68 CC 52 97 [13:17:27]Write to MH i2c: E2 0D 00 5C 02 80 0D 02 02 05 00 F2 68 CC 52 97 00 00 F1 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:27]Read from MH i2c: E2 03 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [13:17:27]RAPDU: 90 00 [13:17:27]wFMCommunicate OK [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 0D 03 02 [13:17:27]Write to MH i2c: E2 08 00 5D 02 80 0D 03 02 00 00 00 00 DA [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0B 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0B 00 5D 02 00 53 65 9F EE 3E 4F 91 FB 90 00 39 [13:17:27]RAPDU: 53 65 9F EE 3E 4F 91 FB 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_SignData done [13:17:27]FM_MakeSignedData done [13:17:27]CreateOFDProtocolMessage [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 11 00 00 [13:17:27]Write to MH i2c: E2 08 00 5E 02 80 11 00 00 00 00 00 00 DA [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 17 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 17 00 5E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2A [13:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:17:27]wFMCommunicate OK [13:17:27]CreateOFDProtocolMessage done [13:17:27]OFDSenderStorePacket 76618 [13:17:27]StoreOFDPacket docnum=76618 [13:17:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F3 36 07 01 97 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 E6 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2B 01 00 35 04 06 00 67 F2 68 CC 52 97 53 65 9F EE 3E 4F 91 FB [13:17:27]CheckFolder [13:17:27]dirname=/storage/ofd_packets [13:17:27]CheckFolder done [13:17:27]ProducePacketName [13:17:27]name=ofd_packets/00076618 [13:17:27]NVStorageSaveData ofd_packets/00076618 [13:17:27]File name is /storage/ofd_packets/00076618 [13:17:27]Write 301 bytes [13:17:27]NVStorageSaveData done [13:17:27]OFDSenderStorePacket done [13:17:27]KKMCreateOFDPacket done [13:17:27]NVStorageSaveData kkm_last_timestamp [13:17:27]File name is /storage/kkm_last_timestamp [13:17:27]Write 4 bytes [13:17:27]NVStorageSaveData done [13:17:27]ExternCall_PrintAddStr [13:17:27]wPrintStart [13:17:27]Write to MH i2c: 01 00 00 5F 02 61 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]OFD Sender: Processing packet 76618 [packets to send 351, broken 350] [13:17:27]ProducePacketName [13:17:27]name=ofd_packets/00076618 [13:17:27]OFD Sender: To server: pG, [13:17:27]CommunicateWithHost lk.salyk.kg:30040 [13:17:27]ConnectInit lk.salyk.kg [13:17:27]Read from MH i2c: 01 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 FF 0F 76 [13:17:27]RasterBufferAndPrint [13:17:27]line Счет N : (1)1693092 [13:17:27]line ИНН: 02508201610067 [13:17:27]line Контрольно-Кассовый Чек [13:17:27]line ПРОДАЖА [13:17:27]line ТРК (МРК, ГНК) : 63 [13:17:27]line Товар: 2710124130 [13:17:27]line Аи-92-К-5 [13:17:27]line 10.000 * 66.40 [13:17:27]line = 664.00 [13:17:27]line НДС 12% НСП 1% [13:17:27]line > о реализуемом товаре [13:17:27]line ИТОГО: 664.00 [13:17:27]line Внесено: 5000.00 [13:17:27]line СДАЧА: 4336.00 [13:17:27]line НСП 1% : 5.88 [13:17:27]line НДС 12% : 70.51 [13:17:27]line Наличными: 664.00 [13:17:27]line Безнал.: 0.00 [13:17:27]line Место: АЗС № 144 "Партнер Нефть" [13:17:27]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:17:27]line СНО: Общий режим [13:17:27]line Чек 59 20.06.2024 13:17 [13:17:27]line Смена: 393 ФФД: 1.0 [13:17:27]line ЗНМ: 0300000170 [13:17:27]line РНМ: 0000000000095696 [13:17:27]line Версия ККМ: 001 [13:17:27]line ФМ: 0000000000875009 [13:17:27]line ФД: 76618 [13:17:27]line ФПД: 114290837967511 [13:17:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131726&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76618&fm=114290837967511&tin=02508201610067®Number=0000000000095696&sum=66400 [13:17:27]written 0, free lines is 4095 [13:17:28]Connected sock=7 [13:17:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F3 36 07 01 97 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 E6 2B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2B 01 00 35 04 06 00 67 F2 68 CC 52 97 53 65 9F EE 3E 4F 91 FB [13:17:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 17 28 47 00 A1 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2B 01 00 F4 03 04 00 87 D2 73 66 B6 04 01 00 00 97 69 8D 1A 65 39 56 A7 [13:17:28]CommunicateWithHost err = 0 [13:17:28]CheckOFDResponse [13:17:28]1017 (14) - 77093643461234 [13:17:28]1041 (16) - 0000000000875009 [13:17:28]1040 (4) - 76618 [13:17:28]1012 (4) - 20.06.2024 06:56 [13:17:28]1206 (1) - 0 [13:17:28]OFD Sender: Remove packet 76618 [13:17:28]ProducePacketName [13:17:28]name=ofd_packets/00076618 [13:17:28]NVStorageDeleteData [13:17:28]Write to MH i2c: 01 00 00 89 02 8B [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: 01 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: 01 07 00 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 F8 0C 96 [13:17:28]RasterBufferAndPrint [13:17:28]line [13:17:28]line [13:17:28]line [13:17:28]line [13:17:28]line [13:17:28]written 0, free lines is 3337 [13:17:28]MH_Cut [13:17:28]Write to MH i2c: D1 01 00 90 02 01 64 [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: D1 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: D1 01 00 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: D1 01 00 90 02 00 63 [13:17:28]Write to MH i2c: 01 00 00 91 02 93 [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:28]OFD Sender: No OFD packet to send [13:17:29]*** Cut start [13:17:29]*** Partial cut [13:17:29]*** CUTSNS_PIN = 1 [13:17:29]*** CUTSNS_PIN = 0 [13:17:29]*** Brake cut motor [13:17:29]Read from MH i2c: 01 [13:17:29]MH_I2C_Read... [13:17:29]*** Stop cut motor [13:17:29]*** Cut end [13:17:29]Read from MH i2c: 01 07 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [13:17:29]process_action close_receipt done [13:17:29]requested_data is exist [13:17:29]produce_requested_data [13:17:29]requested_item fm.sn is exist - process it [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 11 00 00 [13:17:29]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 17 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5E [13:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:17:29]wFMCommunicate OK [13:17:29]requested_item fd.num is exist - process it [13:17:29]SAM_PROTO_GetFieldsCounters [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 13 00 00 [13:17:29]Write to MH i2c: E2 08 00 93 02 80 13 00 00 00 00 00 00 11 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 62 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 62 00 93 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [13:17:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:30]wFMCommunicate OK [13:17:30]SAM_PROTO_GetFieldsCounters done [13:17:30]requested_item shift.num is exist - process it [13:17:30]requested_item shift.opened is exist - process it [13:17:30]req_shift_opened [13:17:30]FM_GetShiftState [13:17:30]SAM_PROTO_GetShiftState [13:17:30]wFMCommunicate request_size=4 [13:17:30]MH_SAM_APDU [13:17:30]CAPDU: 80 13 01 00 [13:17:30]Write to MH i2c: E2 08 00 94 02 80 13 01 00 00 00 00 00 13 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:30]Read from MH i2c: E2 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 0E 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: E2 0E 00 94 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 EF [13:17:30]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:17:30]wFMCommunicate OK [13:17:30]SAM_PROTO_GetShiftState done [13:17:30]FM_GetShiftState done [13:17:30]req_shift_opened done [13:17:30]requested_item shift.open_date is exist - process it [13:17:30]req_shift_open_date [13:17:30]req_shift_open_date done [13:17:30]produce_requested_data done [13:17:30]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76618,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [13:17:30]process_action_free close_receipt [13:17:30]json_value_free [13:17:30]json_value_free done [13:17:30]process_json_proto returns [13:17:30]Send response to host [13:17:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76618,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [13:17:30]free response buf [13:17:30]execute_script done [13:17:30]execute_script returns [13:17:30]free content buf [13:17:30]Sock 10.Close socket [13:17:30]Sock 10.Thread stoped [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:52]accept exits with 6 [13:18:52]New connection [13:18:52]New thread 3066805604 created [13:18:52]Thread 3066948964 joined [13:18:52]Waiting for new connection... [13:18:52] Sock 6.Parse request [13:18:52]Sock 6.Check first char [13:18:52]Sock 6.First char is OK [13:18:52]request: POST /json_proto HTTP/1.0 [13:18:52]Method: POST [13:18:52]URL: /json_proto [13:18:52]Method is POST - this is cgi request [13:18:52]url: /json_proto [13:18:52]query_string will be loaded in cgi processing [13:18:52]execute_cgi json_proto POST (null) [13:18:52]execute_cgi path=json_proto method=POST [13:18:52]POST find Content-Length [13:18:52]Host: 172.17.39.195:8080 [13:18:52]Content-Length: 675 [13:18:52]Content-Type: application/json [13:18:52] [13:18:52]POST finish read [13:18:52]Found Content-Length = 675 [13:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:18:52]execute_script... [13:18: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)1693094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:18:52]POST & json_proto [13:18:52]process_json_proto [13:18:52]json parsed OK: [13:18:52]protocol is kg_v1.0 [13:18:52]action value=close_receipt [13:18:52]process_action close_receipt [13:18:52]cmd_close_receipt [13:18:52]MH_GetDate [13:18:52]Write to MH i2c: F0 00 00 95 02 86 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: F0 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: F0 09 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: F0 09 00 95 02 00 3D 2C 74 66 99 81 91 64 E1 [13:18:52]GetLastDocTimeStamp 1718889446 [13:18:52]current date 1718889533 [13:18:52]FM_GetShiftState [13:18:52]SAM_PROTO_GetShiftState [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 13 01 00 [13:18:52]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0E 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F1 [13:18:52]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:18:52]wFMCommunicate OK [13:18:52]SAM_PROTO_GetShiftState done [13:18:52]FM_GetShiftState done [13:18:52]opened in 1718843774 [13:18:52]opened+sec_in_day 1718930174 [13:18:52]quantity*price = 70056 [13:18:52]sum+1 = 70058 [13:18:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 60 20.06.2024 13:18 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76619 ФПД: 184568061423805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131853&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76619&fm=184568061423805&tin=02508201610067®Number=0000000000095696&sum=70000 [13:18:53]StoreToDocumentArchive [13:18:53]shift 393 fd 76619 [13:18:53]save to /storage/0393/doc_00076619 [13:18:53]save last doc name /storage/0393/doc_00076619 to /storage/kkm_last_doc_name [13:18:53]save OK [13:18:53]Clear old archive folders... [13:18:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:18:53]tlvbuf is 00E80BD0 [13:18:53]SAM_PROTO_ClearQueue [13:18:53]wFMCommunicate request_size=4 [13:18:53]MH_SAM_APDU [13:18:53]CAPDU: 80 09 00 00 [13:18:53]Write to MH i2c: E2 08 00 A3 02 80 09 00 00 00 00 00 00 17 [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:53]Read from MH i2c: E2 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 A3 02 00 90 00 19 [13:18:53]RAPDU: 90 00 [13:18:53]wFMCommunicate OK [13:18:53]SAM_PROTO_ClearQueue done [13:18:53]KKMCreateOFDPacket [13:18:53]OFDProtocolAddRootSTLVToBuf [13:18:53]FM_MakeSignedData [13:18:53]FM_MakeSignedData [13:18:53]SAM_PROTO_SignData [13:18:53]wFMCommunicate request_size=4 [13:18:53]MH_SAM_APDU [13:18:53]CAPDU: 80 0D 01 02 [13:18:53]Write to MH i2c: E2 08 00 A4 02 80 0D 01 02 00 00 00 00 1F [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:53]Read from MH i2c: E2 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [13:18:53]RAPDU: 90 00 [13:18:53]wFMCommunicate OK [13:18:53]wFMCommunicate request_size=255 [13:18:53]MH_SAM_APDU [13:18:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 3C 00 00 00 F4 03 04 00 3D 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2B 01 00 35 04 06 00 A7 DD 19 BC [13:18:53]Write to MH i2c: E2 02 01 A5 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 3C 00 00 00 F4 03 04 00 3D 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2B 01 00 35 04 06 00 A7 DD 19 BC 00 00 F8 [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:54]OFD Sender: No OFD packet to send [13:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 03 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [13:18:54]RAPDU: 90 00 [13:18:54]wFMCommunicate OK [13:18:54]wFMCommunicate request_size=7 [13:18:54]MH_SAM_APDU [13:18:54]CAPDU: 80 0D 02 02 02 F0 BD [13:18:54]Write to MH i2c: E2 0A 00 A6 02 80 0D 02 02 02 00 F0 BD 00 00 D3 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 03 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [13:18:54]RAPDU: 90 00 [13:18:54]wFMCommunicate OK [13:18:54]wFMCommunicate request_size=4 [13:18:54]MH_SAM_APDU [13:18:54]CAPDU: 80 0D 03 02 [13:18:54]Write to MH i2c: E2 08 00 A7 02 80 0D 03 02 00 00 00 00 24 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 0B 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 0B 00 A7 02 00 0A 95 00 8C 5D 9D D1 67 90 00 82 [13:18:54]RAPDU: 0A 95 00 8C 5D 9D D1 67 90 00 [13:18:54]wFMCommunicate OK [13:18:54]SAM_PROTO_SignData done [13:18:54]FM_MakeSignedData done [13:18:54]CreateOFDProtocolMessage [13:18:54]wFMCommunicate request_size=4 [13:18:54]MH_SAM_APDU [13:18:54]CAPDU: 80 11 00 00 [13:18:54]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 17 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 74 [13:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:18:54]wFMCommunicate OK [13:18:54]CreateOFDProtocolMessage done [13:18:54]OFDSenderStorePacket 76619 [13:18:54]StoreOFDPacket docnum=76619 [13:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 69 A5 04 01 02 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 3C 00 00 00 F4 03 04 00 3D 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2B 01 00 35 04 06 00 A7 DD 19 BC F0 BD 0A 95 00 8C 5D 9D D1 67 [13:18:54]CheckFolder [13:18:54]dirname=/storage/ofd_packets [13:18:54]CheckFolder done [13:18:54]ProducePacketName [13:18:54]name=ofd_packets/00076619 [13:18:54]NVStorageSaveData ofd_packets/00076619 [13:18:54]File name is /storage/ofd_packets/00076619 [13:18:54]Write 298 bytes [13:18:54]NVStorageSaveData done [13:18:54]OFDSenderStorePacket done [13:18:54]KKMCreateOFDPacket done [13:18:54]NVStorageSaveData kkm_last_timestamp [13:18:54]File name is /storage/kkm_last_timestamp [13:18:54]Write 4 bytes [13:18:54]NVStorageSaveData done [13:18:54]ExternCall_PrintAddStr [13:18:54]wPrintStart [13:18:54]Write to MH i2c: 01 00 00 A9 02 AB [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: 01 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: 01 07 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [13:18:54]RasterBufferAndPrint [13:18:54]line Счет N : (1)1693094 [13:18:54]line ИНН: 02508201610067 [13:18:54]line Контрольно-Кассовый Чек [13:18:54]line ПРОДАЖА [13:18:54]line ТРК (МРК, ГНК) : 21 [13:18:54]line Товар: 2710194210 [13:18:54]line ДТ-К-2 [13:18:54]line 9.610 * 72.90 [13:18:54]line = 700.57 [13:18:54]line НДС 12% НСП 1% [13:18:54]line > о реализуемом товаре [13:18:54]line ОКРУГЛЕНИЕ: -0.57 [13:18:54]line ИТОГО: 700.00 [13:18:54]line Внесено: 700.00 [13:18:54]line СДАЧА: 0.00 [13:18:54]line НСП 1% : 6.20 [13:18:54]line НДС 12% : 74.40 [13:18:54]line Наличными: 700.00 [13:18:54]line Безнал.: 0.00 [13:18:54]line Место: АЗС № 144 "Партнер Нефть" [13:18:54]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:18:54]line СНО: Общий режим [13:18:54]line Чек 60 20.06.2024 13:18 [13:18:54]line Смена: 393 ФФД: 1.0 [13:18:54]line ЗНМ: 0300000170 [13:18:54]line РНМ: 0000000000095696 [13:18:54]line Версия ККМ: 001 [13:18:54]line ФМ: 0000000000875009 [13:18:54]line ФД: 76619 [13:18:54]line ФПД: 184568061423805 [13:18:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131853&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76619&fm=184568061423805&tin=02508201610067®Number=0000000000095696&sum=70000 [13:18:54]OFD Sender: Processing packet 76619 [packets to send 351, broken 350] [13:18:54]ProducePacketName [13:18:54]name=ofd_packets/00076619 [13:18:54]OFD Sender: To server: pG, [13:18:54]CommunicateWithHost lk.salyk.kg:30040 [13:18:54]ConnectInit lk.salyk.kg [13:18:54]written 0, free lines is 4095 [13:18:54]Connected sock=10 [13:18:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 69 A5 04 01 02 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 3C 00 00 00 F4 03 04 00 3D 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2B 01 00 35 04 06 00 A7 DD 19 BC F0 BD 0A 95 00 8C 5D 9D D1 67 [13:18:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 58 A2 47 00 70 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2B 01 00 F4 03 04 00 DE D2 73 66 B6 04 01 00 00 BB B0 F9 1D 2C 1E EE 57 [13:18:55]CommunicateWithHost err = 0 [13:18:55]CheckOFDResponse [13:18:55]1017 (14) - 77093643461234 [13:18:55]1041 (16) - 0000000000875009 [13:18:55]1040 (4) - 76619 [13:18:55]1012 (4) - 20.06.2024 06:57 [13:18:55]1206 (1) - 0 [13:18:55]OFD Sender: Remove packet 76619 [13:18:55]ProducePacketName [13:18:55]name=ofd_packets/00076619 [13:18:55]NVStorageDeleteData [13:18:55]Write to MH i2c: 01 00 00 D4 02 D6 [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: 01 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: 01 07 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 CE 0C B7 [13:18:55]RasterBufferAndPrint [13:18:55]line [13:18:55]line [13:18:55]line [13:18:55]line [13:18:55]line [13:18:55]written 0, free lines is 3286 [13:18:55]MH_Cut [13:18:55]Write to MH i2c: D1 01 00 DB 02 01 AF [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: D1 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: D1 01 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: D1 01 00 DB 02 00 AE [13:18:55]Write to MH i2c: 01 00 00 DC 02 DE [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]OFD Sender: No OFD packet to send [13:18:55]*** Cut start [13:18:55]*** Partial cut [13:18:55]*** CUTSNS_PIN = 1 [13:18:55]*** CUTSNS_PIN = 0 [13:18:56]*** Brake cut motor [13:18:56]Read from MH i2c: 01 [13:18:56]MH_I2C_Read... [13:18:56]*** Stop cut motor [13:18:56]*** Cut end [13:18:56]Read from MH i2c: 01 07 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: 01 07 00 DC 02 00 00 00 00 00 FF 0F F3 [13:18:56]process_action close_receipt done [13:18:56]requested_data is exist [13:18:56]produce_requested_data [13:18:56]requested_item fm.sn is exist - process it [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 11 00 00 [13:18:56]Write to MH i2c: E2 08 00 DD 02 80 11 00 00 00 00 00 00 59 [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 17 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 17 00 DD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A9 [13:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:18:56]wFMCommunicate OK [13:18:56]requested_item fd.num is exist - process it [13:18:56]SAM_PROTO_GetFieldsCounters [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 13 00 00 [13:18:56]Write to MH i2c: E2 08 00 DE 02 80 13 00 00 00 00 00 00 5C [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 62 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 62 00 DE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [13:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:56]wFMCommunicate OK [13:18:56]SAM_PROTO_GetFieldsCounters done [13:18:56]requested_item shift.num is exist - process it [13:18:56]requested_item shift.opened is exist - process it [13:18:56]req_shift_opened [13:18:56]FM_GetShiftState [13:18:56]SAM_PROTO_GetShiftState [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 13 01 00 [13:18:56]Write to MH i2c: E2 08 00 DF 02 80 13 01 00 00 00 00 00 5E [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 0E 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 0E 00 DF 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3A [13:18:56]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:18:56]wFMCommunicate OK [13:18:56]SAM_PROTO_GetShiftState done [13:18:56]FM_GetShiftState done [13:18:56]req_shift_opened done [13:18:56]requested_item shift.open_date is exist - process it [13:18:56]req_shift_open_date [13:18:56]req_shift_open_date done [13:18:56]produce_requested_data done [13:18:56]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76619,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [13:18:56]process_action_free close_receipt [13:18:56]json_value_free [13:18:56]json_value_free done [13:18:56]process_json_proto returns [13:18:56]Send response to host [13:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76619,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [13:18:56]free response buf [13:18:56]execute_script done [13:18:56]execute_script returns [13:18:56]free content buf [13:18:56]Sock 6.Close socket [13:18:56]Sock 6.Thread stoped [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:49]accept exits with 9 [13:19:49]New connection [13:19:49]New thread 3066948964 created [13:19:49]Thread 3066805604 joined [13:19:49]Waiting for new connection... [13:19:49] Sock 9.Parse request [13:19:49]Sock 9.Check first char [13:19:49]Sock 9.First char is OK [13:19:49]request: POST /json_proto HTTP/1.0 [13:19:49]Method: POST [13:19:49]URL: /json_proto [13:19:49]Method is POST - this is cgi request [13:19:49]url: /json_proto [13:19:49]query_string will be loaded in cgi processing [13:19:49]execute_cgi json_proto POST (null) [13:19:49]execute_cgi path=json_proto method=POST [13:19:49]POST find Content-Length [13:19:49]Host: 172.17.39.195:8080 [13:19:49]Content-Length: 801 [13:19:49]Content-Type: application/json [13:19:49] [13:19:49]POST finish read [13:19:49]Found Content-Length = 801 [13:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:49]execute_script... [13:19: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)1693093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:49]POST & json_proto [13:19:49]process_json_proto [13:19:49]json parsed OK: [13:19:49]protocol is kg_v1.0 [13:19:49]action value=close_receipt [13:19:49]process_action close_receipt [13:19:49]cmd_close_receipt [13:19:49]MH_GetDate [13:19:49]Write to MH i2c: F0 00 00 E0 02 D1 [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: F0 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: F0 09 00 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: F0 09 00 E0 02 00 76 2C 74 66 99 81 91 64 65 [13:19:49]GetLastDocTimeStamp 1718889533 [13:19:49]current date 1718889590 [13:19:49]FM_GetShiftState [13:19:49]SAM_PROTO_GetShiftState [13:19:49]wFMCommunicate request_size=4 [13:19:49]MH_SAM_APDU [13:19:49]CAPDU: 80 13 01 00 [13:19:49]Write to MH i2c: E2 08 00 E1 02 80 13 01 00 00 00 00 00 60 [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:49]Read from MH i2c: E2 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: E2 0E 00 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: E2 0E 00 E1 02 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3C [13:19:49]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:19:49]wFMCommunicate OK [13:19:49]SAM_PROTO_GetShiftState done [13:19:49]FM_GetShiftState done [13:19:49]opened in 1718843774 [13:19:49]opened+sec_in_day 1718930174 [13:19:49]quantity*price = 300056 [13:19:49]sum+1 = 300057 [13:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 61 20.06.2024 13:19 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76620 ФПД: 61014864668223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131950&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76620&fm=61014864668223&tin=02508201610067®Number=0000000000095696&sum=300056 [13:19:50]StoreToDocumentArchive [13:19:50]shift 393 fd 76620 [13:19:50]save to /storage/0393/doc_00076620 [13:19:50]save last doc name /storage/0393/doc_00076620 to /storage/kkm_last_doc_name [13:19:50]save OK [13:19:50]Clear old archive folders... [13:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:19:50]tlvbuf is 00E98A10 [13:19:50]SAM_PROTO_ClearQueue [13:19:50]wFMCommunicate request_size=4 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 09 00 00 [13:19:50]Write to MH i2c: E2 08 00 EE 02 80 09 00 00 00 00 00 00 62 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 EE 02 00 90 00 64 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]SAM_PROTO_ClearQueue done [13:19:50]KKMCreateOFDPacket [13:19:50]OFDProtocolAddRootSTLVToBuf [13:19:50]FM_MakeSignedData [13:19:50]FM_MakeSignedData [13:19:50]SAM_PROTO_SignData [13:19:50]wFMCommunicate request_size=4 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 0D 01 02 [13:19:50]Write to MH i2c: E2 08 00 EF 02 80 0D 01 02 00 00 00 00 6A [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:50]OFD Sender: No OFD packet to send [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 EF 02 00 90 00 65 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=255 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2B 01 00 35 04 06 00 37 7E 21 55 [13:19:50]Write to MH i2c: E2 02 01 F0 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2B 01 00 35 04 06 00 37 7E 21 55 00 00 1C [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 F0 02 00 90 00 66 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=7 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 0D 02 02 02 A6 3F [13:19:50]Write to MH i2c: E2 0A 00 F1 02 80 0D 02 02 02 00 A6 3F 00 00 56 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 F1 02 00 90 00 67 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=4 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 0D 03 02 [13:19:50]Write to MH i2c: E2 08 00 F2 02 80 0D 03 02 00 00 00 00 6F [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0B 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0B 00 F2 02 00 AC 90 32 2D 5F C7 C5 EB 90 00 E1 [13:19:51]RAPDU: AC 90 32 2D 5F C7 C5 EB 90 00 [13:19:51]wFMCommunicate OK [13:19:51]SAM_PROTO_SignData done [13:19:51]FM_MakeSignedData done [13:19:51]CreateOFDProtocolMessage [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 11 00 00 [13:19:51]Write to MH i2c: E2 08 00 F3 02 80 11 00 00 00 00 00 00 6F [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 17 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 17 00 F3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BF [13:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:19:51]wFMCommunicate OK [13:19:51]CreateOFDProtocolMessage done [13:19:51]OFDSenderStorePacket 76620 [13:19:51]StoreOFDPacket docnum=76620 [13:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 11 09 04 01 7E BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2B 01 00 35 04 06 00 37 7E 21 55 A6 3F AC 90 32 2D 5F C7 C5 EB [13:19:51]CheckFolder [13:19:51]dirname=/storage/ofd_packets [13:19:51]CheckFolder done [13:19:51]ProducePacketName [13:19:51]name=ofd_packets/00076620 [13:19:51]NVStorageSaveData ofd_packets/00076620 [13:19:51]File name is /storage/ofd_packets/00076620 [13:19:51]Write 298 bytes [13:19:51]NVStorageSaveData done [13:19:51]OFDSenderStorePacket done [13:19:51]KKMCreateOFDPacket done [13:19:51]NVStorageSaveData kkm_last_timestamp [13:19:51]File name is /storage/kkm_last_timestamp [13:19:51]Write 4 bytes [13:19:51]NVStorageSaveData done [13:19:51]ExternCall_PrintAddStr [13:19:51]wPrintStart [13:19:51]Write to MH i2c: 01 00 00 F4 02 F6 [13:19:51]OFD Sender: Processing packet 76620 [packets to send 351, broken 350] [13:19:51]ProducePacketName [13:19:51]name=ofd_packets/00076620 [13:19:51]OFD Sender: To server: pG, [13:19:51]CommunicateWithHost lk.salyk.kg:30040 [13:19:51]ConnectInit lk.salyk.kg [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: 01 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: 01 07 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 FF 0F 0B [13:19:51]RasterBufferAndPrint [13:19:51]line Счет N : (1)1693093 [13:19:51]line ИНН: 02508201610067 [13:19:51]line Контрольно-Кассовый Чек [13:19:51]line ПРОДАЖА [13:19:51]line ТРК (МРК, ГНК) : 11 [13:19:51]line Товар: 2710194210 [13:19:51]line ДТ-К-2 [13:19:51]line 41.160 * 72.90 [13:19:51]line = 3000.56 [13:19:51]line НДС 12% НСП 1% [13:19:51]line > о реализуемом товаре [13:19:51]line ИТОГО: 3000.56 [13:19:51]line НСП 1% : 26.55 [13:19:51]line НДС 12% : 318.64 [13:19:51]line Наличными: 0.00 [13:19:51]line Безнал.: 3000.56 [13:19:51]line Место: АЗС № 144 "Партнер Нефть" [13:19:51]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:19:51]line СНО: Общий режим [13:19:51]line Чек 61 20.06.2024 13:19 [13:19:51]line Смена: 393 ФФД: 1.0 [13:19:51]line ЗНМ: 0300000170 [13:19:51]line РНМ: 0000000000095696 [13:19:51]line Версия ККМ: 001 [13:19:51]line Платежная система: O! деньги [13:19:51]line ФМ: 0000000000875009 [13:19:51]line ФД: 76620 [13:19:51]line ФПД: 61014864668223 [13:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131950&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76620&fm=61014864668223&tin=02508201610067®Number=0000000000095696&sum=300056 [13:19:51]Connected sock=10 [13:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 11 09 04 01 7E BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 76 2C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2B 01 00 35 04 06 00 37 7E 21 55 A6 3F AC 90 32 2D 5F C7 C5 EB [13:19:51]written 0, free lines is 4095 [13:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F9 DD 47 00 80 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2B 01 00 F4 03 04 00 17 D3 73 66 B6 04 01 00 00 D2 47 19 6B D1 9F E1 59 [13:19:51]CommunicateWithHost err = 0 [13:19:51]CheckOFDResponse [13:19:51]1017 (14) - 77093643461234 [13:19:51]1041 (16) - 0000000000875009 [13:19:51]1040 (4) - 76620 [13:19:51]1012 (4) - 20.06.2024 06:58 [13:19:51]1206 (1) - 0 [13:19:51]OFD Sender: Remove packet 76620 [13:19:51]ProducePacketName [13:19:51]name=ofd_packets/00076620 [13:19:51]NVStorageDeleteData [13:19:51]Write to MH i2c: 01 00 00 1E 03 21 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: 01 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: 01 07 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 DA 0C 0E [13:19:51]RasterBufferAndPrint [13:19:51]line [13:19:51]line [13:19:51]line [13:19:51]line [13:19:51]line [13:19:51]written 0, free lines is 3297 [13:19:51]MH_Cut [13:19:51]Write to MH i2c: D1 01 00 25 03 01 FA [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: D1 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: D1 01 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: D1 01 00 25 03 00 F9 [13:19:51]Write to MH i2c: 01 00 00 26 03 29 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:52]OFD Sender: No OFD packet to send [13:19:52]*** Cut start [13:19:52]*** Partial cut [13:19:52]*** CUTSNS_PIN = 1 [13:19:52]*** CUTSNS_PIN = 0 [13:19:52]*** Brake cut motor [13:19:53]Read from MH i2c: 01 [13:19:53]MH_I2C_Read... [13:19:53]*** Stop cut motor [13:19:53]*** Cut end [13:19:53]Read from MH i2c: 01 07 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [13:19:53]process_action close_receipt done [13:19:53]requested_data is exist [13:19:53]produce_requested_data [13:19:53]requested_item fm.sn is exist - process it [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 11 00 00 [13:19:53]Write to MH i2c: E2 08 00 27 03 80 11 00 00 00 00 00 00 A4 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 17 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 17 00 27 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F4 [13:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:19:53]wFMCommunicate OK [13:19:53]requested_item fd.num is exist - process it [13:19:53]SAM_PROTO_GetFieldsCounters [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 13 00 00 [13:19:53]Write to MH i2c: E2 08 00 28 03 80 13 00 00 00 00 00 00 A7 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 62 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 62 00 28 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [13:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:53]wFMCommunicate OK [13:19:53]SAM_PROTO_GetFieldsCounters done [13:19:53]requested_item shift.num is exist - process it [13:19:53]requested_item shift.opened is exist - process it [13:19:53]req_shift_opened [13:19:53]FM_GetShiftState [13:19:53]SAM_PROTO_GetShiftState [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 13 01 00 [13:19:53]Write to MH i2c: E2 08 00 29 03 80 13 01 00 00 00 00 00 A9 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 0E 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 0E 00 29 03 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 85 [13:19:53]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:19:53]wFMCommunicate OK [13:19:53]SAM_PROTO_GetShiftState done [13:19:53]FM_GetShiftState done [13:19:53]req_shift_opened done [13:19:53]requested_item shift.open_date is exist - process it [13:19:53]req_shift_open_date [13:19:53]req_shift_open_date done [13:19:53]produce_requested_data done [13:19:53]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76620,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [13:19:53]process_action_free close_receipt [13:19:53]json_value_free [13:19:53]json_value_free done [13:19:53]process_json_proto returns [13:19:53]Send response to host [13:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76620,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [13:19:53]free response buf [13:19:53]execute_script done [13:19:53]execute_script returns [13:19:53]free content buf [13:19:53]Sock 9.Close socket [13:19:53]Sock 9.Thread stoped [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [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:29]accept exits with 7 [13:30:29]New connection [13:30:29]New thread 3066805604 created [13:30:29]Thread 3066948964 joined [13:30:29]Waiting for new connection... [13:30:29] Sock 7.Parse request [13:30:29]Sock 7.Check first char [13:30:29]Sock 7.First char is OK [13:30:29]request: POST /json_proto HTTP/1.0 [13:30:29]Method: POST [13:30:29]URL: /json_proto [13:30:29]Method is POST - this is cgi request [13:30:29]url: /json_proto [13:30:29]query_string will be loaded in cgi processing [13:30:29]execute_cgi json_proto POST (null) [13:30:29]execute_cgi path=json_proto method=POST [13:30:29]POST find Content-Length [13:30:29]Host: 172.17.39.195:8080 [13:30:29]Content-Length: 621 [13:30:29]Content-Type: application/json [13:30:29] [13:30:29]POST finish read [13:30:29]Found Content-Length = 621 [13:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220761", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:29]execute_script... [13:30: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 : (3)220761", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:29]POST & json_proto [13:30:29]process_json_proto [13:30:29]json parsed OK: [13:30:29]protocol is kg_v1.0 [13:30:29]action value=close_receipt [13:30:29]process_action close_receipt [13:30:29]cmd_close_receipt [13:30:29]MH_GetDate [13:30:29]Write to MH i2c: F0 00 00 2A 03 1C [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: F0 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: F0 09 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: F0 09 00 2A 03 00 F6 2E 74 66 99 81 91 64 32 [13:30:29]GetLastDocTimeStamp 1718889590 [13:30:29]current date 1718890230 [13:30:29]FM_GetShiftState [13:30:29]SAM_PROTO_GetShiftState [13:30:29]wFMCommunicate request_size=4 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 13 01 00 [13:30:29]Write to MH i2c: E2 08 00 2B 03 80 13 01 00 00 00 00 00 AB [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 0E 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 0E 00 2B 03 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 87 [13:30:29]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:30:29]wFMCommunicate OK [13:30:29]SAM_PROTO_GetShiftState done [13:30:29]FM_GetShiftState done [13:30:29]opened in 1718843774 [13:30:29]opened+sec_in_day 1718930174 [13:30:29]quantity*price = 14000 [13:30:29]sum+1 = 14001 [13:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 62 20.06.2024 13:30 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76621 ФПД: 81084790974981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133030&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76621&fm=81084790974981&tin=02508201610067®Number=0000000000095696&sum=14000 0 [13:30:30]StoreToDocumentArchive [13:30:30]shift 393 fd 76621 [13:30:30]save to /storage/0393/doc_00076621 [13:30:30]save last doc name /storage/0393/doc_00076621 to /storage/kkm_last_doc_name [13:30:30]save OK [13:30:30]Clear old archive folders... [13:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:30:30]tlvbuf is 00E87980 [13:30:30]SAM_PROTO_ClearQueue [13:30:30]wFMCommunicate request_size=4 [13:30:30]MH_SAM_APDU [13:30:30]CAPDU: 80 09 00 00 [13:30:30]Write to MH i2c: E2 08 00 38 03 80 09 00 00 00 00 00 00 AD [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:30]Read from MH i2c: E2 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: E2 03 00 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: E2 03 00 38 03 00 90 00 AF [13:30:30]RAPDU: 90 00 [13:30:30]wFMCommunicate OK [13:30:30]SAM_PROTO_ClearQueue done [13:30:30]KKMCreateOFDPacket [13:30:30]OFDProtocolAddRootSTLVToBuf [13:30:30]FM_MakeSignedData [13:30:30]FM_MakeSignedData [13:30:30]SAM_PROTO_SignData [13:30:30]wFMCommunicate request_size=4 [13:30:30]MH_SAM_APDU [13:30:30]CAPDU: 80 0D 01 02 [13:30:30]Write to MH i2c: E2 08 00 39 03 80 0D 01 02 00 00 00 00 B5 [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:30]Read from MH i2c: E2 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: E2 03 00 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: E2 03 00 39 03 00 90 00 B0 [13:30:30]RAPDU: 90 00 [13:30:30]wFMCommunicate OK [13:30:30]wFMCommunicate request_size=255 [13:30:30]MH_SAM_APDU [13:30:30]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F6 2E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [13:30:30]Write to MH i2c: E2 02 01 3A 03 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F6 2E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 66 [13:30:30]Write i2c OK [13:30:30]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 3A 03 00 90 00 B1 [13:30:31]RAPDU: 90 00 [13:30:31]wFMCommunicate OK [13:30:31]wFMCommunicate request_size=32 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2B 01 00 35 04 06 00 49 BF 06 29 AA 05 [13:30:31]Write to MH i2c: E2 23 00 3B 03 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2B 01 00 35 04 06 00 49 BF 06 29 AA 05 00 00 71 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [13:30:31]RAPDU: 90 00 [13:30:31]wFMCommunicate OK [13:30:31]wFMCommunicate request_size=4 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 0D 03 02 [13:30:31]Write to MH i2c: E2 08 00 3C 03 80 0D 03 02 00 00 00 00 BA [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 0B 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 0B 00 3C 03 00 7C 8E E6 68 A6 50 67 E3 90 00 53 [13:30:31]RAPDU: 7C 8E E6 68 A6 50 67 E3 90 00 [13:30:31]wFMCommunicate OK [13:30:31]SAM_PROTO_SignData done [13:30:31]FM_MakeSignedData done [13:30:31]CreateOFDProtocolMessage [13:30:31]wFMCommunicate request_size=4 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 11 00 00 [13:30:31]Write to MH i2c: E2 08 00 3D 03 80 11 00 00 00 00 00 00 BA [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 17 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 17 00 3D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0A [13:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:30:31]wFMCommunicate OK [13:30:31]CreateOFDProtocolMessage done [13:30:31]OFDSenderStorePacket 76621 [13:30:31]StoreOFDPacket docnum=76621 [13:30:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 BE BF 1D 01 F2 09 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F6 2E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2B 01 00 35 04 06 00 49 BF 06 29 AA 05 7C 8E E6 68 A6 50 67 E3 [13:30:31]CheckFolder [13:30:31]dirname=/storage/ofd_packets [13:30:31]CheckFolder done [13:30:31]ProducePacketName [13:30:31]name=ofd_packets/00076621 [13:30:31]NVStorageSaveData ofd_packets/00076621 [13:30:31]File name is /storage/ofd_packets/00076621 [13:30:31]Write 323 bytes [13:30:31]NVStorageSaveData done [13:30:31]OFDSenderStorePacket done [13:30:31]KKMCreateOFDPacket done [13:30:31]NVStorageSaveData kkm_last_timestamp [13:30:31]File name is /storage/kkm_last_timestamp [13:30:31]Write 4 bytes [13:30:31]NVStorageSaveData done [13:30:31]ExternCall_PrintAddStr [13:30:31]wPrintStart [13:30:31]Write to MH i2c: 01 00 00 3E 03 41 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 07 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 07 00 3E 03 00 00 00 00 00 FF 0F 56 [13:30:31]RasterBufferAndPrint [13:30:31]line Счет N : (3)220761 [13:30:31]line ИНН: 02508201610067 [13:30:31]line Контрольно-Кассовый Чек [13:30:31]line ПРОДАЖА [13:30:31]line Товар: 48747059 [13:30:31]line Сигареты Winston Legend Blue [13:30:31]line 1.000 * 140.00 [13:30:31]line = 140.00 [13:30:31]line НДС 12% НСП 1% [13:30:31]line > о реализуемом товаре [13:30:31]line ИТОГО: 140.00 [13:30:31]line НСП 1% : 1.24 [13:30:31]line НДС 12% : 14.87 [13:30:31]line Наличными: 140.00 [13:30:31]line Безнал.: 0.00 [13:30:31]line Место: АЗС № 144 "Партнер Нефть" [13:30:31]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:30:31]line СНО: Общий режим [13:30:31]line Чек 62 20.06.2024 13:30 [13:30:31]line Смена: 393 ФФД: 1.0 [13:30:31]line ЗНМ: 0300000170 [13:30:31]line РНМ: 0000000000095696 [13:30:31]line Версия ККМ: 001 [13:30:31]line ФМ: 0000000000875009 [13:30:31]line ФД: 76621 [13:30:31]line ФПД: 81084790974981 [13:30:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133030&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76621&fm=81084790974981&tin=02508201610067®Number=0000000000095696&sum=14000 [13:30:31]line 0 [13:30:31]OFD Sender: Processing packet 76621 [packets to send 351, broken 350] [13:30:31]ProducePacketName [13:30:31]name=ofd_packets/00076621 [13:30:31]OFD Sender: To server: pG, [13:30:31]CommunicateWithHost lk.salyk.kg:30040 [13:30:31]ConnectInit lk.salyk.kg [13:30:31]written 0, free lines is 4095 [13:30:31]Connected sock=10 [13:30:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 BE BF 1D 01 F2 09 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 F6 2E 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2B 01 00 35 04 06 00 49 BF 06 29 AA 05 7C 8E E6 68 A6 50 67 E3 [13:30:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 2C CD 47 00 E7 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2B 01 00 F4 03 04 00 97 D5 73 66 B6 04 01 00 00 7B 52 E6 9F 20 F5 6C F7 [13:30:31]CommunicateWithHost err = 0 [13:30:31]CheckOFDResponse [13:30:31]1017 (14) - 77093643461234 [13:30:31]1041 (16) - 0000000000875009 [13:30:31]1040 (4) - 76621 [13:30:31]1012 (4) - 20.06.2024 07:09 [13:30:31]1206 (1) - 0 [13:30:31]OFD Sender: Remove packet 76621 [13:30:31]ProducePacketName [13:30:31]name=ofd_packets/00076621 [13:30:31]NVStorageDeleteData [13:30:31]Write to MH i2c: 01 00 00 67 03 6A [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 07 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 D0 0C 4D [13:30:31]RasterBufferAndPrint [13:30:31]line [13:30:31]line [13:30:31]line [13:30:31]line [13:30:31]line [13:30:31]written 0, free lines is 3287 [13:30:31]MH_Cut [13:30:31]Write to MH i2c: D1 01 00 6E 03 01 43 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: D1 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: D1 01 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: D1 01 00 6E 03 00 42 [13:30:31]Write to MH i2c: 01 00 00 6F 03 72 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:32]OFD Sender: No OFD packet to send [13:30:32]*** Cut start [13:30:32]*** Partial cut [13:30:32]*** CUTSNS_PIN = 1 [13:30:32]*** CUTSNS_PIN = 0 [13:30:33]*** Brake cut motor [13:30:33]Read from MH i2c: 01 [13:30:33]MH_I2C_Read... [13:30:33]*** Stop cut motor [13:30:33]*** Cut end [13:30:33]Read from MH i2c: 01 07 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [13:30:33]process_action close_receipt done [13:30:33]requested_data is exist [13:30:33]produce_requested_data [13:30:33]requested_item fm.sn is exist - process it [13:30:33]wFMCommunicate request_size=4 [13:30:33]MH_SAM_APDU [13:30:33]CAPDU: 80 11 00 00 [13:30:33]Write to MH i2c: E2 08 00 70 03 80 11 00 00 00 00 00 00 ED [13:30:33]Write i2c OK [13:30:33]MH_I2C_Read... [13:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:33]Read from MH i2c: E2 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 17 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 17 00 70 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3D [13:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:30:33]wFMCommunicate OK [13:30:33]requested_item fd.num is exist - process it [13:30:33]SAM_PROTO_GetFieldsCounters [13:30:33]wFMCommunicate request_size=4 [13:30:33]MH_SAM_APDU [13:30:33]CAPDU: 80 13 00 00 [13:30:33]Write to MH i2c: E2 08 00 71 03 80 13 00 00 00 00 00 00 F0 [13:30:33]Write i2c OK [13:30:33]MH_I2C_Read... [13:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:33]Read from MH i2c: E2 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 62 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 62 00 71 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [13:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:33]wFMCommunicate OK [13:30:33]SAM_PROTO_GetFieldsCounters done [13:30:33]requested_item shift.num is exist - process it [13:30:33]requested_item shift.opened is exist - process it [13:30:33]req_shift_opened [13:30:33]FM_GetShiftState [13:30:33]SAM_PROTO_GetShiftState [13:30:33]wFMCommunicate request_size=4 [13:30:33]MH_SAM_APDU [13:30:33]CAPDU: 80 13 01 00 [13:30:33]Write to MH i2c: E2 08 00 72 03 80 13 01 00 00 00 00 00 F2 [13:30:33]Write i2c OK [13:30:33]MH_I2C_Read... [13:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:33]Read from MH i2c: E2 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 0E 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 0E 00 72 03 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 CE [13:30:33]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:30:33]wFMCommunicate OK [13:30:33]SAM_PROTO_GetShiftState done [13:30:33]FM_GetShiftState done [13:30:33]req_shift_opened done [13:30:33]requested_item shift.open_date is exist - process it [13:30:33]req_shift_open_date [13:30:33]req_shift_open_date done [13:30:33]produce_requested_data done [13:30:33]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76621,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [13:30:33]process_action_free close_receipt [13:30:33]json_value_free [13:30:33]json_value_free done [13:30:33]process_json_proto returns [13:30:33]Send response to host [13:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76621,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [13:30:33]free response buf [13:30:33]execute_script done [13:30:33]execute_script returns [13:30:33]free content buf [13:30:33]Sock 7.Close socket [13:30:33]Sock 7.Thread stoped [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:21]accept exits with 9 [13:46:21]New connection [13:46:21]New thread 3066948964 created [13:46:21]Thread 3066805604 joined [13:46:21]Waiting for new connection... [13:46:21] Sock 9.Parse request [13:46:21]Sock 9.Check first char [13:46:21]Sock 9.First char is OK [13:46:21]request: POST /json_proto HTTP/1.0 [13:46:21]Method: POST [13:46:21]URL: /json_proto [13:46:21]Method is POST - this is cgi request [13:46:21]url: /json_proto [13:46:21]query_string will be loaded in cgi processing [13:46:21]execute_cgi json_proto POST (null) [13:46:21]execute_cgi path=json_proto method=POST [13:46:21]POST find Content-Length [13:46:21]Host: 172.17.39.195:8080 [13:46:21]Content-Length: 616 [13:46:21]Content-Type: application/json [13:46:21] [13:46:21]POST finish read [13:46:21]Found Content-Length = 616 [13:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220762", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:21]execute_script... [13:46: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 : (3)220762", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:21]POST & json_proto [13:46:21]process_json_proto [13:46:21]json parsed OK: [13:46:21]protocol is kg_v1.0 [13:46:21]action value=close_receipt [13:46:21]process_action close_receipt [13:46:21]cmd_close_receipt [13:46:21]MH_GetDate [13:46:21]Write to MH i2c: F0 00 00 73 03 65 [13:46:21]Write i2c OK [13:46:21]MH_I2C_Read... [13:46:21]Read from MH i2c: F0 [13:46:21]MH_I2C_Read... [13:46:21]Read from MH i2c: F0 09 00 [13:46:21]MH_I2C_Read... [13:46:21]Read from MH i2c: F0 09 00 73 03 00 AE 32 74 66 99 81 91 64 37 [13:46:21]GetLastDocTimeStamp 1718890230 [13:46:21]current date 1718891182 [13:46:21]FM_GetShiftState [13:46:21]SAM_PROTO_GetShiftState [13:46:21]wFMCommunicate request_size=4 [13:46:21]MH_SAM_APDU [13:46:21]CAPDU: 80 13 01 00 [13:46:21]Write to MH i2c: E2 08 00 74 03 80 13 01 00 00 00 00 00 F4 [13:46:21]Write i2c OK [13:46:21]MH_I2C_Read... [13:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:21]Read from MH i2c: E2 [13:46:21]MH_I2C_Read... [13:46:21]Read from MH i2c: E2 0E 00 [13:46:21]MH_I2C_Read... [13:46:21]Read from MH i2c: E2 0E 00 74 03 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D0 [13:46:21]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:46:21]wFMCommunicate OK [13:46:21]SAM_PROTO_GetShiftState done [13:46:21]FM_GetShiftState done [13:46:21]opened in 1718843774 [13:46:21]opened+sec_in_day 1718930174 [13:46:21]quantity*price = 17500 [13:46:21]sum+1 = 17501 [13:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 63 20.06.2024 13:46 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76622 ФПД: 24329181555222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134622&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76622&fm=24329181555222&tin=02508201610067®Number=0000000000095696&sum=17500 0 [13:46:22]StoreToDocumentArchive [13:46:22]shift 393 fd 76622 [13:46:22]save to /storage/0393/doc_00076622 [13:46:22]save last doc name /storage/0393/doc_00076622 to /storage/kkm_last_doc_name [13:46:22]save OK [13:46:22]Clear old archive folders... [13:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=268 [13:46:22]tlvbuf is 00E81220 [13:46:22]SAM_PROTO_ClearQueue [13:46:22]wFMCommunicate request_size=4 [13:46:22]MH_SAM_APDU [13:46:22]CAPDU: 80 09 00 00 [13:46:22]Write to MH i2c: E2 08 00 81 03 80 09 00 00 00 00 00 00 F6 [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:22]Read from MH i2c: E2 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 81 03 00 90 00 F8 [13:46:22]RAPDU: 90 00 [13:46:22]wFMCommunicate OK [13:46:22]SAM_PROTO_ClearQueue done [13:46:22]KKMCreateOFDPacket [13:46:22]OFDProtocolAddRootSTLVToBuf [13:46:22]FM_MakeSignedData [13:46:22]FM_MakeSignedData [13:46:22]SAM_PROTO_SignData [13:46:22]wFMCommunicate request_size=4 [13:46:22]MH_SAM_APDU [13:46:22]CAPDU: 80 0D 01 02 [13:46:22]Write to MH i2c: E2 08 00 82 03 80 0D 01 02 00 00 00 00 FE [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:22]Read from MH i2c: E2 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 82 03 00 90 00 F9 [13:46:22]RAPDU: 90 00 [13:46:22]wFMCommunicate OK [13:46:22]wFMCommunicate request_size=255 [13:46:22]MH_SAM_APDU [13:46:22]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 32 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [13:46:22]Write to MH i2c: E2 02 01 83 03 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 32 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 F5 [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:22]Read from MH i2c: E2 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 83 03 00 90 00 FA [13:46:22]RAPDU: 90 00 [13:46:22]wFMCommunicate OK [13:46:22]wFMCommunicate request_size=27 [13:46:22]MH_SAM_APDU [13:46:22]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 4E 2B 01 00 35 04 06 00 16 20 94 39 6A 16 [13:46:22]Write to MH i2c: E2 1E 00 84 03 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 4E 2B 01 00 35 04 06 00 16 20 94 39 6A 16 00 00 4F [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:22]Read from MH i2c: E2 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [13:46:22]RAPDU: 90 00 [13:46:22]wFMCommunicate OK [13:46:22]wFMCommunicate request_size=4 [13:46:22]MH_SAM_APDU [13:46:22]CAPDU: 80 0D 03 02 [13:46:22]Write to MH i2c: E2 08 00 85 03 80 0D 03 02 00 00 00 00 03 [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:22]Read from MH i2c: E2 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 0B 00 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 0B 00 85 03 00 8A B8 FA FE 1D 09 E6 A6 90 00 F0 [13:46:22]RAPDU: 8A B8 FA FE 1D 09 E6 A6 90 00 [13:46:22]wFMCommunicate OK [13:46:22]SAM_PROTO_SignData done [13:46:22]FM_MakeSignedData done [13:46:22]CreateOFDProtocolMessage [13:46:22]wFMCommunicate request_size=4 [13:46:22]MH_SAM_APDU [13:46:22]CAPDU: 80 11 00 00 [13:46:22]Write to MH i2c: E2 08 00 86 03 80 11 00 00 00 00 00 00 03 [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:23]Read from MH i2c: E2 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 17 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 17 00 86 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 53 [13:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:46:23]wFMCommunicate OK [13:46:23]CreateOFDProtocolMessage done [13:46:23]OFDSenderStorePacket 76622 [13:46:23]StoreOFDPacket docnum=76622 [13:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 ED 97 18 01 E0 8F 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 32 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2B 01 00 35 04 06 00 16 20 94 39 6A 16 8A B8 FA FE 1D 09 E6 A6 [13:46:23]CheckFolder [13:46:23]dirname=/storage/ofd_packets [13:46:23]CheckFolder done [13:46:23]ProducePacketName [13:46:23]name=ofd_packets/00076622 [13:46:23]NVStorageSaveData ofd_packets/00076622 [13:46:23]File name is /storage/ofd_packets/00076622 [13:46:23]Write 318 bytes [13:46:23]NVStorageSaveData done [13:46:23]OFDSenderStorePacket done [13:46:23]KKMCreateOFDPacket done [13:46:23]NVStorageSaveData kkm_last_timestamp [13:46:23]File name is /storage/kkm_last_timestamp [13:46:23]Write 4 bytes [13:46:23]NVStorageSaveData done [13:46:23]ExternCall_PrintAddStr [13:46:23]wPrintStart [13:46:23]Write to MH i2c: 01 00 00 87 03 8A [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 07 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 FF 0F 9F [13:46:23]RasterBufferAndPrint [13:46:23]line Счет N : (3)220762 [13:46:23]line ИНН: 02508201610067 [13:46:23]line Контрольно-Кассовый Чек [13:46:23]line ПРОДАЖА [13:46:23]line Товар: 4870002329487 [13:46:23]line Напиток Pepsi 1,5л [13:46:23]line 1.000 * 175.00 [13:46:23]line = 175.00 [13:46:23]line НДС 12% НСП 1% [13:46:23]line > о реализуемом товаре [13:46:23]line ИТОГО: 175.00 [13:46:23]line НСП 1% : 1.55 [13:46:23]line НДС 12% : 18.58 [13:46:23]line Наличными: 175.00 [13:46:23]line Безнал.: 0.00 [13:46:23]line Место: АЗС № 144 "Партнер Нефть" [13:46:23]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:46:23]line СНО: Общий режим [13:46:23]line Чек 63 20.06.2024 13:46 [13:46:23]line Смена: 393 ФФД: 1.0 [13:46:23]line ЗНМ: 0300000170 [13:46:23]line РНМ: 0000000000095696 [13:46:23]line Версия ККМ: 001 [13:46:23]line ФМ: 0000000000875009 [13:46:23]line ФД: 76622 [13:46:23]line ФПД: 24329181555222 [13:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134622&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76622&fm=24329181555222&tin=02508201610067®Number=0000000000095696&sum=17500 [13:46:23]line 0 [13:46:23]OFD Sender: Processing packet 76622 [packets to send 351, broken 350] [13:46:23]ProducePacketName [13:46:23]name=ofd_packets/00076622 [13:46:23]OFD Sender: To server: pG, [13:46:23]CommunicateWithHost lk.salyk.kg:30040 [13:46:23]ConnectInit lk.salyk.kg [13:46:23]written 0, free lines is 4095 [13:46:23]Connected sock=10 [13:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 ED 97 18 01 E0 8F 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 32 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2B 01 00 35 04 06 00 16 20 94 39 6A 16 8A B8 FA FE 1D 09 E6 A6 [13:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 55 B1 47 00 14 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2B 01 00 F4 03 04 00 4F D9 73 66 B6 04 01 00 00 E7 11 C2 70 EF 07 B1 E0 [13:46:23]CommunicateWithHost err = 0 [13:46:23]CheckOFDResponse [13:46:23]1017 (14) - 77093643461234 [13:46:23]1041 (16) - 0000000000875009 [13:46:23]1040 (4) - 76622 [13:46:23]1012 (4) - 20.06.2024 07:25 [13:46:23]1206 (1) - 0 [13:46:23]OFD Sender: Remove packet 76622 [13:46:23]ProducePacketName [13:46:23]name=ofd_packets/00076622 [13:46:23]NVStorageDeleteData [13:46:23]Write to MH i2c: 01 00 00 AF 03 B2 [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 07 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 03 0D C9 [13:46:23]RasterBufferAndPrint [13:46:23]line [13:46:23]line [13:46:23]line [13:46:23]line [13:46:23]line [13:46:23]written 0, free lines is 3337 [13:46:23]MH_Cut [13:46:23]Write to MH i2c: D1 01 00 B6 03 01 8B [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: D1 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: D1 01 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: D1 01 00 B6 03 00 8A [13:46:23]Write to MH i2c: 01 00 00 B7 03 BA [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:24]OFD Sender: No OFD packet to send [13:46:24]*** Cut start [13:46:24]*** Partial cut [13:46:24]*** CUTSNS_PIN = 1 [13:46:24]*** CUTSNS_PIN = 0 [13:46:24]*** Brake cut motor [13:46:25]Read from MH i2c: 01 [13:46:25]MH_I2C_Read... [13:46:25]*** Stop cut motor [13:46:25]*** Cut end [13:46:25]Read from MH i2c: 01 07 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [13:46:25]process_action close_receipt done [13:46:25]requested_data is exist [13:46:25]produce_requested_data [13:46:25]requested_item fm.sn is exist - process it [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 11 00 00 [13:46:25]Write to MH i2c: E2 08 00 B8 03 80 11 00 00 00 00 00 00 35 [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 17 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 17 00 B8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 85 [13:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:46:25]wFMCommunicate OK [13:46:25]requested_item fd.num is exist - process it [13:46:25]SAM_PROTO_GetFieldsCounters [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 13 00 00 [13:46:25]Write to MH i2c: E2 08 00 B9 03 80 13 00 00 00 00 00 00 38 [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 62 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 62 00 B9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [13:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:25]wFMCommunicate OK [13:46:25]SAM_PROTO_GetFieldsCounters done [13:46:25]requested_item shift.num is exist - process it [13:46:25]requested_item shift.opened is exist - process it [13:46:25]req_shift_opened [13:46:25]FM_GetShiftState [13:46:25]SAM_PROTO_GetShiftState [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 13 01 00 [13:46:25]Write to MH i2c: E2 08 00 BA 03 80 13 01 00 00 00 00 00 3A [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0E 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0E 00 BA 03 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 16 [13:46:25]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [13:46:25]wFMCommunicate OK [13:46:25]SAM_PROTO_GetShiftState done [13:46:25]FM_GetShiftState done [13:46:25]req_shift_opened done [13:46:25]requested_item shift.open_date is exist - process it [13:46:25]req_shift_open_date [13:46:25]req_shift_open_date done [13:46:25]produce_requested_data done [13:46:25]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76622,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [13:46:25]process_action_free close_receipt [13:46:25]json_value_free [13:46:25]json_value_free done [13:46:25]process_json_proto returns [13:46:25]Send response to host [13:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76622,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [13:46:25]free response buf [13:46:25]execute_script done [13:46:25]execute_script returns [13:46:25]free content buf [13:46:25]Sock 9.Close socket [13:46:25]Sock 9.Thread stoped [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59: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: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:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]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: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: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:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:26]accept exits with 7 [14:13:26]New connection [14:13:26]New thread 3066805604 created [14:13:26]Thread 3066948964 joined [14:13:26]Waiting for new connection... [14:13:26] Sock 7.Parse request [14:13:26]Sock 7.Check first char [14:13:26]Sock 7.First char is OK [14:13:26]request: POST /json_proto HTTP/1.0 [14:13:26]Method: POST [14:13:26]URL: /json_proto [14:13:26]Method is POST - this is cgi request [14:13:26]url: /json_proto [14:13:26]query_string will be loaded in cgi processing [14:13:26]execute_cgi json_proto POST (null) [14:13:26]execute_cgi path=json_proto method=POST [14:13:26]POST find Content-Length [14:13:26]Host: 172.17.39.195:8080 [14:13:26]Content-Length: 670 [14:13:26]Content-Type: application/json [14:13:26] [14:13:26]POST finish read [14:13:26]Found Content-Length = 670 [14:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220763", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:26]execute_script... [14:13: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 : (3)220763", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:26]POST & json_proto [14:13:26]process_json_proto [14:13:26]json parsed OK: [14:13:26]protocol is kg_v1.0 [14:13:26]action value=close_receipt [14:13:26]process_action close_receipt [14:13:26]cmd_close_receipt [14:13:26]MH_GetDate [14:13:26]Write to MH i2c: F0 00 00 BB 03 AD [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: F0 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: F0 09 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: F0 09 00 BB 03 00 07 39 74 66 99 81 91 64 DF [14:13:26]GetLastDocTimeStamp 1718891182 [14:13:26]current date 1718892807 [14:13:26]FM_GetShiftState [14:13:26]SAM_PROTO_GetShiftState [14:13:26]wFMCommunicate request_size=4 [14:13:26]MH_SAM_APDU [14:13:26]CAPDU: 80 13 01 00 [14:13:26]Write to MH i2c: E2 08 00 BC 03 80 13 01 00 00 00 00 00 3C [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:26]Read from MH i2c: E2 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: E2 0E 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: E2 0E 00 BC 03 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 18 [14:13:26]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:13:26]wFMCommunicate OK [14:13:26]SAM_PROTO_GetShiftState done [14:13:26]FM_GetShiftState done [14:13:26]opened in 1718843774 [14:13:26]opened+sec_in_day 1718930174 [14:13:26]quantity*price = 17000 [14:13:26]sum+1 = 17001 [14:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 64 20.06.2024 14:13 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76623 ФПД: 202089875833376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141327&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76623&fm=202089875833376&tin=02508201610067®Number=0000000000095696&sum=17000 0 [14:13:27]StoreToDocumentArchive [14:13:27]shift 393 fd 76623 [14:13:27]save to /storage/0393/doc_00076623 [14:13:27]save last doc name /storage/0393/doc_00076623 to /storage/kkm_last_doc_name [14:13:27]save OK [14:13:27]Clear old archive folders... [14:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:13:27]tlvbuf is 00EAC470 [14:13:27]SAM_PROTO_ClearQueue [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 09 00 00 [14:13:27]Write to MH i2c: E2 08 00 C9 03 80 09 00 00 00 00 00 00 3E [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 03 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 03 00 C9 03 00 90 00 40 [14:13:27]RAPDU: 90 00 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_ClearQueue done [14:13:27]KKMCreateOFDPacket [14:13:27]OFDProtocolAddRootSTLVToBuf [14:13:27]FM_MakeSignedData [14:13:27]FM_MakeSignedData [14:13:27]SAM_PROTO_SignData [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 0D 01 02 [14:13:27]Write to MH i2c: E2 08 00 CA 03 80 0D 01 02 00 00 00 00 46 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 03 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 03 00 CA 03 00 90 00 41 [14:13:27]RAPDU: 90 00 [14:13:27]wFMCommunicate OK [14:13:27]wFMCommunicate request_size=255 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 39 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 [14:13:27]Write to MH i2c: E2 02 01 CB 03 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 39 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 00 00 42 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 03 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 03 00 CB 03 00 90 00 42 [14:13:27]RAPDU: 90 00 [14:13:27]wFMCommunicate OK [14:13:27]wFMCommunicate request_size=41 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2B 01 00 35 04 06 00 B7 CC B7 43 02 20 [14:13:27]Write to MH i2c: E2 2C 00 CC 03 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2B 01 00 35 04 06 00 B7 CC B7 43 02 20 00 00 2F [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:28]Read from MH i2c: E2 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 03 00 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 03 00 CC 03 00 90 00 43 [14:13:28]RAPDU: 90 00 [14:13:28]wFMCommunicate OK [14:13:28]wFMCommunicate request_size=4 [14:13:28]MH_SAM_APDU [14:13:28]CAPDU: 80 0D 03 02 [14:13:28]Write to MH i2c: E2 08 00 CD 03 80 0D 03 02 00 00 00 00 4B [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:28]Read from MH i2c: E2 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 0B 00 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 0B 00 CD 03 00 7E 0E 8E D3 D4 23 80 B0 90 00 60 [14:13:28]RAPDU: 7E 0E 8E D3 D4 23 80 B0 90 00 [14:13:28]wFMCommunicate OK [14:13:28]SAM_PROTO_SignData done [14:13:28]FM_MakeSignedData done [14:13:28]CreateOFDProtocolMessage [14:13:28]wFMCommunicate request_size=4 [14:13:28]MH_SAM_APDU [14:13:28]CAPDU: 80 11 00 00 [14:13:28]Write to MH i2c: E2 08 00 CE 03 80 11 00 00 00 00 00 00 4B [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:28]Read from MH i2c: E2 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 17 00 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 17 00 CE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9B [14:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:13:28]wFMCommunicate OK [14:13:28]CreateOFDProtocolMessage done [14:13:28]OFDSenderStorePacket 76623 [14:13:28]StoreOFDPacket docnum=76623 [14:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 97 29 26 01 38 3A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 39 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2B 01 00 35 04 06 00 B7 CC B7 43 02 20 7E 0E 8E D3 D4 23 80 B0 [14:13:28]CheckFolder [14:13:28]dirname=/storage/ofd_packets [14:13:28]CheckFolder done [14:13:28]ProducePacketName [14:13:28]name=ofd_packets/00076623 [14:13:28]NVStorageSaveData ofd_packets/00076623 [14:13:28]File name is /storage/ofd_packets/00076623 [14:13:28]Write 332 bytes [14:13:28]NVStorageSaveData done [14:13:28]OFDSenderStorePacket done [14:13:28]KKMCreateOFDPacket done [14:13:28]NVStorageSaveData kkm_last_timestamp [14:13:28]File name is /storage/kkm_last_timestamp [14:13:28]Write 4 bytes [14:13:28]NVStorageSaveData done [14:13:28]ExternCall_PrintAddStr [14:13:28]wPrintStart [14:13:28]Write to MH i2c: 01 00 00 CF 03 D2 [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: 01 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: 01 07 00 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [14:13:28]RasterBufferAndPrint [14:13:28]line Счет N : (3)220763 [14:13:28]line ИНН: 02508201610067 [14:13:28]line Контрольно-Кассовый Чек [14:13:28]line ПРОДАЖА [14:13:28]line Товар: 4700000480357 [14:13:28]line Пиво шахтерское 1л ПЭТ [14:13:28]line 1.000 * 170.00 [14:13:28]line = 170.00 [14:13:28]line НДС 12% НСП 1% [14:13:28]line > о реализуемом товаре [14:13:28]line ИТОГО: 170.00 [14:13:28]line НСП 1% : 1.50 [14:13:28]line НДС 12% : 18.05 [14:13:28]line Наличными: 170.00 [14:13:28]line Безнал.: 0.00 [14:13:28]line Место: АЗС № 144 "Партнер Нефть" [14:13:28]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:13:28]line СНО: Общий режим [14:13:28]line Чек 64 20.06.2024 14:13 [14:13:28]line Смена: 393 ФФД: 1.0 [14:13:28]line ЗНМ: 0300000170 [14:13:28]line РНМ: 0000000000095696 [14:13:28]line Версия ККМ: 001 [14:13:28]line ФМ: 0000000000875009 [14:13:28]line ФД: 76623 [14:13:28]line ФПД: 202089875833376 [14:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141327&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76623&fm=202089875833376&tin=02508201610067®Number=0000000000095696&sum=17000 [14:13:28]line 0 [14:13:28]written 0, free lines is 4095 [14:13:28]OFD Sender: Processing packet 76623 [packets to send 351, broken 350] [14:13:28]ProducePacketName [14:13:28]name=ofd_packets/00076623 [14:13:28]OFD Sender: To server: pG, [14:13:28]CommunicateWithHost lk.salyk.kg:30040 [14:13:28]ConnectInit lk.salyk.kg [14:13:28]Write to MH i2c: 01 00 00 F7 03 FA [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: 01 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: 01 07 00 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: 01 07 00 F7 03 00 00 00 00 00 F4 0C 01 [14:13:28]RasterBufferAndPrint [14:13:28]line [14:13:28]line [14:13:28]line [14:13:28]line [14:13:28]line [14:13:28]written 0, free lines is 3323 [14:13:28]MH_Cut [14:13:28]Write to MH i2c: D1 01 00 FE 03 01 D3 [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: D1 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: D1 01 00 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: D1 01 00 FE 03 00 D2 [14:13:28]Write to MH i2c: 01 00 00 FF 03 02 [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:28]Connected sock=9 [14:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 97 29 26 01 38 3A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 07 39 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2B 01 00 35 04 06 00 B7 CC B7 43 02 20 7E 0E 8E D3 D4 23 80 B0 [14:13:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 4E E1 47 00 88 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2B 01 00 F4 03 04 00 A8 DF 73 66 B6 04 01 00 00 62 81 E1 DF FC 2D 32 20 [14:13:28]CommunicateWithHost err = 0 [14:13:28]CheckOFDResponse [14:13:28]1017 (14) - 77093643461234 [14:13:28]1041 (16) - 0000000000875009 [14:13:28]1040 (4) - 76623 [14:13:28]1012 (4) - 20.06.2024 07:52 [14:13:28]1206 (1) - 0 [14:13:28]OFD Sender: Remove packet 76623 [14:13:28]ProducePacketName [14:13:28]name=ofd_packets/00076623 [14:13:28]NVStorageDeleteData [14:13:29]*** Cut start [14:13:29]*** Partial cut [14:13:29]*** CUTSNS_PIN = 1 [14:13:29]OFD Sender: No OFD packet to send [14:13:29]*** CUTSNS_PIN = 0 [14:13:29]*** Brake cut motor [14:13:29]Read from MH i2c: 01 [14:13:29]MH_I2C_Read... [14:13:29]*** Stop cut motor [14:13:29]*** Cut end [14:13:29]Read from MH i2c: 01 07 00 [14:13:29]MH_I2C_Read... [14:13:29]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [14:13:29]process_action close_receipt done [14:13:29]requested_data is exist [14:13:29]produce_requested_data [14:13:29]requested_item fm.sn is exist - process it [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 00 04 80 11 00 00 00 00 00 00 7E [14:13:29]Write i2c OK [14:13:29]MH_I2C_Read... [14:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:30]Read from MH i2c: E2 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 17 00 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 17 00 00 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CE [14:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:13:30]wFMCommunicate OK [14:13:30]requested_item fd.num is exist - process it [14:13:30]SAM_PROTO_GetFieldsCounters [14:13:30]wFMCommunicate request_size=4 [14:13:30]MH_SAM_APDU [14:13:30]CAPDU: 80 13 00 00 [14:13:30]Write to MH i2c: E2 08 00 01 04 80 13 00 00 00 00 00 00 81 [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:30]Read from MH i2c: E2 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 62 00 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 62 00 01 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [14:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:30]wFMCommunicate OK [14:13:30]SAM_PROTO_GetFieldsCounters done [14:13:30]requested_item shift.num is exist - process it [14:13:30]requested_item shift.opened is exist - process it [14:13:30]req_shift_opened [14:13:30]FM_GetShiftState [14:13:30]SAM_PROTO_GetShiftState [14:13:30]wFMCommunicate request_size=4 [14:13:30]MH_SAM_APDU [14:13:30]CAPDU: 80 13 01 00 [14:13:30]Write to MH i2c: E2 08 00 02 04 80 13 01 00 00 00 00 00 83 [14:13:30]Write i2c OK [14:13:30]MH_I2C_Read... [14:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:30]Read from MH i2c: E2 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 0E 00 [14:13:30]MH_I2C_Read... [14:13:30]Read from MH i2c: E2 0E 00 02 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5F [14:13:30]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:13:30]wFMCommunicate OK [14:13:30]SAM_PROTO_GetShiftState done [14:13:30]FM_GetShiftState done [14:13:30]req_shift_opened done [14:13:30]requested_item shift.open_date is exist - process it [14:13:30]req_shift_open_date [14:13:30]req_shift_open_date done [14:13:30]produce_requested_data done [14:13:30]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76623,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [14:13:30]process_action_free close_receipt [14:13:30]json_value_free [14:13:30]json_value_free done [14:13:30]process_json_proto returns [14:13:30]Send response to host [14:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76623,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [14:13:30]free response buf [14:13:30]execute_script done [14:13:30]execute_script returns [14:13:30]free content buf [14:13:30]Sock 7.Close socket [14:13:30]Sock 7.Thread stoped [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:48]accept exits with 10 [14:17:48]New connection [14:17:48]New thread 3066948964 created [14:17:48]Thread 3066805604 joined [14:17:48]Waiting for new connection... [14:17:48] Sock 10.Parse request [14:17:48]Sock 10.Check first char [14:17:48]Sock 10.First char is OK [14:17:48]request: POST /json_proto HTTP/1.0 [14:17:48]Method: POST [14:17:48]URL: /json_proto [14:17:48]Method is POST - this is cgi request [14:17:48]url: /json_proto [14:17:48]query_string will be loaded in cgi processing [14:17:48]execute_cgi json_proto POST (null) [14:17:48]execute_cgi path=json_proto method=POST [14:17:48]POST find Content-Length [14:17:48]Host: 172.17.39.195:8080 [14:17:48]Content-Length: 658 [14:17:48]Content-Type: application/json [14:17:48] [14:17:48]POST finish read [14:17:48]Found Content-Length = 658 [14:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220764", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:48]execute_script... [14:17: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 : (3)220764", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:48]POST & json_proto [14:17:48]process_json_proto [14:17:48]json parsed OK: [14:17:48]protocol is kg_v1.0 [14:17:48]action value=close_receipt [14:17:48]process_action close_receipt [14:17:48]cmd_close_receipt [14:17:48]MH_GetDate [14:17:48]Write to MH i2c: F0 00 00 03 04 F6 [14:17:48]Write i2c OK [14:17:48]MH_I2C_Read... [14:17:48]Read from MH i2c: F0 [14:17:48]MH_I2C_Read... [14:17:48]Read from MH i2c: F0 09 00 [14:17:48]MH_I2C_Read... [14:17:48]Read from MH i2c: F0 09 00 03 04 00 0D 3A 74 66 99 81 91 64 2F [14:17:48]GetLastDocTimeStamp 1718892807 [14:17:48]current date 1718893069 [14:17:48]FM_GetShiftState [14:17:48]SAM_PROTO_GetShiftState [14:17:48]wFMCommunicate request_size=4 [14:17:48]MH_SAM_APDU [14:17:48]CAPDU: 80 13 01 00 [14:17:48]Write to MH i2c: E2 08 00 04 04 80 13 01 00 00 00 00 00 85 [14:17:48]Write i2c OK [14:17:48]MH_I2C_Read... [14:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:48]Read from MH i2c: E2 [14:17:48]MH_I2C_Read... [14:17:48]Read from MH i2c: E2 0E 00 [14:17:48]MH_I2C_Read... [14:17:48]Read from MH i2c: E2 0E 00 04 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 61 [14:17:48]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:17:48]wFMCommunicate OK [14:17:48]SAM_PROTO_GetShiftState done [14:17:48]FM_GetShiftState done [14:17:48]opened in 1718843774 [14:17:48]opened+sec_in_day 1718930174 [14:17:48]quantity*price = 11300 [14:17:48]sum+1 = 11301 [14:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 65 20.06.2024 14:17 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76624 ФПД: 100049930090791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141749&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76624&fm=100049930090791&tin=02508201610067®Number=0000000000095696&sum=11300 0 [14:17:49]StoreToDocumentArchive [14:17:49]shift 393 fd 76624 [14:17:49]save to /storage/0393/doc_00076624 [14:17:49]save last doc name /storage/0393/doc_00076624 to /storage/kkm_last_doc_name [14:17:49]save OK [14:17:49]Clear old archive folders... [14:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:17:49]tlvbuf is 00E97BD0 [14:17:49]SAM_PROTO_ClearQueue [14:17:49]wFMCommunicate request_size=4 [14:17:49]MH_SAM_APDU [14:17:49]CAPDU: 80 09 00 00 [14:17:49]Write to MH i2c: E2 08 00 11 04 80 09 00 00 00 00 00 00 87 [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:49]Read from MH i2c: E2 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 11 04 00 90 00 89 [14:17:49]RAPDU: 90 00 [14:17:49]wFMCommunicate OK [14:17:49]SAM_PROTO_ClearQueue done [14:17:49]KKMCreateOFDPacket [14:17:49]OFDProtocolAddRootSTLVToBuf [14:17:49]FM_MakeSignedData [14:17:49]FM_MakeSignedData [14:17:49]SAM_PROTO_SignData [14:17:49]wFMCommunicate request_size=4 [14:17:49]MH_SAM_APDU [14:17:49]CAPDU: 80 0D 01 02 [14:17:49]Write to MH i2c: E2 08 00 12 04 80 0D 01 02 00 00 00 00 8F [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:49]Read from MH i2c: E2 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [14:17:49]RAPDU: 90 00 [14:17:49]wFMCommunicate OK [14:17:49]wFMCommunicate request_size=255 [14:17:49]MH_SAM_APDU [14:17:49]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0D 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [14:17:49]Write to MH i2c: E2 02 01 13 04 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0D 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 D6 [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:49]Read from MH i2c: E2 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 13 04 00 90 00 8B [14:17:49]RAPDU: 90 00 [14:17:49]wFMCommunicate OK [14:17:49]wFMCommunicate request_size=37 [14:17:49]MH_SAM_APDU [14:17:49]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2B 01 00 35 04 06 00 5A FE B0 8A F9 27 [14:17:49]Write to MH i2c: E2 28 00 14 04 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2B 01 00 35 04 06 00 5A FE B0 8A F9 27 00 00 14 [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:49]Read from MH i2c: E2 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [14:17:49]RAPDU: 90 00 [14:17:49]wFMCommunicate OK [14:17:49]wFMCommunicate request_size=4 [14:17:49]MH_SAM_APDU [14:17:49]CAPDU: 80 0D 03 02 [14:17:49]Write to MH i2c: E2 08 00 15 04 80 0D 03 02 00 00 00 00 94 [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:49]OFD Sender: No OFD packet to send [14:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:49]Read from MH i2c: E2 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 0B 00 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 0B 00 15 04 00 20 5A CA FF 62 26 62 99 90 00 5B [14:17:49]RAPDU: 20 5A CA FF 62 26 62 99 90 00 [14:17:49]wFMCommunicate OK [14:17:49]SAM_PROTO_SignData done [14:17:49]FM_MakeSignedData done [14:17:49]CreateOFDProtocolMessage [14:17:49]wFMCommunicate request_size=4 [14:17:49]MH_SAM_APDU [14:17:49]CAPDU: 80 11 00 00 [14:17:49]Write to MH i2c: E2 08 00 16 04 80 11 00 00 00 00 00 00 94 [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:50]Read from MH i2c: E2 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 17 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 17 00 16 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E4 [14:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:17:50]wFMCommunicate OK [14:17:50]CreateOFDProtocolMessage done [14:17:50]OFDSenderStorePacket 76624 [14:17:50]StoreOFDPacket docnum=76624 [14:17:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 CC 75 22 01 75 29 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0D 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2B 01 00 35 04 06 00 5A FE B0 8A F9 27 20 5A CA FF 62 26 62 99 [14:17:50]CheckFolder [14:17:50]dirname=/storage/ofd_packets [14:17:50]CheckFolder done [14:17:50]ProducePacketName [14:17:50]name=ofd_packets/00076624 [14:17:50]NVStorageSaveData ofd_packets/00076624 [14:17:50]File name is /storage/ofd_packets/00076624 [14:17:50]Write 328 bytes [14:17:50]NVStorageSaveData done [14:17:50]OFDSenderStorePacket done [14:17:50]KKMCreateOFDPacket done [14:17:50]NVStorageSaveData kkm_last_timestamp [14:17:50]File name is /storage/kkm_last_timestamp [14:17:50]Write 4 bytes [14:17:50]NVStorageSaveData done [14:17:50]ExternCall_PrintAddStr [14:17:50]wPrintStart [14:17:50]Write to MH i2c: 01 00 00 17 04 1B [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:50]OFD Sender: Processing packet 76624 [packets to send 351, broken 350] [14:17:50]ProducePacketName [14:17:50]name=ofd_packets/00076624 [14:17:50]OFD Sender: To server: pG, [14:17:50]CommunicateWithHost lk.salyk.kg:30040 [14:17:50]ConnectInit lk.salyk.kg [14:17:50]Read from MH i2c: 01 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: 01 07 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: 01 07 00 17 04 00 00 00 00 00 FF 0F 30 [14:17:50]RasterBufferAndPrint [14:17:50]line Счет N : (3)220764 [14:17:50]line ИНН: 02508201610067 [14:17:50]line Контрольно-Кассовый Чек [14:17:50]line ПРОДАЖА [14:17:50]line Товар: 5449000054227 [14:17:50]line Напиток Кока-Кола 1л [14:17:50]line 1.000 * 113.00 [14:17:50]line = 113.00 [14:17:50]line НДС 12% НСП 1% [14:17:50]line > о реализуемом товаре [14:17:50]line ИТОГО: 113.00 [14:17:50]line НСП 1% : 1.00 [14:17:50]line НДС 12% : 12.00 [14:17:50]line Наличными: 113.00 [14:17:50]line Безнал.: 0.00 [14:17:50]line Место: АЗС № 144 "Партнер Нефть" [14:17:50]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:17:50]line СНО: Общий режим [14:17:50]line Чек 65 20.06.2024 14:17 [14:17:50]line Смена: 393 ФФД: 1.0 [14:17:50]line ЗНМ: 0300000170 [14:17:50]line РНМ: 0000000000095696 [14:17:50]line Версия ККМ: 001 [14:17:50]line ФМ: 0000000000875009 [14:17:50]line ФД: 76624 [14:17:50]line ФПД: 100049930090791 [14:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141749&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76624&fm=100049930090791&tin=02508201610067®Number=0000000000095696&sum=11300 [14:17:50]Connected sock=9 [14:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 CC 75 22 01 75 29 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0D 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2B 01 00 35 04 06 00 5A FE B0 8A F9 27 20 5A CA FF 62 26 62 99 [14:17:50]line 0 [14:17:50]written 0, free lines is 4095 [14:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 4C 46 47 00 DA 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2B 01 00 F4 03 04 00 AE E0 73 66 B6 04 01 00 00 2E 82 7F 4D 46 BB 2C E9 [14:17:50]CommunicateWithHost err = 0 [14:17:50]CheckOFDResponse [14:17:50]1017 (14) - 77093643461234 [14:17:50]1041 (16) - 0000000000875009 [14:17:50]1040 (4) - 76624 [14:17:50]1012 (4) - 20.06.2024 07:56 [14:17:50]1206 (1) - 0 [14:17:50]OFD Sender: Remove packet 76624 [14:17:50]ProducePacketName [14:17:50]name=ofd_packets/00076624 [14:17:50]NVStorageDeleteData [14:17:50]Write to MH i2c: 01 00 00 3F 04 43 [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: 01 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: 01 07 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FE 0C 54 [14:17:50]RasterBufferAndPrint [14:17:50]line [14:17:50]line [14:17:50]line [14:17:50]line [14:17:50]line [14:17:50]written 0, free lines is 3335 [14:17:50]MH_Cut [14:17:50]Write to MH i2c: D1 01 00 46 04 01 1C [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: D1 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: D1 01 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: D1 01 00 46 04 00 1B [14:17:50]Write to MH i2c: 01 00 00 47 04 4B [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:51]OFD Sender: No OFD packet to send [14:17:51]*** Cut start [14:17:51]*** Partial cut [14:17:51]*** CUTSNS_PIN = 1 [14:17:51]*** CUTSNS_PIN = 0 [14:17:51]*** Brake cut motor [14:17:52]Read from MH i2c: 01 [14:17:52]MH_I2C_Read... [14:17:52]*** Stop cut motor [14:17:52]*** Cut end [14:17:52]Read from MH i2c: 01 07 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [14:17:52]process_action close_receipt done [14:17:52]requested_data is exist [14:17:52]produce_requested_data [14:17:52]requested_item fm.sn is exist - process it [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 11 00 00 [14:17:52]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 17 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 16 [14:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:17:52]wFMCommunicate OK [14:17:52]requested_item fd.num is exist - process it [14:17:52]SAM_PROTO_GetFieldsCounters [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 13 00 00 [14:17:52]Write to MH i2c: E2 08 00 49 04 80 13 00 00 00 00 00 00 C9 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 62 00 [14:17:52]MH_I2C_Read... [14:17:52]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 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 50 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 50 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:52]wFMCommunicate OK [14:17:52]SAM_PROTO_GetFieldsCounters done [14:17:52]requested_item shift.num is exist - process it [14:17:52]requested_item shift.opened is exist - process it [14:17:52]req_shift_opened [14:17:52]FM_GetShiftState [14:17:52]SAM_PROTO_GetShiftState [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 13 01 00 [14:17:52]Write to MH i2c: E2 08 00 4A 04 80 13 01 00 00 00 00 00 CB [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 0E 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 0E 00 4A 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A7 [14:17:52]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:17:52]wFMCommunicate OK [14:17:52]SAM_PROTO_GetShiftState done [14:17:52]FM_GetShiftState done [14:17:52]req_shift_opened done [14:17:52]requested_item shift.open_date is exist - process it [14:17:52]req_shift_open_date [14:17:52]req_shift_open_date done [14:17:52]produce_requested_data done [14:17:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76624,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [14:17:52]process_action_free close_receipt [14:17:52]json_value_free [14:17:52]json_value_free done [14:17:52]process_json_proto returns [14:17:52]Send response to host [14:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76624,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [14:17:52]free response buf [14:17:52]execute_script done [14:17:52]execute_script returns [14:17:52]free content buf [14:17:52]Sock 10.Close socket [14:17:52]Sock 10.Thread stoped [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:28]accept exits with 7 [14:21:28]New connection [14:21:28]New thread 3066805604 created [14:21:28]Thread 3066948964 joined [14:21:28]Waiting for new connection... [14:21:28] Sock 7.Parse request [14:21:28]Sock 7.Check first char [14:21:28]Sock 7.First char is OK [14:21:28]request: POST /json_proto HTTP/1.0 [14:21:28]Method: POST [14:21:28]URL: /json_proto [14:21:28]Method is POST - this is cgi request [14:21:28]url: /json_proto [14:21:28]query_string will be loaded in cgi processing [14:21:28]execute_cgi json_proto POST (null) [14:21:28]execute_cgi path=json_proto method=POST [14:21:28]POST find Content-Length [14:21:28]Host: 172.17.39.195:8080 [14:21:28]Content-Length: 678 [14:21:28]Content-Type: application/json [14:21:28] [14:21:28]POST finish read [14:21:28]Found Content-Length = 678 [14:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693139", "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.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:28]execute_script... [14:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693139", "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.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:28]POST & json_proto [14:21:28]process_json_proto [14:21:28]json parsed OK: [14:21:28]protocol is kg_v1.0 [14:21:28]action value=close_receipt [14:21:28]process_action close_receipt [14:21:28]cmd_close_receipt [14:21:28]MH_GetDate [14:21:28]Write to MH i2c: F0 00 00 4B 04 3E [14:21:28]Write i2c OK [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: F0 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: F0 09 00 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: F0 09 00 4B 04 00 E9 3A 74 66 99 81 91 64 53 [14:21:28]GetLastDocTimeStamp 1718893069 [14:21:28]current date 1718893289 [14:21:28]FM_GetShiftState [14:21:28]SAM_PROTO_GetShiftState [14:21:28]wFMCommunicate request_size=4 [14:21:28]MH_SAM_APDU [14:21:28]CAPDU: 80 13 01 00 [14:21:28]Write to MH i2c: E2 08 00 4C 04 80 13 01 00 00 00 00 00 CD [14:21:28]Write i2c OK [14:21:28]MH_I2C_Read... [14:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:28]Read from MH i2c: E2 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 0E 00 [14:21:28]MH_I2C_Read... [14:21:28]Read from MH i2c: E2 0E 00 4C 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A9 [14:21:28]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:21:28]wFMCommunicate OK [14:21:28]SAM_PROTO_GetShiftState done [14:21:28]FM_GetShiftState done [14:21:28]opened in 1718843774 [14:21:28]opened+sec_in_day 1718930174 [14:21:28]quantity*price = 33532 [14:21:28]sum+1 = 33533 [14:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 335.00 Внесено: 335.00 СДАЧА: 0.00 НСП 1% : 2.97 НДС 12% : 35.61 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 66 20.06.2024 14:21 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76625 ФПД: 172632101050472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142130&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76625&fm=172632101050472&tin=02508201610067®Number=0000000000095696&sum=33500 [14:21:29]StoreToDocumentArchive [14:21:29]shift 393 fd 76625 [14:21:29]save to /storage/0393/doc_00076625 [14:21:29]save last doc name /storage/0393/doc_00076625 to /storage/kkm_last_doc_name [14:21:29]save OK [14:21:29]Clear old archive folders... [14:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:29]tlvbuf is 00E79600 [14:21:29]SAM_PROTO_ClearQueue [14:21:29]wFMCommunicate request_size=4 [14:21:29]MH_SAM_APDU [14:21:29]CAPDU: 80 09 00 00 [14:21:29]Write to MH i2c: E2 08 00 59 04 80 09 00 00 00 00 00 00 CF [14:21:29]Write i2c OK [14:21:29]MH_I2C_Read... [14:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:29]Read from MH i2c: E2 [14:21:29]MH_I2C_Read... [14:21:29]Read from MH i2c: E2 03 00 [14:21:29]MH_I2C_Read... [14:21:29]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [14:21:29]RAPDU: 90 00 [14:21:29]wFMCommunicate OK [14:21:29]SAM_PROTO_ClearQueue done [14:21:29]KKMCreateOFDPacket [14:21:29]OFDProtocolAddRootSTLVToBuf [14:21:29]FM_MakeSignedData [14:21:29]FM_MakeSignedData [14:21:29]SAM_PROTO_SignData [14:21:29]wFMCommunicate request_size=4 [14:21:29]MH_SAM_APDU [14:21:29]CAPDU: 80 0D 01 02 [14:21:29]Write to MH i2c: E2 08 00 5A 04 80 0D 01 02 00 00 00 00 D7 [14:21:29]Write i2c OK [14:21:29]MH_I2C_Read... [14:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:29]Read from MH i2c: E2 [14:21:29]MH_I2C_Read... [14:21:29]Read from MH i2c: E2 03 00 [14:21:29]MH_I2C_Read... [14:21:29]Read from MH i2c: E2 03 00 5A 04 00 90 00 D2 [14:21:29]RAPDU: 90 00 [14:21:29]wFMCommunicate OK [14:21:29]wFMCommunicate request_size=255 [14:21:29]MH_SAM_APDU [14:21: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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2B 01 00 35 04 06 00 9D [14:21:29]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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2B 01 00 35 04 06 00 9D 00 00 FC [14:21:29]Write i2c OK [14:21:29]MH_I2C_Read... [14:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:30]Read from MH i2c: E2 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 03 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 03 00 5B 04 00 90 00 D3 [14:21:30]RAPDU: 90 00 [14:21:30]wFMCommunicate OK [14:21:30]wFMCommunicate request_size=10 [14:21:30]MH_SAM_APDU [14:21:30]CAPDU: 80 0D 02 02 05 02 0B 0F 58 68 [14:21:30]Write to MH i2c: E2 0D 00 5C 04 80 0D 02 02 05 00 02 0B 0F 58 68 00 00 C0 [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:30]Read from MH i2c: E2 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 03 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 03 00 5C 04 00 90 00 D4 [14:21:30]RAPDU: 90 00 [14:21:30]wFMCommunicate OK [14:21:30]wFMCommunicate request_size=4 [14:21:30]MH_SAM_APDU [14:21:30]CAPDU: 80 0D 03 02 [14:21:30]Write to MH i2c: E2 08 00 5D 04 80 0D 03 02 00 00 00 00 DC [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:30]Read from MH i2c: E2 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 0B 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 0B 00 5D 04 00 5C 34 9D EC 27 40 A4 34 90 00 35 [14:21:30]RAPDU: 5C 34 9D EC 27 40 A4 34 90 00 [14:21:30]wFMCommunicate OK [14:21:30]SAM_PROTO_SignData done [14:21:30]FM_MakeSignedData done [14:21:30]CreateOFDProtocolMessage [14:21:30]wFMCommunicate request_size=4 [14:21:30]MH_SAM_APDU [14:21:30]CAPDU: 80 11 00 00 [14:21:30]Write to MH i2c: E2 08 00 5E 04 80 11 00 00 00 00 00 00 DC [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:30]Read from MH i2c: E2 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 17 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 17 00 5E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2C [14:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:21:30]wFMCommunicate OK [14:21:30]CreateOFDProtocolMessage done [14:21:30]OFDSenderStorePacket 76625 [14:21:30]StoreOFDPacket docnum=76625 [14:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 69 4E 07 01 CB 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2B 01 00 35 04 06 00 9D 02 0B 0F 58 68 5C 34 9D EC 27 40 A4 34 [14:21:30]CheckFolder [14:21:30]dirname=/storage/ofd_packets [14:21:30]CheckFolder done [14:21:30]ProducePacketName [14:21:30]name=ofd_packets/00076625 [14:21:30]NVStorageSaveData ofd_packets/00076625 [14:21:30]File name is /storage/ofd_packets/00076625 [14:21:30]Write 301 bytes [14:21:30]NVStorageSaveData done [14:21:30]OFDSenderStorePacket done [14:21:30]KKMCreateOFDPacket done [14:21:30]NVStorageSaveData kkm_last_timestamp [14:21:30]File name is /storage/kkm_last_timestamp [14:21:30]Write 4 bytes [14:21:30]NVStorageSaveData done [14:21:30]ExternCall_PrintAddStr [14:21:30]wPrintStart [14:21:30]Write to MH i2c: 01 00 00 5F 04 63 [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: 01 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: 01 07 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 FF 0F 78 [14:21:30]RasterBufferAndPrint [14:21:30]line Счет N : (1)1693139 [14:21:30]line ИНН: 02508201610067 [14:21:30]line Контрольно-Кассовый Чек [14:21:30]line ПРОДАЖА [14:21:30]line ТРК (МРК, ГНК) : 63 [14:21:30]line Товар: 2710124130 [14:21:30]line Аи-92-К-5 [14:21:30]line 5.050 * 66.40 [14:21:30]line = 335.32 [14:21:30]line НДС 12% НСП 1% [14:21:30]line > о реализуемом товаре [14:21:30]line ОКРУГЛЕНИЕ: -0.32 [14:21:30]line ИТОГО: 335.00 [14:21:30]line Внесено: 335.00 [14:21:30]line СДАЧА: 0.00 [14:21:30]line НСП 1% : 2.97 [14:21:30]line НДС 12% : 35.61 [14:21:30]line Наличными: 335.00 [14:21:30]line Безнал.: 0.00 [14:21:30]line Место: АЗС № 144 "Партнер Нефть" [14:21:30]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:21:30]line СНО: Общий режим [14:21:30]line Чек 66 20.06.2024 14:21 [14:21:30]line Смена: 393 ФФД: 1.0 [14:21:30]line ЗНМ: 0300000170 [14:21:30]line РНМ: 0000000000095696 [14:21:30]line Версия ККМ: 001 [14:21:30]line ФМ: 0000000000875009 [14:21:30]line ФД: 76625 [14:21:30]line ФПД: 172632101050472 [14:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142130&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76625&fm=172632101050472&tin=02508201610067®Number=0000000000095696&sum=33500 [14:21:30]written 0, free lines is 4095 [14:21:30]OFD Sender: Processing packet 76625 [packets to send 351, broken 350] [14:21:30]ProducePacketName [14:21:30]name=ofd_packets/00076625 [14:21:30]OFD Sender: To server: pG, [14:21:30]CommunicateWithHost lk.salyk.kg:30040 [14:21:30]ConnectInit lk.salyk.kg [14:21:30]Connected sock=9 [14:21:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 69 4E 07 01 CB 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA 3A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2B 01 00 35 04 06 00 9D 02 0B 0F 58 68 5C 34 9D EC 27 40 A4 34 [14:21:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D4 E2 47 00 58 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2B 01 00 F4 03 04 00 8A E1 73 66 B6 04 01 00 00 D6 66 37 31 73 85 E3 77 [14:21:30]CommunicateWithHost err = 0 [14:21:30]CheckOFDResponse [14:21:30]1017 (14) - 77093643461234 [14:21:30]1041 (16) - 0000000000875009 [14:21:30]1040 (4) - 76625 [14:21:30]1012 (4) - 20.06.2024 08:00 [14:21:30]1206 (1) - 0 [14:21:30]OFD Sender: Remove packet 76625 [14:21:30]ProducePacketName [14:21:30]name=ofd_packets/00076625 [14:21:30]NVStorageDeleteData [14:21:30]Write to MH i2c: 01 00 00 8A 04 8E [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: 01 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: 01 07 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: 01 07 00 8A 04 00 00 00 00 00 E3 0C 84 [14:21:30]RasterBufferAndPrint [14:21:30]line [14:21:30]line [14:21:30]line [14:21:30]line [14:21:30]line [14:21:30]written 0, free lines is 3305 [14:21:30]MH_Cut [14:21:30]Write to MH i2c: D1 01 00 91 04 01 67 [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: D1 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: D1 01 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: D1 01 00 91 04 00 66 [14:21:30]Write to MH i2c: 01 00 00 92 04 96 [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:31]OFD Sender: No OFD packet to send [14:21:31]*** Cut start [14:21:31]*** Partial cut [14:21:31]*** CUTSNS_PIN = 1 [14:21:31]*** CUTSNS_PIN = 0 [14:21:31]*** Brake cut motor [14:21:32]Read from MH i2c: 01 [14:21:32]MH_I2C_Read... [14:21:32]*** Stop cut motor [14:21:32]*** Cut end [14:21:32]Read from MH i2c: 01 07 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 FF 0F AB [14:21:32]process_action close_receipt done [14:21:32]requested_data is exist [14:21:32]produce_requested_data [14:21:32]requested_item fm.sn is exist - process it [14:21:32]wFMCommunicate request_size=4 [14:21:32]MH_SAM_APDU [14:21:32]CAPDU: 80 11 00 00 [14:21:32]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 17 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 61 [14:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:21:32]wFMCommunicate OK [14:21:32]requested_item fd.num is exist - process it [14:21:32]SAM_PROTO_GetFieldsCounters [14:21:32]wFMCommunicate request_size=4 [14:21:32]MH_SAM_APDU [14:21:32]CAPDU: 80 13 00 00 [14:21:32]Write to MH i2c: E2 08 00 94 04 80 13 00 00 00 00 00 00 14 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 62 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 62 00 94 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 51 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [14:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 51 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:32]wFMCommunicate OK [14:21:32]SAM_PROTO_GetFieldsCounters done [14:21:32]requested_item shift.num is exist - process it [14:21:32]requested_item shift.opened is exist - process it [14:21:32]req_shift_opened [14:21:32]FM_GetShiftState [14:21:32]SAM_PROTO_GetShiftState [14:21:32]wFMCommunicate request_size=4 [14:21:32]MH_SAM_APDU [14:21:32]CAPDU: 80 13 01 00 [14:21:32]Write to MH i2c: E2 08 00 95 04 80 13 01 00 00 00 00 00 16 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 0E 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 0E 00 95 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F2 [14:21:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:21:32]wFMCommunicate OK [14:21:32]SAM_PROTO_GetShiftState done [14:21:32]FM_GetShiftState done [14:21:32]req_shift_opened done [14:21:32]requested_item shift.open_date is exist - process it [14:21:32]req_shift_open_date [14:21:32]req_shift_open_date done [14:21:32]produce_requested_data done [14:21:32]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76625,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [14:21:32]process_action_free close_receipt [14:21:32]json_value_free [14:21:32]json_value_free done [14:21:32]process_json_proto returns [14:21:32]Send response to host [14:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76625,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [14:21:32]free response buf [14:21:32]execute_script done [14:21:32]execute_script returns [14:21:32]free content buf [14:21:32]Sock 7.Close socket [14:21:32]Sock 7.Thread stoped [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:29]accept exits with 10 [14:23:29]New connection [14:23:29]New thread 3066948964 created [14:23:29]Thread 3066805604 joined [14:23:29]Waiting for new connection... [14:23:29] Sock 10.Parse request [14:23:29]Sock 10.Check first char [14:23:29]Sock 10.First char is OK [14:23:29]request: POST /json_proto HTTP/1.0 [14:23:29]Method: POST [14:23:29]URL: /json_proto [14:23:29]Method is POST - this is cgi request [14:23:29]url: /json_proto [14:23:29]query_string will be loaded in cgi processing [14:23:29]execute_cgi json_proto POST (null) [14:23:29]execute_cgi path=json_proto method=POST [14:23:29]POST find Content-Length [14:23:29]Host: 172.17.39.195:8080 [14:23:29]Content-Length: 841 [14:23:29]Content-Type: application/json [14:23:29] [14:23:29]POST finish read [14:23:29]Found Content-Length = 841 [14:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 35.000, "sum" : 2551.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2551.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:29]execute_script... [14: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)1693142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 35.000, "sum" : 2551.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2551.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:29]POST & json_proto [14:23:29]process_json_proto [14:23:29]json parsed OK: [14:23:29]protocol is kg_v1.0 [14:23:29]action value=close_receipt [14:23:29]process_action close_receipt [14:23:29]cmd_close_receipt [14:23:29]MH_GetDate [14:23:29]Write to MH i2c: F0 00 00 96 04 89 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: F0 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: F0 09 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: F0 09 00 96 04 00 63 3B 74 66 99 81 91 64 19 [14:23:29]GetLastDocTimeStamp 1718893290 [14:23:29]current date 1718893411 [14:23:29]FM_GetShiftState [14:23:29]SAM_PROTO_GetShiftState [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 01 00 [14:23:29]Write to MH i2c: E2 08 00 97 04 80 13 01 00 00 00 00 00 18 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:30]Read from MH i2c: E2 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: E2 0E 00 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: E2 0E 00 97 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F4 [14:23:30]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:23:30]wFMCommunicate OK [14:23:30]SAM_PROTO_GetShiftState done [14:23:30]FM_GetShiftState done [14:23:30]opened in 1718843774 [14:23:30]opened+sec_in_day 1718930174 [14:23:30]quantity*price = 255150 [14:23:30]sum+1 = 255151 [14:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2551.50 НСП 1% : 22.58 НДС 12% : 270.96 Наличными: 0.00 Безнал.: 2551.50 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 67 20.06.2024 14:23 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875009 ФД: 76626 ФПД: 51842094136523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142331&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76626&fm=51842094136523&tin=02508201610067®Number=0000000000095696&sum=255150 [14:23:31]StoreToDocumentArchive [14:23:31]shift 393 fd 76626 [14:23:31]save to /storage/0393/doc_00076626 [14:23:31]save last doc name /storage/0393/doc_00076626 to /storage/kkm_last_doc_name [14:23:31]save OK [14:23:31]Clear old archive folders... [14:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:31]tlvbuf is 00E83FE0 [14:23:31]SAM_PROTO_ClearQueue [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 09 00 00 [14:23:31]Write to MH i2c: E2 08 00 A4 04 80 09 00 00 00 00 00 00 1A [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]SAM_PROTO_ClearQueue done [14:23:31]KKMCreateOFDPacket [14:23:31]OFDProtocolAddRootSTLVToBuf [14:23:31]FM_MakeSignedData [14:23:31]FM_MakeSignedData [14:23:31]SAM_PROTO_SignData [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 0D 01 02 [14:23:31]Write to MH i2c: E2 08 00 A5 04 80 0D 01 02 00 00 00 00 22 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]wFMCommunicate request_size=255 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE E4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 3B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2B 01 00 35 04 06 00 2F 26 6D 9A [14:23:31]Write to MH i2c: E2 02 01 A6 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE E4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 3B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2B 01 00 35 04 06 00 2F 26 6D 9A 00 00 52 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]OFD Sender: No OFD packet to send [14:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 A6 04 00 90 00 1E [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]wFMCommunicate request_size=7 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 0D 02 02 02 FC CB [14:23:31]Write to MH i2c: E2 0A 00 A7 04 80 0D 02 02 02 00 FC CB 00 00 F0 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 A7 04 00 90 00 1F [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 0D 03 02 [14:23:31]Write to MH i2c: E2 08 00 A8 04 80 0D 03 02 00 00 00 00 27 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 0B 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 0B 00 A8 04 00 46 E2 76 FE 6B 1F 94 95 90 00 77 [14:23:31]RAPDU: 46 E2 76 FE 6B 1F 94 95 90 00 [14:23:31]wFMCommunicate OK [14:23:31]SAM_PROTO_SignData done [14:23:31]FM_MakeSignedData done [14:23:31]CreateOFDProtocolMessage [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 11 00 00 [14:23:31]Write to MH i2c: E2 08 00 A9 04 80 11 00 00 00 00 00 00 27 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 17 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 17 00 A9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 77 [14:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:23:31]wFMCommunicate OK [14:23:31]CreateOFDProtocolMessage done [14:23:31]OFDSenderStorePacket 76626 [14:23:31]StoreOFDPacket docnum=76626 [14:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 D4 6F 04 01 B8 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE E4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 3B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2B 01 00 35 04 06 00 2F 26 6D 9A FC CB 46 E2 76 FE 6B 1F 94 95 [14:23:31]CheckFolder [14:23:31]dirname=/storage/ofd_packets [14:23:31]CheckFolder done [14:23:31]ProducePacketName [14:23:31]name=ofd_packets/00076626 [14:23:31]NVStorageSaveData ofd_packets/00076626 [14:23:31]File name is /storage/ofd_packets/00076626 [14:23:31]Write 298 bytes [14:23:31]NVStorageSaveData done [14:23:31]OFDSenderStorePacket done [14:23:31]KKMCreateOFDPacket done [14:23:31]NVStorageSaveData kkm_last_timestamp [14:23:31]File name is /storage/kkm_last_timestamp [14:23:31]Write 4 bytes [14:23:31]NVStorageSaveData done [14:23:31]ExternCall_PrintAddStr [14:23:31]wPrintStart [14:23:31]Write to MH i2c: 01 00 00 AA 04 AE [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: 01 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: 01 07 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: 01 07 00 AA 04 00 00 00 00 00 FF 0F C3 [14:23:31]RasterBufferAndPrint [14:23:31]line Счет N : (1)1693142 [14:23:31]line ИНН: 02508201610067 [14:23:31]line Контрольно-Кассовый Чек [14:23:31]line ПРОДАЖА [14:23:31]line ТРК (МРК, ГНК) : 11 [14:23:31]line Товар: 2710194210 [14:23:31]line ДТ-К-2 [14:23:31]line 35.000 * 72.90 [14:23:31]line = 2551.50 [14:23:31]line НДС 12% НСП 1% [14:23:31]line > о реализуемом товаре [14:23:31]line ИТОГО: 2551.50 [14:23:31]line НСП 1% : 22.58 [14:23:31]line НДС 12% : 270.96 [14:23:31]line Наличными: 0.00 [14:23:31]line Безнал.: 2551.50 [14:23:31]line Место: АЗС № 144 "Партнер Нефть" [14:23:31]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:23:31]line СНО: Общий режим [14:23:31]line Чек 67 20.06.2024 14:23 [14:23:31]line Смена: 393 ФФД: 1.0 [14:23:31]line ЗНМ: 0300000170 [14:23:31]line РНМ: 0000000000095696 [14:23:31]line Версия ККМ: 001 [14:23:31]line Платежная система: АКБ Кыргызстан [14:23:31]line ФМ: 0000000000875009 [14:23:31]line ФД: 76626 [14:23:31]line ФПД: 51842094136523 [14:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142331&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76626&fm=51842094136523&tin=02508201610067®Number=0000000000095696&sum=255150 [14:23:31]OFD Sender: Processing packet 76626 [packets to send 351, broken 350] [14:23:31]ProducePacketName [14:23:31]name=ofd_packets/00076626 [14:23:31]OFD Sender: To server: pG, [14:23:31]CommunicateWithHost lk.salyk.kg:30040 [14:23:31]ConnectInit lk.salyk.kg [14:23:31]written 0, free lines is 4095 [14:23:32]Connected sock=9 [14:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 D4 6F 04 01 B8 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE E4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 63 3B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2B 01 00 35 04 06 00 2F 26 6D 9A FC CB 46 E2 76 FE 6B 1F 94 95 [14:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 86 CB 47 00 33 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2B 01 00 F4 03 04 00 04 E2 73 66 B6 04 01 00 00 A8 B0 C8 4B 0B AD 6C 6E [14:23:32]CommunicateWithHost err = 0 [14:23:32]CheckOFDResponse [14:23:32]1017 (14) - 77093643461234 [14:23:32]1041 (16) - 0000000000875009 [14:23:32]1040 (4) - 76626 [14:23:32]1012 (4) - 20.06.2024 08:02 [14:23:32]1206 (1) - 0 [14:23:32]OFD Sender: Remove packet 76626 [14:23:32]ProducePacketName [14:23:32]name=ofd_packets/00076626 [14:23:32]NVStorageDeleteData [14:23:32]Write to MH i2c: 01 00 00 D4 04 D8 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 07 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 F2 0C DD [14:23:32]RasterBufferAndPrint [14:23:32]line [14:23:32]line [14:23:32]line [14:23:32]line [14:23:32]line [14:23:32]written 0, free lines is 3320 [14:23:32]MH_Cut [14:23:32]Write to MH i2c: D1 01 00 DB 04 01 B1 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: D1 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: D1 01 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: D1 01 00 DB 04 00 B0 [14:23:32]Write to MH i2c: 01 00 00 DC 04 E0 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]OFD Sender: No OFD packet to send [14:23:33]*** Cut start [14:23:33]*** Partial cut [14:23:33]*** CUTSNS_PIN = 1 [14:23:33]*** CUTSNS_PIN = 0 [14:23:33]*** Brake cut motor [14:23:33]Read from MH i2c: 01 *** Stop cut motor [14:23:33]*** Cut end [14:23:33] [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: 01 07 00 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 FF 0F F5 [14:23:33]process_action close_receipt done [14:23:33]requested_data is exist [14:23:33]produce_requested_data [14:23:33]requested_item fm.sn is exist - process it [14:23:33]wFMCommunicate request_size=4 [14:23:33]MH_SAM_APDU [14:23:33]CAPDU: 80 11 00 00 [14:23:33]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [14:23:33]Write i2c OK [14:23:33]MH_I2C_Read... [14:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:33]Read from MH i2c: E2 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: E2 17 00 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 AB [14:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:23:33]wFMCommunicate OK [14:23:33]requested_item fd.num is exist - process it [14:23:33]SAM_PROTO_GetFieldsCounters [14:23:33]wFMCommunicate request_size=4 [14:23:33]MH_SAM_APDU [14:23:33]CAPDU: 80 13 00 00 [14:23:33]Write to MH i2c: E2 08 00 DE 04 80 13 00 00 00 00 00 00 5E [14:23:33]Write i2c OK [14:23:33]MH_I2C_Read... [14:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:33]Read from MH i2c: E2 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: E2 62 00 [14:23:33]MH_I2C_Read... [14:23:33]Read from MH i2c: E2 62 00 DE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 52 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [14:23:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 52 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:34]wFMCommunicate OK [14:23:34]SAM_PROTO_GetFieldsCounters done [14:23:34]requested_item shift.num is exist - process it [14:23:34]requested_item shift.opened is exist - process it [14:23:34]req_shift_opened [14:23:34]FM_GetShiftState [14:23:34]SAM_PROTO_GetShiftState [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 13 01 00 [14:23:34]Write to MH i2c: E2 08 00 DF 04 80 13 01 00 00 00 00 00 60 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 DF 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3C [14:23:34]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:23:34]wFMCommunicate OK [14:23:34]SAM_PROTO_GetShiftState done [14:23:34]FM_GetShiftState done [14:23:34]req_shift_opened done [14:23:34]requested_item shift.open_date is exist - process it [14:23:34]req_shift_open_date [14:23:34]req_shift_open_date done [14:23:34]produce_requested_data done [14:23:34]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76626,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [14:23:34]process_action_free close_receipt [14:23:34]json_value_free [14:23:34]json_value_free done [14:23:34]process_json_proto returns [14:23:34]Send response to host [14:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76626,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [14:23:34]free response buf [14:23:34]execute_script done [14:23:34]execute_script returns [14:23:34]free content buf [14:23:34]Sock 10.Close socket [14:23:34]Sock 10.Thread stoped [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:09]accept exits with 7 [14:26:09]New connection [14:26:09]New thread 3066805604 created [14:26:09]Thread 3066948964 joined [14:26:09]Waiting for new connection... [14:26:09] Sock 7.Parse request [14:26:09]Sock 7.Check first char [14:26:09]Sock 7.First char is OK [14:26:09]request: POST /json_proto HTTP/1.0 [14:26:09]Method: POST [14:26:09]URL: /json_proto [14:26:09]Method is POST - this is cgi request [14:26:09]url: /json_proto [14:26:09]query_string will be loaded in cgi processing [14:26:09]execute_cgi json_proto POST (null) [14:26:09]execute_cgi path=json_proto method=POST [14:26:09]POST find Content-Length [14:26:09]Host: 172.17.39.195:8080 [14:26:09]Content-Length: 1164 [14:26:09]Content-Type: application/json [14:26:09] [14:26:09]POST finish read [14:26:09]Found Content-Length = 1164 [14:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1693144\u000A20.06.2024 13:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102125\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:09]execute_script... [14:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1693144\u000A20.06.2024 13:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102125\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:09]POST & json_proto [14:26:09]process_json_proto [14:26:09]json parsed OK: [14:26:09]protocol is kg_v1.0 [14:26:09]action value=print_text [14:26:09]process_action print_text [14:26:09]cmd_print_text [14:26:09]ExternCall_PrintAddStr [14:26:09]wPrintStart [14:26:09]Write to MH i2c: 01 00 00 E0 04 E4 [14:26:09]Write i2c OK [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: 01 [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: 01 07 00 [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FF 0F F9 [14:26:09]RasterBufferAndPrint [14:26:09]line *****ТОВАРНЫЙ ЧЕК***** [14:26:09]line АЗС 144 [14:26:09]line Партнер нефть [14:26:09]line 02508201610067 [14:26:09]line Кассир : Эсенканов Э. [14:26:09]line Счет N : (1)1693144 [14:26:09]line 20.06.2024 13:57 [14:26:09]line ПРОДАЖА [14:26:09]line ТРК (МРК, ГНК): 63 [14:26:09]line Вид ГСМ : 2710124130 [14:26:09]line Аи-92-К-5 [14:26:09]line 20.000 x 66.40 [14:26:09]line ИТОГ: 1328.00 [14:26:09]line Тип оплаты: Талоны: ТК ГПНА Online [14:26:09]line 30102125 [14:26:09]line ______________________ [14:26:09]line (подпись) [14:26:09]written 0, free lines is 4095 [14:26:09]Write to MH i2c: 01 00 00 F4 04 F8 [14:26:09]Write i2c OK [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: 01 [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: 01 07 00 [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: 01 07 00 F4 04 00 00 00 00 00 11 0E 1E [14:26:09]RasterBufferAndPrint [14:26:09]line [14:26:09]line [14:26:09]line [14:26:09]line [14:26:09]line [14:26:09]written 0, free lines is 3602 [14:26:09]MH_Cut [14:26:09]Write to MH i2c: D1 01 00 FB 04 01 D1 [14:26:09]Write i2c OK [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: D1 [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: D1 01 00 [14:26:09]MH_I2C_Read... [14:26:09]Read from MH i2c: D1 01 00 FB 04 00 D0 [14:26:09]Write to MH i2c: 01 00 00 FC 04 00 [14:26:09]Write i2c OK [14:26:09]MH_I2C_Read... [14:26:10]*** Cut start [14:26:10]*** Partial cut [14:26:10]*** CUTSNS_PIN = 1 [14:26:10]*** CUTSNS_PIN = 0 [14:26:10]*** Brake cut motor [14:26:10]Read from MH i2c: 01 [14:26:10]MH_I2C_Read... [14:26:10]*** Stop cut motor [14:26:10]*** Cut end [14:26:10]Read from MH i2c: 01 07 00 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: 01 07 00 FC 04 00 00 00 00 00 FF 0F 15 [14:26:10]process_action print_text done [14:26:10]requested_data is exist [14:26:10]produce_requested_data [14:26:10]requested_item fm.sn is exist - process it [14:26:10]wFMCommunicate request_size=4 [14:26:10]MH_SAM_APDU [14:26:10]CAPDU: 80 11 00 00 [14:26:10]Write to MH i2c: E2 08 00 FD 04 80 11 00 00 00 00 00 00 7B [14:26:10]Write i2c OK [14:26:10]MH_I2C_Read... [14:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:10]Read from MH i2c: E2 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 17 00 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 17 00 FD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CB [14:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:26:10]wFMCommunicate OK [14:26:10]requested_item fd.num is exist - process it [14:26:10]SAM_PROTO_GetFieldsCounters [14:26:10]wFMCommunicate request_size=4 [14:26:10]MH_SAM_APDU [14:26:10]CAPDU: 80 13 00 00 [14:26:10]Write to MH i2c: E2 08 00 FE 04 80 13 00 00 00 00 00 00 7E [14:26:10]Write i2c OK [14:26:10]MH_I2C_Read... [14:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:10]Read from MH i2c: E2 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 62 00 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 62 00 FE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 52 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [14:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 52 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:10]wFMCommunicate OK [14:26:10]SAM_PROTO_GetFieldsCounters done [14:26:10]requested_item shift.num is exist - process it [14:26:10]requested_item shift.opened is exist - process it [14:26:10]req_shift_opened [14:26:10]FM_GetShiftState [14:26:10]SAM_PROTO_GetShiftState [14:26:10]wFMCommunicate request_size=4 [14:26:10]MH_SAM_APDU [14:26:10]CAPDU: 80 13 01 00 [14:26:10]Write to MH i2c: E2 08 00 FF 04 80 13 01 00 00 00 00 00 80 [14:26:10]Write i2c OK [14:26:10]MH_I2C_Read... [14:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:10]Read from MH i2c: E2 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 0E 00 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 0E 00 FF 04 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5C [14:26:10]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:26:10]wFMCommunicate OK [14:26:10]SAM_PROTO_GetShiftState done [14:26:10]FM_GetShiftState done [14:26:10]req_shift_opened done [14:26:10]requested_item shift.open_date is exist - process it [14:26:10]req_shift_open_date [14:26:10]req_shift_open_date done [14:26:10]produce_requested_data done [14:26:10]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76626,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [14:26:10]process_action_free print_text [14:26:10]json_value_free [14:26:10]json_value_free done [14:26:10]process_json_proto returns [14:26:10]Send response to host [14:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76626,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [14:26:10]free response buf [14:26:10]execute_script done [14:26:10]execute_script returns [14:26:10]free content buf [14:26:10]Sock 7.Close socket [14:26:10]Sock 7.Thread stoped [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:32]accept exits with 9 [14:28:32]New connection [14:28:32]New thread 3066948964 created [14:28:32]Thread 3066805604 joined [14:28:32]Waiting for new connection... [14:28:32] Sock 9.Parse request [14:28:32]Sock 9.Check first char [14:28:32]Sock 9.First char is OK [14:28:32]request: POST /json_proto HTTP/1.0 [14:28:32]Method: POST [14:28:32]URL: /json_proto [14:28:32]Method is POST - this is cgi request [14:28:32]url: /json_proto [14:28:32]query_string will be loaded in cgi processing [14:28:32]execute_cgi json_proto POST (null) [14:28:32]execute_cgi path=json_proto method=POST [14:28:32]POST find Content-Length [14:28:32]Host: 172.17.39.195:8080 [14:28:32]Content-Length: 621 [14:28:32]Content-Type: application/json [14:28:32] [14:28:32]POST finish read [14:28:32]Found Content-Length = 621 [14:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220765", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:32]execute_script... [14:28:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220765", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:32]POST & json_proto [14:28:32]process_json_proto [14:28:32]json parsed OK: [14:28:32]protocol is kg_v1.0 [14:28:32]action value=close_receipt [14:28:32]process_action close_receipt [14:28:32]cmd_close_receipt [14:28:32]MH_GetDate [14:28:32]Write to MH i2c: F0 00 00 00 05 F4 [14:28:32]Write i2c OK [14:28:32]MH_I2C_Read... [14:28:32]Read from MH i2c: F0 [14:28:32]MH_I2C_Read... [14:28:32]Read from MH i2c: F0 09 00 [14:28:32]MH_I2C_Read... [14:28:32]Read from MH i2c: F0 09 00 00 05 00 91 3C 74 66 99 81 91 64 B3 [14:28:32]GetLastDocTimeStamp 1718893411 [14:28:32]current date 1718893713 [14:28:32]FM_GetShiftState [14:28:32]SAM_PROTO_GetShiftState [14:28:32]wFMCommunicate request_size=4 [14:28:32]MH_SAM_APDU [14:28:32]CAPDU: 80 13 01 00 [14:28:32]Write to MH i2c: E2 08 00 01 05 80 13 01 00 00 00 00 00 83 [14:28:32]Write i2c OK [14:28:32]MH_I2C_Read... [14:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:32]Read from MH i2c: E2 [14:28:32]MH_I2C_Read... [14:28:32]Read from MH i2c: E2 0E 00 [14:28:32]MH_I2C_Read... [14:28:32]Read from MH i2c: E2 0E 00 01 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5F [14:28:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:28:32]wFMCommunicate OK [14:28:32]SAM_PROTO_GetShiftState done [14:28:32]FM_GetShiftState done [14:28:32]opened in 1718843774 [14:28:32]opened+sec_in_day 1718930174 [14:28:32]quantity*price = 14000 [14:28:32]sum+1 = 14001 [14:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 68 20.06.2024 14:28 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76627 ФПД: 85739336838506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142833&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76627&fm=85739336838506&tin=02508201610067®Number=0000000000095696&sum=14000 0 [14:28:33]StoreToDocumentArchive [14:28:33]shift 393 fd 76627 [14:28:33]save to /storage/0393/doc_00076627 [14:28:33]save last doc name /storage/0393/doc_00076627 to /storage/kkm_last_doc_name [14:28:33]save OK [14:28:33]Clear old archive folders... [14:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:28:33]tlvbuf is 00E61560 [14:28:33]SAM_PROTO_ClearQueue [14:28:33]wFMCommunicate request_size=4 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 09 00 00 [14:28:33]Write to MH i2c: E2 08 00 0E 05 80 09 00 00 00 00 00 00 85 [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [14:28:33]RAPDU: 90 00 [14:28:33]wFMCommunicate OK [14:28:33]SAM_PROTO_ClearQueue done [14:28:33]KKMCreateOFDPacket [14:28:33]OFDProtocolAddRootSTLVToBuf [14:28:33]FM_MakeSignedData [14:28:33]FM_MakeSignedData [14:28:33]SAM_PROTO_SignData [14:28:33]wFMCommunicate request_size=4 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 0D 01 02 [14:28:33]Write to MH i2c: E2 08 00 0F 05 80 0D 01 02 00 00 00 00 8D [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [14:28:33]RAPDU: 90 00 [14:28:33]wFMCommunicate OK [14:28:33]wFMCommunicate request_size=255 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 91 3C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [14:28:33]Write to MH i2c: E2 02 01 10 05 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 91 3C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 ED [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [14:28:33]RAPDU: 90 00 [14:28:33]wFMCommunicate OK [14:28:33]wFMCommunicate request_size=32 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2B 01 00 35 04 06 00 4D FA BE B7 2D 6A [14:28:33]Write to MH i2c: E2 23 00 11 05 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2B 01 00 35 04 06 00 4D FA BE B7 2D 6A 00 00 BC [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [14:28:33]RAPDU: 90 00 [14:28:33]wFMCommunicate OK [14:28:33]wFMCommunicate request_size=4 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 0D 03 02 [14:28:33]Write to MH i2c: E2 08 00 12 05 80 0D 03 02 00 00 00 00 92 [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0B 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0B 00 12 05 00 92 E3 8D 6B 44 88 B8 71 90 00 F5 [14:28:33]RAPDU: 92 E3 8D 6B 44 88 B8 71 90 00 [14:28:33]wFMCommunicate OK [14:28:33]SAM_PROTO_SignData done [14:28:33]FM_MakeSignedData done [14:28:33]CreateOFDProtocolMessage [14:28:33]wFMCommunicate request_size=4 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 11 00 00 [14:28:33]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [14:28:33]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 17 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E2 [14:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:28:34]wFMCommunicate OK [14:28:34]CreateOFDProtocolMessage done [14:28:34]OFDSenderStorePacket 76627 [14:28:34]StoreOFDPacket docnum=76627 [14:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 B2 91 1D 01 D1 4E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 91 3C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2B 01 00 35 04 06 00 4D FA BE B7 2D 6A 92 E3 8D 6B 44 88 B8 71 [14:28:34]CheckFolder [14:28:34]dirname=/storage/ofd_packets [14:28:34]CheckFolder done [14:28:34]ProducePacketName [14:28:34]name=ofd_packets/00076627 [14:28:34]NVStorageSaveData ofd_packets/00076627 [14:28:34]File name is /storage/ofd_packets/00076627 [14:28:34]Write 323 bytes [14:28:34]NVStorageSaveData done [14:28:34]OFDSenderStorePacket done [14:28:34]KKMCreateOFDPacket done [14:28:34]NVStorageSaveData kkm_last_timestamp [14:28:34]File name is /storage/kkm_last_timestamp [14:28:34]Write 4 bytes [14:28:34]NVStorageSaveData done [14:28:34]ExternCall_PrintAddStr [14:28:34]wPrintStart [14:28:34]Write to MH i2c: 01 00 00 14 05 19 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 07 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 07 00 14 05 00 00 00 00 00 FF 0F 2E [14:28:34]RasterBufferAndPrint [14:28:34]line Счет N : (3)220765 [14:28:34]line ИНН: 02508201610067 [14:28:34]line Контрольно-Кассовый Чек [14:28:34]line ПРОДАЖА [14:28:34]line Товар: 48747059 [14:28:34]line Сигареты Winston Legend Blue [14:28:34]line 1.000 * 140.00 [14:28:34]line = 140.00 [14:28:34]line НДС 12% НСП 1% [14:28:34]line > о реализуемом товаре [14:28:34]line ИТОГО: 140.00 [14:28:34]line НСП 1% : 1.24 [14:28:34]line НДС 12% : 14.87 [14:28:34]line Наличными: 140.00 [14:28:34]line Безнал.: 0.00 [14:28:34]line Место: АЗС № 144 "Партнер Нефть" [14:28:34]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:28:34]line СНО: Общий режим [14:28:34]line Чек 68 20.06.2024 14:28 [14:28:34]line Смена: 393 ФФД: 1.0 [14:28:34]line ЗНМ: 0300000170 [14:28:34]line РНМ: 0000000000095696 [14:28:34]line Версия ККМ: 001 [14:28:34]line ФМ: 0000000000875009 [14:28:34]line ФД: 76627 [14:28:34]line ФПД: 85739336838506 [14:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142833&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76627&fm=85739336838506&tin=02508201610067®Number=0000000000095696&sum=14000 [14:28:34]line 0 [14:28:34]OFD Sender: Processing packet 76627 [packets to send 351, broken 350] [14:28:34]ProducePacketName [14:28:34]name=ofd_packets/00076627 [14:28:34]OFD Sender: To server: pG, [14:28:34]CommunicateWithHost lk.salyk.kg:30040 [14:28:34]ConnectInit lk.salyk.kg [14:28:34]written 0, free lines is 4095 [14:28:34]Connected sock=10 [14:28:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 B2 91 1D 01 D1 4E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 91 3C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2B 01 00 35 04 06 00 4D FA BE B7 2D 6A 92 E3 8D 6B 44 88 B8 71 [14:28:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 8A 3B 47 00 5D 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2B 01 00 F4 03 04 00 32 E3 73 66 B6 04 01 00 00 1A 90 26 1A 77 C5 15 66 [14:28:34]CommunicateWithHost err = 0 [14:28:34]CheckOFDResponse [14:28:34]1017 (14) - 77093643461234 [14:28:34]1041 (16) - 0000000000875009 [14:28:34]1040 (4) - 76627 [14:28:34]1012 (4) - 20.06.2024 08:07 [14:28:34]1206 (1) - 0 [14:28:34]OFD Sender: Remove packet 76627 [14:28:34]ProducePacketName [14:28:34]name=ofd_packets/00076627 [14:28:34]NVStorageDeleteData [14:28:34]Write to MH i2c: 01 00 00 3D 05 42 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 07 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 CB 0C 20 [14:28:34]RasterBufferAndPrint [14:28:34]line [14:28:34]line [14:28:34]line [14:28:34]line [14:28:34]line [14:28:34]written 0, free lines is 3278 [14:28:34]MH_Cut [14:28:34]Write to MH i2c: D1 01 00 44 05 01 1B [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: D1 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: D1 01 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: D1 01 00 44 05 00 1A [14:28:34]Write to MH i2c: 01 00 00 45 05 4A [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:35]OFD Sender: No OFD packet to send [14:28:35]*** Cut start [14:28:35]*** Partial cut [14:28:35]*** CUTSNS_PIN = 1 [14:28:35]*** CUTSNS_PIN = 0 [14:28:35]*** Brake cut motor [14:28:36]Read from MH i2c: 01 [14:28:36]MH_I2C_Read... [14:28:36]*** Stop cut motor [14:28:36]*** Cut end [14:28:36]Read from MH i2c: 01 07 00 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [14:28:36]process_action close_receipt done [14:28:36]requested_data is exist [14:28:36]produce_requested_data [14:28:36]requested_item fm.sn is exist - process it [14:28:36]wFMCommunicate request_size=4 [14:28:36]MH_SAM_APDU [14:28:36]CAPDU: 80 11 00 00 [14:28:36]Write to MH i2c: E2 08 00 46 05 80 11 00 00 00 00 00 00 C5 [14:28:36]Write i2c OK [14:28:36]MH_I2C_Read... [14:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:36]Read from MH i2c: E2 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: E2 17 00 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: E2 17 00 46 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 15 [14:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:28:36]wFMCommunicate OK [14:28:36]requested_item fd.num is exist - process it [14:28:36]SAM_PROTO_GetFieldsCounters [14:28:36]wFMCommunicate request_size=4 [14:28:36]MH_SAM_APDU [14:28:36]CAPDU: 80 13 00 00 [14:28:36]Write to MH i2c: E2 08 00 47 05 80 13 00 00 00 00 00 00 C8 [14:28:36]Write i2c OK [14:28:36]MH_I2C_Read... [14:28:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:36]Read from MH i2c: E2 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: E2 62 00 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: E2 62 00 47 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 53 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [14:28:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 53 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:36]wFMCommunicate OK [14:28:36]SAM_PROTO_GetFieldsCounters done [14:28:36]requested_item shift.num is exist - process it [14:28:36]requested_item shift.opened is exist - process it [14:28:36]req_shift_opened [14:28:36]FM_GetShiftState [14:28:36]SAM_PROTO_GetShiftState [14:28:36]wFMCommunicate request_size=4 [14:28:36]MH_SAM_APDU [14:28:36]CAPDU: 80 13 01 00 [14:28:36]Write to MH i2c: E2 08 00 48 05 80 13 01 00 00 00 00 00 CA [14:28:36]Write i2c OK [14:28:36]MH_I2C_Read... [14:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:36]Read from MH i2c: E2 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: E2 0E 00 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: E2 0E 00 48 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A6 [14:28:36]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [14:28:36]wFMCommunicate OK [14:28:36]SAM_PROTO_GetShiftState done [14:28:36]FM_GetShiftState done [14:28:36]req_shift_opened done [14:28:36]requested_item shift.open_date is exist - process it [14:28:36]req_shift_open_date [14:28:36]req_shift_open_date done [14:28:36]produce_requested_data done [14:28:36]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76627,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [14:28:36]process_action_free close_receipt [14:28:36]json_value_free [14:28:36]json_value_free done [14:28:36]process_json_proto returns [14:28:36]Send response to host [14:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76627,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [14:28:36]free response buf [14:28:36]execute_script done [14:28:36]execute_script returns [14:28:36]free content buf [14:28:36]Sock 9.Close socket [14:28:36]Sock 9.Thread stoped [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [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:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:14]accept exits with 7 [15:01:14]New connection [15:01:14]New thread 3066805604 created [15:01:14]Thread 3066948964 joined [15:01:14]Waiting for new connection... [15:01:14] Sock 7.Parse request [15:01:14]Sock 7.Check first char [15:01:14]Sock 7.First char is OK [15:01:14]request: POST /json_proto HTTP/1.0 [15:01:14]Method: POST [15:01:14]URL: /json_proto [15:01:14]Method is POST - this is cgi request [15:01:14]url: /json_proto [15:01:14]query_string will be loaded in cgi processing [15:01:14]execute_cgi json_proto POST (null) [15:01:14]execute_cgi path=json_proto method=POST [15:01:14]POST find Content-Length [15:01:14]Host: 172.17.39.195:8080 [15:01:14]Content-Length: 680 [15:01:14]Content-Type: application/json [15:01:14] [15:01:14]POST finish read [15:01:14]Found Content-Length = 680 [15:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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:14]execute_script... [15:01: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)1693175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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:14]POST & json_proto [15:01:14]process_json_proto [15:01:14]json parsed OK: [15:01:14]protocol is kg_v1.0 [15:01:14]action value=close_receipt [15:01:14]process_action close_receipt [15:01:14]cmd_close_receipt [15:01:14]MH_GetDate [15:01:14]Write to MH i2c: F0 00 00 49 05 3D [15:01:14]Write i2c OK [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: F0 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: F0 09 00 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: F0 09 00 49 05 00 3B 44 74 66 99 81 91 64 AE [15:01:14]GetLastDocTimeStamp 1718893713 [15:01:14]current date 1718895675 [15:01:14]FM_GetShiftState [15:01:14]SAM_PROTO_GetShiftState [15:01:14]wFMCommunicate request_size=4 [15:01:14]MH_SAM_APDU [15:01:14]CAPDU: 80 13 01 00 [15:01:14]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [15:01:14]Write i2c OK [15:01:14]MH_I2C_Read... [15:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:14]Read from MH i2c: E2 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 0E 00 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A8 [15:01:14]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:01:14]wFMCommunicate OK [15:01:14]SAM_PROTO_GetShiftState done [15:01:14]FM_GetShiftState done [15:01:14]opened in 1718843774 [15:01:14]opened+sec_in_day 1718930174 [15:01:14]quantity*price = 200037 [15:01:14]sum+1 = 200039 [15:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 69 20.06.2024 15:01 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76628 ФПД: 29856252573274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150116&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76628&fm=29856252573274&tin=02508201610067®Number=0000000000095696&sum=200000 [15:01:15]StoreToDocumentArchive [15:01:15]shift 393 fd 76628 [15:01:15]save to /storage/0393/doc_00076628 [15:01:15]save last doc name /storage/0393/doc_00076628 to /storage/kkm_last_doc_name [15:01:15]save OK [15:01:15]Clear old archive folders... [15:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:01:15]tlvbuf is 00E61430 [15:01:15]SAM_PROTO_ClearQueue [15:01:15]wFMCommunicate request_size=4 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 09 00 00 [15:01:15]Write to MH i2c: E2 08 00 57 05 80 09 00 00 00 00 00 00 CE [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:15]Read from MH i2c: E2 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [15:01:15]RAPDU: 90 00 [15:01:15]wFMCommunicate OK [15:01:15]SAM_PROTO_ClearQueue done [15:01:15]KKMCreateOFDPacket [15:01:15]OFDProtocolAddRootSTLVToBuf [15:01:15]FM_MakeSignedData [15:01:15]FM_MakeSignedData [15:01:15]SAM_PROTO_SignData [15:01:15]wFMCommunicate request_size=4 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 0D 01 02 [15:01:15]Write to MH i2c: E2 08 00 58 05 80 0D 01 02 00 00 00 00 D6 [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:15]Read from MH i2c: E2 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [15:01:15]RAPDU: 90 00 [15:01:15]wFMCommunicate OK [15:01:15]wFMCommunicate request_size=255 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 3C 44 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2B 01 00 35 04 06 00 1B 27 73 54 [15:01:15]Write to MH i2c: E2 02 01 59 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 3C 44 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2B 01 00 35 04 06 00 1B 27 73 54 00 00 6D [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:15]Read from MH i2c: E2 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [15:01:15]RAPDU: 90 00 [15:01:15]wFMCommunicate OK [15:01:15]wFMCommunicate request_size=7 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 0D 02 02 02 36 5A [15:01:15]Write to MH i2c: E2 0A 00 5A 05 80 0D 02 02 02 00 36 5A 00 00 6D [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:15]Read from MH i2c: E2 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [15:01:15]RAPDU: 90 00 [15:01:15]wFMCommunicate OK [15:01:15]wFMCommunicate request_size=4 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 0D 03 02 [15:01:15]Write to MH i2c: E2 08 00 5B 05 80 0D 03 02 00 00 00 00 DB [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:16]Read from MH i2c: E2 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 0B 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 0B 00 5B 05 00 6C B7 A4 B1 76 A2 C1 13 90 00 40 [15:01:16]RAPDU: 6C B7 A4 B1 76 A2 C1 13 90 00 [15:01:16]wFMCommunicate OK [15:01:16]SAM_PROTO_SignData done [15:01:16]FM_MakeSignedData done [15:01:16]CreateOFDProtocolMessage [15:01:16]wFMCommunicate request_size=4 [15:01:16]MH_SAM_APDU [15:01:16]CAPDU: 80 11 00 00 [15:01:16]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:16]Read from MH i2c: E2 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 17 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2B [15:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:01:16]wFMCommunicate OK [15:01:16]CreateOFDProtocolMessage done [15:01:16]OFDSenderStorePacket 76628 [15:01:16]StoreOFDPacket docnum=76628 [15:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 CD 5B 04 01 A1 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 3C 44 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2B 01 00 35 04 06 00 1B 27 73 54 36 5A 6C B7 A4 B1 76 A2 C1 13 [15:01:16]CheckFolder [15:01:16]dirname=/storage/ofd_packets [15:01:16]CheckFolder done [15:01:16]ProducePacketName [15:01:16]name=ofd_packets/00076628 [15:01:16]NVStorageSaveData ofd_packets/00076628 [15:01:16]File name is /storage/ofd_packets/00076628 [15:01:16]Write 298 bytes [15:01:16]NVStorageSaveData done [15:01:16]OFDSenderStorePacket done [15:01:16]KKMCreateOFDPacket done [15:01:16]NVStorageSaveData kkm_last_timestamp [15:01:16]File name is /storage/kkm_last_timestamp [15:01:16]Write 4 bytes [15:01:16]NVStorageSaveData done [15:01:16]ExternCall_PrintAddStr [15:01:16]wPrintStart [15:01:16]Write to MH i2c: 01 00 00 5D 05 62 [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: 01 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: 01 07 00 [15:01:16]MH_I2C_Read... [15:01:16]OFD Sender: Processing packet 76628 [packets to send 351, broken 350] [15:01:16]ProducePacketName [15:01:16]name=ofd_packets/00076628 [15:01:16]OFD Sender: To server: pG, [15:01:16]CommunicateWithHost lk.salyk.kg:30040 [15:01:16]ConnectInit lk.salyk.kg [15:01:16]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [15:01:16]RasterBufferAndPrint [15:01:16]line Счет N : (1)1693175 [15:01:16]line ИНН: 02508201610067 [15:01:16]line Контрольно-Кассовый Чек [15:01:16]line ПРОДАЖА [15:01:16]line ТРК (МРК, ГНК) : 21 [15:01:16]line Товар: 2710194210 [15:01:16]line ДТ-К-2 [15:01:16]line 27.440 * 72.90 [15:01:16]line = 2000.38 [15:01:16]line НДС 12% НСП 1% [15:01:16]line > о реализуемом товаре [15:01:16]line ОКРУГЛЕНИЕ: -0.38 [15:01:16]line ИТОГО: 2000.00 [15:01:16]line Внесено: 2000.00 [15:01:16]line СДАЧА: 0.00 [15:01:16]line НСП 1% : 17.70 [15:01:16]line НДС 12% : 212.43 [15:01:16]line Наличными: 2000.00 [15:01:16]line Безнал.: 0.00 [15:01:16]line Место: АЗС № 144 "Партнер Нефть" [15:01:16]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:01:16]line СНО: Общий режим [15:01:16]line Чек 69 20.06.2024 15:01 [15:01:16]line Смена: 393 ФФД: 1.0 [15:01:16]line ЗНМ: 0300000170 [15:01:16]line РНМ: 0000000000095696 [15:01:16]line Версия ККМ: 001 [15:01:16]line ФМ: 0000000000875009 [15:01:16]line ФД: 76628 [15:01:16]line ФПД: 29856252573274 [15:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150116&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76628&fm=29856252573274&tin=02508201610067®Number=0000000000095696&sum=200000 [15:01:16]Connected sock=11 [15:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 CD 5B 04 01 A1 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 3C 44 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2B 01 00 35 04 06 00 1B 27 73 54 36 5A 6C B7 A4 B1 76 A2 C1 13 [15:01:16]written 0, free lines is 4095 [15:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 AD A1 47 00 4D 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2B 01 00 F4 03 04 00 DC EA 73 66 B6 04 01 00 00 CC CF 6B BC 91 1B 1A 15 [15:01:16]CommunicateWithHost err = 0 [15:01:16]CheckOFDResponse [15:01:16]1017 (14) - 77093643461234 [15:01:16]1041 (16) - 0000000000875009 [15:01:16]1040 (4) - 76628 [15:01:16]1012 (4) - 20.06.2024 08:39 [15:01:16]1206 (1) - 0 [15:01:16]OFD Sender: Remove packet 76628 [15:01:16]ProducePacketName [15:01:16]name=ofd_packets/00076628 [15:01:16]NVStorageDeleteData [15:01:16]Write to MH i2c: 01 00 00 88 05 8D [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: 01 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: 01 07 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 D5 0C 75 [15:01:16]RasterBufferAndPrint [15:01:16]line [15:01:16]line [15:01:16]line [15:01:16]line [15:01:16]line [15:01:16]written 0, free lines is 3293 [15:01:16]MH_Cut [15:01:16]Write to MH i2c: D1 01 00 8F 05 01 66 [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: D1 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: D1 01 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: D1 01 00 8F 05 00 65 [15:01:16]Write to MH i2c: 01 00 00 90 05 95 [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:17]OFD Sender: No OFD packet to send [15:01:17]*** Cut start [15:01:17]*** Partial cut [15:01:17]*** CUTSNS_PIN = 1 [15:01:17]*** CUTSNS_PIN = 0 [15:01:17]*** Brake cut motor [15:01:18]Read from MH i2c: 01 [15:01:18]MH_I2C_Read... [15:01:18]*** Stop cut motor [15:01:18]*** Cut end [15:01:18]Read from MH i2c: 01 07 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [15:01:18]process_action close_receipt done [15:01:18]requested_data is exist [15:01:18]produce_requested_data [15:01:18]requested_item fm.sn is exist - process it [15:01:18]wFMCommunicate request_size=4 [15:01:18]MH_SAM_APDU [15:01:18]CAPDU: 80 11 00 00 [15:01:18]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:18]Read from MH i2c: E2 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 17 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 60 [15:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:01:18]wFMCommunicate OK [15:01:18]requested_item fd.num is exist - process it [15:01:18]SAM_PROTO_GetFieldsCounters [15:01:18]wFMCommunicate request_size=4 [15:01:18]MH_SAM_APDU [15:01:18]CAPDU: 80 13 00 00 [15:01:18]Write to MH i2c: E2 08 00 92 05 80 13 00 00 00 00 00 00 13 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:18]Read from MH i2c: E2 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 62 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 62 00 92 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 54 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [15:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 54 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:18]wFMCommunicate OK [15:01:18]SAM_PROTO_GetFieldsCounters done [15:01:18]requested_item shift.num is exist - process it [15:01:18]requested_item shift.opened is exist - process it [15:01:18]req_shift_opened [15:01:18]FM_GetShiftState [15:01:18]SAM_PROTO_GetShiftState [15:01:18]wFMCommunicate request_size=4 [15:01:18]MH_SAM_APDU [15:01:18]CAPDU: 80 13 01 00 [15:01:18]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:18]Read from MH i2c: E2 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 0E 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F1 [15:01:18]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:01:18]wFMCommunicate OK [15:01:18]SAM_PROTO_GetShiftState done [15:01:18]FM_GetShiftState done [15:01:18]req_shift_opened done [15:01:18]requested_item shift.open_date is exist - process it [15:01:18]req_shift_open_date [15:01:18]req_shift_open_date done [15:01:18]produce_requested_data done [15:01:18]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76628,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [15:01:18]process_action_free close_receipt [15:01:18]json_value_free [15:01:18]json_value_free done [15:01:18]process_json_proto returns [15:01:18]Send response to host [15:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76628,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [15:01:18]free response buf [15:01:18]execute_script done [15:01:18]execute_script returns [15:01:18]free content buf [15:01:18]Sock 7.Close socket [15:01:18]Sock 7.Thread stoped [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:12]accept exits with 9 [15:17:12]New connection [15:17:12]New thread 3066948964 created [15:17:12]Thread 3066805604 joined [15:17:12]Waiting for new connection... [15:17:12] Sock 9.Parse request [15:17:12]Sock 9.Check first char [15:17:12]Sock 9.First char is OK [15:17:12]request: POST /json_proto HTTP/1.0 [15:17:12]Method: POST [15:17:12]URL: /json_proto [15:17:12]Method is POST - this is cgi request [15:17:12]url: /json_proto [15:17:12]query_string will be loaded in cgi processing [15:17:12]execute_cgi json_proto POST (null) [15:17:12]execute_cgi path=json_proto method=POST [15:17:12]POST find Content-Length [15:17:12]Host: 172.17.39.195:8080 [15:17:12]Content-Length: 678 [15:17:12]Content-Type: application/json [15:17:12] [15:17:12]POST finish read [15:17:12]Found Content-Length = 678 [15:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693190", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [15:17:12]execute_script... [15:17: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)1693190", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [15:17:12]POST & json_proto [15:17:12]process_json_proto [15:17:12]json parsed OK: [15:17:12]protocol is kg_v1.0 [15:17:12]action value=close_receipt [15:17:12]process_action close_receipt [15:17:12]cmd_close_receipt [15:17:12]MH_GetDate [15:17:12]Write to MH i2c: F0 00 00 94 05 88 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: F0 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: F0 09 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: F0 09 00 94 05 00 FA 47 74 66 99 81 91 64 BB [15:17:12]GetLastDocTimeStamp 1718895676 [15:17:12]current date 1718896634 [15:17:12]FM_GetShiftState [15:17:12]SAM_PROTO_GetShiftState [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 13 01 00 [15:17:12]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 0E 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F3 [15:17:12]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:17:12]wFMCommunicate OK [15:17:12]SAM_PROTO_GetShiftState done [15:17:12]FM_GetShiftState done [15:17:12]opened in 1718843774 [15:17:12]opened+sec_in_day 1718930174 [15:17:12]quantity*price = 35059 [15:17:12]sum+1 = 35060 [15:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 70 20.06.2024 15:17 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76629 ФПД: 202271700557066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151714&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76629&fm=202271700557066&tin=02508201610067®Number=0000000000095696&sum=35000 [15:17:13]StoreToDocumentArchive [15:17:13]shift 393 fd 76629 [15:17:13]save to /storage/0393/doc_00076629 [15:17:13]save last doc name /storage/0393/doc_00076629 to /storage/kkm_last_doc_name [15:17:13]save OK [15:17:13]Clear old archive folders... [15:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:13]tlvbuf is 00E8D2A0 [15:17:13]SAM_PROTO_ClearQueue [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 09 00 00 [15:17:13]Write to MH i2c: E2 08 00 A2 05 80 09 00 00 00 00 00 00 19 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [15:17:13]RAPDU: 90 00 [15:17:13]wFMCommunicate OK [15:17:13]SAM_PROTO_ClearQueue done [15:17:13]KKMCreateOFDPacket [15:17:13]OFDProtocolAddRootSTLVToBuf [15:17:13]FM_MakeSignedData [15:17:13]FM_MakeSignedData [15:17:13]SAM_PROTO_SignData [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 0D 01 02 [15:17:13]Write to MH i2c: E2 08 00 A3 05 80 0D 01 02 00 00 00 00 21 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [15:17:13]RAPDU: 90 00 [15:17:13]wFMCommunicate OK [15:17:13]wFMCommunicate request_size=255 [15:17:13]MH_SAM_APDU [15:17: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FA 47 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2B 01 00 35 04 06 00 B7 [15:17:13]Write to MH i2c: E2 02 01 A4 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FA 47 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2B 01 00 35 04 06 00 B7 00 00 DD [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:14]OFD Sender: No OFD packet to send [15:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [15:17:14]RAPDU: 90 00 [15:17:14]wFMCommunicate OK [15:17:14]wFMCommunicate request_size=10 [15:17:14]MH_SAM_APDU [15:17:14]CAPDU: 80 0D 02 02 05 F7 0C DC 1D 0A [15:17:14]Write to MH i2c: E2 0D 00 A5 05 80 0D 02 02 05 00 F7 0C DC 1D 0A 00 00 34 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [15:17:14]RAPDU: 90 00 [15:17:14]wFMCommunicate OK [15:17:14]wFMCommunicate request_size=4 [15:17:14]MH_SAM_APDU [15:17:14]CAPDU: 80 0D 03 02 [15:17:14]Write to MH i2c: E2 08 00 A6 05 80 0D 03 02 00 00 00 00 26 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 0B 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 0B 00 A6 05 00 AF 3A 94 E5 89 A7 C2 2F 90 00 AA [15:17:14]RAPDU: AF 3A 94 E5 89 A7 C2 2F 90 00 [15:17:14]wFMCommunicate OK [15:17:14]SAM_PROTO_SignData done [15:17:14]FM_MakeSignedData done [15:17:14]CreateOFDProtocolMessage [15:17:14]wFMCommunicate request_size=4 [15:17:14]MH_SAM_APDU [15:17:14]CAPDU: 80 11 00 00 [15:17:14]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 17 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 76 [15:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:17:14]wFMCommunicate OK [15:17:14]CreateOFDProtocolMessage done [15:17:14]OFDSenderStorePacket 76629 [15:17:14]StoreOFDPacket docnum=76629 [15:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 91 F2 07 01 EF 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FA 47 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2B 01 00 35 04 06 00 B7 F7 0C DC 1D 0A AF 3A 94 E5 89 A7 C2 2F [15:17:14]CheckFolder [15:17:14]dirname=/storage/ofd_packets [15:17:14]CheckFolder done [15:17:14]ProducePacketName [15:17:14]name=ofd_packets/00076629 [15:17:14]NVStorageSaveData ofd_packets/00076629 [15:17:14]File name is /storage/ofd_packets/00076629 [15:17:14]Write 301 bytes [15:17:14]NVStorageSaveData done [15:17:14]OFDSenderStorePacket done [15:17:14]KKMCreateOFDPacket done [15:17:14]NVStorageSaveData kkm_last_timestamp [15:17:14]File name is /storage/kkm_last_timestamp [15:17:14]Write 4 bytes [15:17:14]NVStorageSaveData done [15:17:14]ExternCall_PrintAddStr [15:17:14]wPrintStart [15:17:14]Write to MH i2c: 01 00 00 A8 05 AD [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: 01 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: 01 07 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [15:17:14]RasterBufferAndPrint [15:17:14]line Счет N : (1)1693190 [15:17:14]line ИНН: 02508201610067 [15:17:14]line Контрольно-Кассовый Чек [15:17:14]line ПРОДАЖА [15:17:14]line ТРК (МРК, ГНК) : 53 [15:17:14]line Товар: 2710124130 [15:17:14]line Аи-92-К-5 [15:17:14]line 5.280 * 66.40 [15:17:14]line = 350.59 [15:17:14]line НДС 12% НСП 1% [15:17:14]line > о реализуемом товаре [15:17:14]line ОКРУГЛЕНИЕ: -0.59 [15:17:14]line ИТОГО: 350.00 [15:17:14]line Внесено: 350.00 [15:17:14]line СДАЧА: 0.00 [15:17:14]line НСП 1% : 3.10 [15:17:14]line НДС 12% : 37.23 [15:17:14]line Наличными: 350.00 [15:17:14]line Безнал.: 0.00 [15:17:14]line Место: АЗС № 144 "Партнер Нефть" [15:17:14]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:17:14]line СНО: Общий режим [15:17:14]line Чек 70 20.06.2024 15:17 [15:17:14]line Смена: 393 ФФД: 1.0 [15:17:14]line ЗНМ: 0300000170 [15:17:14]line РНМ: 0000000000095696 [15:17:14]line Версия ККМ: 001 [15:17:14]line ФМ: 0000000000875009 [15:17:14]line ФД: 76629 [15:17:14]line ФПД: 202271700557066 [15:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151714&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76629&fm=202271700557066&tin=02508201610067®Number=0000000000095696&sum=35000 [15:17:14]written 0, free lines is 4095 [15:17:14]OFD Sender: Processing packet 76629 [packets to send 351, broken 350] [15:17:14]ProducePacketName [15:17:14]name=ofd_packets/00076629 [15:17:14]OFD Sender: To server: pG, [15:17:14]CommunicateWithHost lk.salyk.kg:30040 [15:17:14]ConnectInit lk.salyk.kg [15:17:14]Connected sock=11 [15:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 91 F2 07 01 EF 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FA 47 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2B 01 00 35 04 06 00 B7 F7 0C DC 1D 0A AF 3A 94 E5 89 A7 C2 2F [15:17:14]Write to MH i2c: 01 00 00 D3 05 D8 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: 01 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: 01 07 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 EA 0C D5 [15:17:14]RasterBufferAndPrint [15:17:14]line [15:17:14]line [15:17:14]line [15:17:14]line [15:17:14]line [15:17:14]written 0, free lines is 3312 [15:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 04 76 47 00 D9 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2B 01 00 F4 03 04 00 9A EE 73 66 B6 04 01 00 00 08 49 1C 60 E2 F4 F0 4E [15:17:14]CommunicateWithHost err = 0 [15:17:14]CheckOFDResponse [15:17:14]1017 (14) - 77093643461234 [15:17:14]1041 (16) - 0000000000875009 [15:17:14]1040 (4) - 76629 [15:17:14]1012 (4) - 20.06.2024 08:55 [15:17:14]1206 (1) - 0 [15:17:14]OFD Sender: Remove packet 76629 [15:17:14]ProducePacketName [15:17:14]name=ofd_packets/00076629 [15:17:14]NVStorageDeleteData [15:17:14]MH_Cut [15:17:14]Write to MH i2c: D1 01 00 DA 05 01 B1 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: D1 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: D1 01 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: D1 01 00 DA 05 00 B0 [15:17:14]Write to MH i2c: 01 00 00 DB 05 E0 [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:15]OFD Sender: No OFD packet to send [15:17:15]*** Cut start [15:17:15]*** Partial cut [15:17:15]*** CUTSNS_PIN = 1 [15:17:15]*** CUTSNS_PIN = 0 [15:17:15]*** Brake cut motor [15:17:16]Read from MH i2c: 01 [15:17:16]MH_I2C_Read... [15:17:16]*** Stop cut motor [15:17:16]*** Cut end [15:17:16]Read from MH i2c: 01 07 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [15:17:16]process_action close_receipt done [15:17:16]requested_data is exist [15:17:16]produce_requested_data [15:17:16]requested_item fm.sn is exist - process it [15:17:16]wFMCommunicate request_size=4 [15:17:16]MH_SAM_APDU [15:17:16]CAPDU: 80 11 00 00 [15:17:16]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:16]Read from MH i2c: E2 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 17 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 AB [15:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:17:16]wFMCommunicate OK [15:17:16]requested_item fd.num is exist - process it [15:17:16]SAM_PROTO_GetFieldsCounters [15:17:16]wFMCommunicate request_size=4 [15:17:16]MH_SAM_APDU [15:17:16]CAPDU: 80 13 00 00 [15:17:16]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:16]Read from MH i2c: E2 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 62 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [15:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:16]wFMCommunicate OK [15:17:16]SAM_PROTO_GetFieldsCounters done [15:17:16]requested_item shift.num is exist - process it [15:17:16]requested_item shift.opened is exist - process it [15:17:16]req_shift_opened [15:17:16]FM_GetShiftState [15:17:16]SAM_PROTO_GetShiftState [15:17:16]wFMCommunicate request_size=4 [15:17:16]MH_SAM_APDU [15:17:16]CAPDU: 80 13 01 00 [15:17:16]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:16]Read from MH i2c: E2 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 0E 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3C [15:17:16]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:17:16]wFMCommunicate OK [15:17:16]SAM_PROTO_GetShiftState done [15:17:16]FM_GetShiftState done [15:17:16]req_shift_opened done [15:17:16]requested_item shift.open_date is exist - process it [15:17:16]req_shift_open_date [15:17:16]req_shift_open_date done [15:17:16]produce_requested_data done [15:17:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76629,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [15:17:16]process_action_free close_receipt [15:17:16]json_value_free [15:17:16]json_value_free done [15:17:16]process_json_proto returns [15:17:16]Send response to host [15:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76629,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [15:17:16]free response buf [15:17:16]execute_script done [15:17:16]execute_script returns [15:17:16]free content buf [15:17:16]Sock 9.Close socket [15:17:16]Sock 9.Thread stoped [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:33]accept exits with 7 [15:17:33]New connection [15:17:33]New thread 3066805604 created [15:17:33]Thread 3066948964 joined [15:17:33]Waiting for new connection... [15:17:33] Sock 7.Parse request [15:17:33]Sock 7.Check first char [15:17:33]Sock 7.First char is OK [15:17:33]request: POST /json_proto HTTP/1.0 [15:17:33]Method: POST [15:17:33]URL: /json_proto [15:17:33]Method is POST - this is cgi request [15:17:33]url: /json_proto [15:17:33]query_string will be loaded in cgi processing [15:17:33]execute_cgi json_proto POST (null) [15:17:33]execute_cgi path=json_proto method=POST [15:17:33]POST find Content-Length [15:17:33]Host: 172.17.39.195:8080 [15:17:33]Content-Length: 841 [15:17:33]Content-Type: application/json [15:17:33] [15:17:33]POST finish read [15:17:33]Found Content-Length = 841 [15:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693191", "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.40, "quantity" : 2.370, "sum" : 157.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 157.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:33]execute_script... [15:17:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693191", "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.40, "quantity" : 2.370, "sum" : 157.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 157.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:33]POST & json_proto [15:17:33]process_json_proto [15:17:33]json parsed OK: [15:17:33]protocol is kg_v1.0 [15:17:33]action value=close_receipt [15:17:33]process_action close_receipt [15:17:33]cmd_close_receipt [15:17:33]MH_GetDate [15:17:33]Write to MH i2c: F0 00 00 DF 05 D3 [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: F0 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: F0 09 00 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: F0 09 00 DF 05 00 0E 48 74 66 99 81 91 64 1B [15:17:33]GetLastDocTimeStamp 1718896634 [15:17:33]current date 1718896654 [15:17:33]FM_GetShiftState [15:17:33]SAM_PROTO_GetShiftState [15:17:33]wFMCommunicate request_size=4 [15:17:33]MH_SAM_APDU [15:17:33]CAPDU: 80 13 01 00 [15:17:33]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [15:17:33]Write i2c OK [15:17:33]MH_I2C_Read... [15:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:33]Read from MH i2c: E2 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: E2 0E 00 [15:17:33]MH_I2C_Read... [15:17:33]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3E [15:17:33]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:17:33]wFMCommunicate OK [15:17:33]SAM_PROTO_GetShiftState done [15:17:33]FM_GetShiftState done [15:17:33]opened in 1718843774 [15:17:33]opened+sec_in_day 1718930174 [15:17:33]quantity*price = 15736 [15:17:33]sum+1 = 15738 [15:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 157.37 НСП 1% : 1.39 НДС 12% : 16.71 Наличными: 0.00 Безнал.: 157.37 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 71 20.06.2024 15:17 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875009 ФД: 76630 ФПД: 49277713411365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151734&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76630&fm=49277713411365&tin=02508201610067®Number=0000000000095696&sum=15737 [15:17:34]StoreToDocumentArchive [15:17:34]shift 393 fd 76630 [15:17:34]save to /storage/0393/doc_00076630 [15:17:34]save last doc name /storage/0393/doc_00076630 to /storage/kkm_last_doc_name [15:17:34]save OK [15:17:34]Clear old archive folders... [15:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:34]tlvbuf is 00E88100 [15:17:34]SAM_PROTO_ClearQueue [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 09 00 00 [15:17:34]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [15:17:34]RAPDU: 90 00 [15:17:34]wFMCommunicate OK [15:17:34]SAM_PROTO_ClearQueue done [15:17:34]KKMCreateOFDPacket [15:17:34]OFDProtocolAddRootSTLVToBuf [15:17:34]FM_MakeSignedData [15:17:34]FM_MakeSignedData [15:17:34]SAM_PROTO_SignData [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 0D 01 02 [15:17:34]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [15:17:34]RAPDU: 90 00 [15:17:34]wFMCommunicate OK [15:17:34]wFMCommunicate request_size=255 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 79 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 48 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2B 01 00 35 04 06 00 2C [15:17:34]Write to MH i2c: E2 02 01 EF 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 42 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 79 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 48 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2B 01 00 35 04 06 00 2C 00 00 BA [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [15:17:34]RAPDU: 90 00 [15:17:34]wFMCommunicate OK [15:17:34]wFMCommunicate request_size=10 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 0D 02 02 05 D1 5C 9A 6D 25 [15:17:34]Write to MH i2c: E2 0D 00 F0 05 80 0D 02 02 05 00 D1 5C 9A 6D 25 00 00 D2 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [15:17:34]RAPDU: 90 00 [15:17:34]wFMCommunicate OK [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 0D 03 02 [15:17:34]Write to MH i2c: E2 08 00 F1 05 80 0D 03 02 00 00 00 00 71 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 0B 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 0B 00 F1 05 00 A4 33 2C 70 56 97 03 43 90 00 18 [15:17:34]RAPDU: A4 33 2C 70 56 97 03 43 90 00 [15:17:34]wFMCommunicate OK [15:17:34]SAM_PROTO_SignData done [15:17:34]FM_MakeSignedData done [15:17:34]CreateOFDProtocolMessage [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 11 00 00 [15:17:34]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 17 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C1 [15:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:17:34]wFMCommunicate OK [15:17:34]CreateOFDProtocolMessage done [15:17:34]OFDSenderStorePacket 76630 [15:17:34]StoreOFDPacket docnum=76630 [15:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 52 A7 07 01 DE 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 79 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 48 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2B 01 00 35 04 06 00 2C D1 5C 9A 6D 25 A4 33 2C 70 56 97 03 43 [15:17:34]CheckFolder [15:17:34]dirname=/storage/ofd_packets [15:17:34]CheckFolder done [15:17:34]ProducePacketName [15:17:34]name=ofd_packets/00076630 [15:17:34]NVStorageSaveData ofd_packets/00076630 [15:17:34]File name is /storage/ofd_packets/00076630 [15:17:34]Write 301 bytes [15:17:34]NVStorageSaveData done [15:17:34]OFDSenderStorePacket done [15:17:34]KKMCreateOFDPacket done [15:17:34]NVStorageSaveData kkm_last_timestamp [15:17:34]File name is /storage/kkm_last_timestamp [15:17:34]Write 4 bytes [15:17:34]NVStorageSaveData done [15:17:34]ExternCall_PrintAddStr [15:17:34]wPrintStart [15:17:34]Write to MH i2c: 01 00 00 F3 05 F8 [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: 01 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: 01 07 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [15:17:34]RasterBufferAndPrint [15:17:34]line Счет N : (1)1693191 [15:17:34]line ИНН: 02508201610067 [15:17:34]line Контрольно-Кассовый Чек [15:17:34]line ПРОДАЖА [15:17:34]line ТРК (МРК, ГНК) : 33 [15:17:34]line Товар: 2710124130 [15:17:34]line Аи-92-К-5 [15:17:34]line 2.370 * 66.40 [15:17:34]line = 157.37 [15:17:34]line НДС 12% НСП 1% [15:17:34]line > о реализуемом товаре [15:17:34]line ИТОГО: 157.37 [15:17:34]line НСП 1% : 1.39 [15:17:34]line НДС 12% : 16.71 [15:17:34]line Наличными: 0.00 [15:17:34]line Безнал.: 157.37 [15:17:34]line Место: АЗС № 144 "Партнер Нефть" [15:17:34]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:17:34]line СНО: Общий режим [15:17:34]line Чек 71 20.06.2024 15:17 [15:17:34]line Смена: 393 ФФД: 1.0 [15:17:34]line ЗНМ: 0300000170 [15:17:34]line РНМ: 0000000000095696 [15:17:34]line Версия ККМ: 001 [15:17:34]line Платежная система: АКБ Кыргызстан [15:17:34]line ФМ: 0000000000875009 [15:17:34]line ФД: 76630 [15:17:34]line ФПД: 49277713411365 [15:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151734&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76630&fm=49277713411365&tin=02508201610067®Number=0000000000095696&sum=15737 [15:17:34]written 0, free lines is 4095 [15:17:34]OFD Sender: Processing packet 76630 [packets to send 351, broken 350] [15:17:34]ProducePacketName [15:17:34]name=ofd_packets/00076630 [15:17:34]OFD Sender: To server: pG, [15:17:34]CommunicateWithHost lk.salyk.kg:30040 [15:17:34]ConnectInit lk.salyk.kg [15:17:35]Connected sock=10 [15:17:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 52 A7 07 01 DE 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 79 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0E 48 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2B 01 00 35 04 06 00 2C D1 5C 9A 6D 25 A4 33 2C 70 56 97 03 43 [15:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 0F 3C 47 00 00 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2B 01 00 F4 03 04 00 AF EE 73 66 B6 04 01 00 00 AE 5B 50 BA 29 3D AF D2 [15:17:35]CommunicateWithHost err = 0 [15:17:35]CheckOFDResponse [15:17:35]1017 (14) - 77093643461234 [15:17:35]1041 (16) - 0000000000875009 [15:17:35]1040 (4) - 76630 [15:17:35]1012 (4) - 20.06.2024 08:56 [15:17:35]1206 (1) - 0 [15:17:35]OFD Sender: Remove packet 76630 [15:17:35]ProducePacketName [15:17:35]name=ofd_packets/00076630 [15:17:35]NVStorageDeleteData [15:17:35]Write to MH i2c: 01 00 00 1D 06 23 [15:17:35]Write i2c OK [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: 01 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: 01 07 00 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 E4 0C 1A [15:17:35]RasterBufferAndPrint [15:17:35]line [15:17:35]line [15:17:35]line [15:17:35]line [15:17:35]line [15:17:35]written 0, free lines is 3307 [15:17:35]MH_Cut [15:17:35]Write to MH i2c: D1 01 00 24 06 01 FC [15:17:35]Write i2c OK [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: D1 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: D1 01 00 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: D1 01 00 24 06 00 FB [15:17:35]Write to MH i2c: 01 00 00 25 06 2B [15:17:35]Write i2c OK [15:17:35]MH_I2C_Read... [15:17:35]OFD Sender: No OFD packet to send [15:17:36]*** Cut start [15:17:36]*** Partial cut [15:17:36]*** CUTSNS_PIN = 1 [15:17:36]*** CUTSNS_PIN = 0 [15:17:36]*** Brake cut motor [15:17:36]Read from MH i2c: 01 [15:17:36]MH_I2C_Read... [15:17:36]*** Stop cut motor [15:17:36]*** Cut end [15:17:36]Read from MH i2c: 01 07 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [15:17:36]process_action close_receipt done [15:17:36]requested_data is exist [15:17:36]produce_requested_data [15:17:36]requested_item fm.sn is exist - process it [15:17:36]wFMCommunicate request_size=4 [15:17:36]MH_SAM_APDU [15:17:36]CAPDU: 80 11 00 00 [15:17:36]Write to MH i2c: E2 08 00 26 06 80 11 00 00 00 00 00 00 A6 [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 17 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 17 00 26 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F6 [15:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:17:36]wFMCommunicate OK [15:17:36]requested_item fd.num is exist - process it [15:17:36]SAM_PROTO_GetFieldsCounters [15:17:36]wFMCommunicate request_size=4 [15:17:36]MH_SAM_APDU [15:17:36]CAPDU: 80 13 00 00 [15:17:36]Write to MH i2c: E2 08 00 27 06 80 13 00 00 00 00 00 00 A9 [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 62 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 62 00 27 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 56 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 56 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:36]wFMCommunicate OK [15:17:36]SAM_PROTO_GetFieldsCounters done [15:17:36]requested_item shift.num is exist - process it [15:17:36]requested_item shift.opened is exist - process it [15:17:36]req_shift_opened [15:17:36]FM_GetShiftState [15:17:36]SAM_PROTO_GetShiftState [15:17:36]wFMCommunicate request_size=4 [15:17:36]MH_SAM_APDU [15:17:36]CAPDU: 80 13 01 00 [15:17:36]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 0E 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 87 [15:17:36]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:17:36]wFMCommunicate OK [15:17:36]SAM_PROTO_GetShiftState done [15:17:36]FM_GetShiftState done [15:17:36]req_shift_opened done [15:17:36]requested_item shift.open_date is exist - process it [15:17:36]req_shift_open_date [15:17:36]req_shift_open_date done [15:17:36]produce_requested_data done [15:17:36]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76630,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [15:17:36]process_action_free close_receipt [15:17:36]json_value_free [15:17:36]json_value_free done [15:17:36]process_json_proto returns [15:17:36]Send response to host [15:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76630,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [15:17:36]free response buf [15:17:36]execute_script done [15:17:36]execute_script returns [15:17:36]free content buf [15:17:36]Sock 7.Close socket [15:17:36]Sock 7.Thread stoped [15:17:38]accept exits with 9 [15:17:38]New connection [15:17:38]New thread 3066948964 created [15:17:38]Thread 3066805604 joined [15:17:38]Waiting for new connection... [15:17:38] Sock 9.Parse request [15:17:38]Sock 9.Check first char [15:17:38]Sock 9.First char is OK [15:17:38]request: POST /json_proto HTTP/1.0 [15:17:38]Method: POST [15:17:38]URL: /json_proto [15:17:38]Method is POST - this is cgi request [15:17:38]url: /json_proto [15:17:38]query_string will be loaded in cgi processing [15:17:38]execute_cgi json_proto POST (null) [15:17:38]execute_cgi path=json_proto method=POST [15:17:38]POST find Content-Length [15:17:38]Host: 172.17.39.195:8080 [15:17:38]Content-Length: 215 [15:17:38]Content-Type: application/json [15:17:38] [15:17:38]POST finish read [15:17:38]Found Content-Length = 215 [15:17: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" ] } } [15:17:38]execute_script... [15:17: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" ] } } [15:17:38]POST & json_proto [15:17:38]process_json_proto [15:17:38]json parsed OK: [15:17:38]protocol is kg_v1.0 [15:17:38]action value=get_value [15:17:38]process_action get_value [15:17:38]cmd_get_value [15:17:38]process_action get_value done [15:17:38]requested_data is exist [15:17:38]produce_requested_data [15:17:38]requested_item kkm.sn is exist - process it [15:17:38]requested_item kkm.ver is exist - process it [15:17:38]requested_item fm.sn is exist - process it [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 11 00 00 [15:17:38]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F9 [15:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:17:38]wFMCommunicate OK [15:17:38]requested_item fd.num is exist - process it [15:17:38]SAM_PROTO_GetFieldsCounters [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 13 00 00 [15:17:38]Write to MH i2c: E2 08 00 2A 06 80 13 00 00 00 00 00 00 AC [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 62 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 62 00 2A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 56 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [15:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 56 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_GetFieldsCounters done [15:17:38]requested_item shift.num is exist - process it [15:17:38]requested_item shift.opened is exist - process it [15:17:38]req_shift_opened [15:17:38]FM_GetShiftState [15:17:38]SAM_PROTO_GetShiftState [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 13 01 00 [15:17:38]Write to MH i2c: E2 08 00 2B 06 80 13 01 00 00 00 00 00 AE [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0E 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0E 00 2B 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 8A [15:17:38]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_GetShiftState done [15:17:38]FM_GetShiftState done [15:17:38]req_shift_opened done [15:17:38]requested_item shift.open_date is exist - process it [15:17:38]req_shift_open_date [15:17:38]req_shift_open_date done [15:17:38]produce_requested_data done [15:17:38]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76630,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [15:17:38]process_action_free get_value [15:17:38]json_value_free [15:17:38]json_value_free done [15:17:38]process_json_proto returns [15:17:38]Send response to host [15:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76630,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [15:17:38]free response buf [15:17:38]execute_script done [15:17:38]execute_script returns [15:17:38]free content buf [15:17:38]Sock 9.Close socket [15:17:38]Sock 9.Thread stoped [15:17:38]accept exits with 7 [15:17:38]New connection [15:17:38]New thread 3066805604 created [15:17:38]Thread 3066948964 joined [15:17:38]Waiting for new connection... [15:17:38] Sock 7.Parse request [15:17:38]Sock 7.Check first char [15:17:38]Sock 7.First char is OK [15:17:38]request: POST /json_proto HTTP/1.0 [15:17:38]Method: POST [15:17:38]URL: /json_proto [15:17:38]Method is POST - this is cgi request [15:17:38]url: /json_proto [15:17:38]query_string will be loaded in cgi processing [15:17:38]execute_cgi json_proto POST (null) [15:17:38]execute_cgi path=json_proto method=POST [15:17:38]POST find Content-Length [15:17:38]Host: 172.17.39.195:8080 [15:17:38]Content-Length: 331 [15:17:38]Content-Type: application/json [15:17:38] [15:17:38]POST finish read [15:17:38]Found Content-Length = 331 [15:17:38]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:17:38]execute_script... [15:17:38]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:17:38]POST & json_proto [15:17:38]process_json_proto [15:17:38]json parsed OK: [15:17:38]protocol is kg_v1.0 [15:17:38]action value=get_value [15:17:38]process_action get_value [15:17:38]cmd_get_value [15:17:38]process_action get_value done [15:17:38]requested_data is exist [15:17:38]produce_requested_data [15:17:38]requested_item fm.sale.total is exist - process it [15:17:38]SAM_PROTO_GetFMData [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 13 03 00 [15:17:38]Write to MH i2c: E2 08 00 2C 06 80 13 03 00 00 00 00 00 B1 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 FD 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 FD 00 2C 06 00 C6 04 85 04 C2 04 6E 04 04 00 44 28 01 00 69 04 A3 00 6F 04 04 00 07 25 01 00 B1 04 05 00 79 9E 45 B0 01 70 04 05 00 30 51 10 6D 01 72 04 04 00 49 4D 35 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E6 8C E9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 97 5D D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 03 [15:17:39]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 44 28 01 00 69 04 A3 00 6F 04 04 00 07 25 01 00 B1 04 05 00 79 9E 45 B0 01 70 04 05 00 30 51 10 6D 01 72 04 04 00 49 4D 35 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E6 8C E9 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 97 5D D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 17 00 00 [15:17:39]Write to MH i2c: E2 08 00 2D 06 80 17 00 00 00 00 00 00 B3 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 FD 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 FD 00 2D 06 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 F1 [15:17:39]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 17 00 00 [15:17:39]Write to MH i2c: E2 08 00 2E 06 80 17 00 00 00 00 00 00 B4 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:17:39]Read from MH i2c: E2 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 FD 00 [15:17:39]MH_I2C_Read... [15:17:39]Read from MH i2c: E2 FD 00 2E 06 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 DB [15:17:39]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [15:17:39]wFMCommunicate OK [15:17:39]wFMCommunicate request_size=4 [15:17:39]MH_SAM_APDU [15:17:39]CAPDU: 80 17 00 00 [15:17:39]Write to MH i2c: E2 08 00 2F 06 80 17 00 00 00 00 00 00 B5 [15:17:39]Write i2c OK [15:17:39]MH_I2C_Read... [15:17:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 FD 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 FD 00 2F 06 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [15:17:40]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:17:40]wFMCommunicate OK [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 17 00 00 [15:17:40]Write to MH i2c: E2 08 00 30 06 80 17 00 00 00 00 00 00 B6 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 E3 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 E3 00 30 06 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 95 [15:17:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:17:40]wFMCommunicate OK [15:17:40]SAM_PROTO_GetFMData done [15:17:40]requested_item fm.sale_refund.total is exist - process it [15:17:40]requested_item fm.buy.total is exist - process it [15:17:40]requested_item shift.sale.total is exist - process it [15:17:40]SAM_PROTO_GetShiftData [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 13 02 00 [15:17:40]Write to MH i2c: E2 08 00 31 06 80 13 02 00 00 00 00 00 B5 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]OFD Sender: No OFD packet to send [15:17:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 FD 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 FD 00 31 06 00 AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 48 15 27 70 04 03 00 B0 9B 1D 72 04 03 00 98 79 09 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 C2 26 04 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 8B 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:17:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 47 00 00 00 69 04 9B 00 6F 04 04 00 47 00 00 00 B1 04 03 00 48 15 27 70 04 03 00 B0 9B 1D 72 04 03 00 98 79 09 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 C2 26 04 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 8B 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:17:41]wFMCommunicate OK [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 17 00 00 [15:17:41]Write to MH i2c: E2 08 00 32 06 80 17 00 00 00 00 00 00 B8 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 FD 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 FD 00 32 06 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 DA [15:17:41]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 [15:17:41]wFMCommunicate OK [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 17 00 00 [15:17:41]Write to MH i2c: E2 08 00 33 06 80 17 00 00 00 00 00 00 B9 [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 FD 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 FD 00 33 06 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 70 [15:17:41]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 [15:17:41]wFMCommunicate OK [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 17 00 00 [15:17:41]Write to MH i2c: E2 08 00 34 06 80 17 00 00 00 00 00 00 BA [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 FD 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 FD 00 34 06 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 2C [15:17:41]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 [15:17:42]wFMCommunicate OK [15:17:42]wFMCommunicate request_size=4 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 17 00 00 [15:17:42]Write to MH i2c: E2 08 00 35 06 80 17 00 00 00 00 00 00 BB [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 CB 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 CB 00 35 06 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 A4 [15:17:42]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 [15:17:42]wFMCommunicate OK [15:17:42]SAM_PROTO_GetShiftData done [15:17:42]requested_item shift.sale.total_cash is exist - process it [15:17:42]requested_item shift.sale_refund.total is exist - process it [15:17:42]requested_item shift.sale_refund.total_cash is exist - process it [15:17:42]requested_item shift.buy.total is exist - process it [15:17:42]requested_item shift.buy.total_cash is exist - process it [15:17:42]produce_requested_data done [15:17:42]produce_requested_data return {"fm.sale.total":72523198.65,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":25613.52,"shift.sale.total_cash":19404.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:17:42]process_action_free get_value [15:17:42]json_value_free [15:17:42]json_value_free done [15:17:42]process_json_proto returns [15:17:42]Send response to host [15:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72523198.65,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":25613.52,"shift.sale.total_cash":19404.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:17:42]free response buf [15:17:42]execute_script done [15:17:42]execute_script returns [15:17:42]free content buf [15:17:42]Sock 7.Close socket [15:17:42]Sock 7.Thread stoped [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [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:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:29]accept exits with 9 [15:25:29]New connection [15:25:29]New thread 3066948964 created [15:25:29]Thread 3066805604 joined [15:25:29]Waiting for new connection... [15:25:29] Sock 9.Parse request [15:25:29]Sock 9.Check first char [15:25:29]Sock 9.First char is OK [15:25:29]request: POST /json_proto HTTP/1.0 [15:25:29]Method: POST [15:25:29]URL: /json_proto [15:25:29]Method is POST - this is cgi request [15:25:29]url: /json_proto [15:25:29]query_string will be loaded in cgi processing [15:25:29]execute_cgi json_proto POST (null) [15:25:29]execute_cgi path=json_proto method=POST [15:25:29]POST find Content-Length [15:25:29]Host: 172.17.39.195:8080 [15:25:29]Content-Length: 960 [15:25:29]Content-Type: application/json [15:25:29] [15:25:29]POST finish read [15:25:29]Found Content-Length = 960 [15:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220766", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:29]execute_script... [15:25:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220766", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:29]POST & json_proto [15:25:29]process_json_proto [15:25:29]json parsed OK: [15:25:29]protocol is kg_v1.0 [15:25:29]action value=close_receipt [15:25:29]process_action close_receipt [15:25:29]cmd_close_receipt [15:25:29]MH_GetDate [15:25:29]Write to MH i2c: F0 00 00 36 06 2B [15:25:29]Write i2c OK [15:25:29]MH_I2C_Read... [15:25:29]Read from MH i2c: F0 [15:25:29]MH_I2C_Read... [15:25:29]Read from MH i2c: F0 09 00 [15:25:29]MH_I2C_Read... [15:25:29]Read from MH i2c: F0 09 00 36 06 00 EB 49 74 66 99 81 91 64 51 [15:25:29]GetLastDocTimeStamp 1718896654 [15:25:29]current date 1718897131 [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 37 06 80 13 01 00 00 00 00 00 BA [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 37 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 96 [15:25:29]RAPDU: 09 00 01 7E 79 73 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]opened in 1718843774 [15:25:29]opened+sec_in_day 1718930174 [15:25:29]quantity*price = 26000 [15:25:29]sum+1 = 26001 [15:25:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002326172 Вода ASU пит н.газ лимон ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 72 20.06.2024 15:25 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76631 ФПД: 248685274234239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152531&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76631&fm=248685274234239&tin=02508201610067®Number=0000000000095696&sum=36000 0 [15:25:30]StoreToDocumentArchive [15:25:30]shift 393 fd 76631 [15:25:30]save to /storage/0393/doc_00076631 [15:25:30]save last doc name /storage/0393/doc_00076631 to /storage/kkm_last_doc_name [15:25:30]save OK [15:25:30]Clear old archive folders... [15:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=402 [15:25:30]tlvbuf is 00E79A30 [15:25:30]SAM_PROTO_ClearQueue [15:25:30]wFMCommunicate request_size=4 [15:25:30]MH_SAM_APDU [15:25:30]CAPDU: 80 09 00 00 [15:25:30]Write to MH i2c: E2 08 00 44 06 80 09 00 00 00 00 00 00 BC [15:25:30]Write i2c OK [15:25:30]MH_I2C_Read... [15:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:30]Read from MH i2c: E2 [15:25:30]MH_I2C_Read... [15:25:30]Read from MH i2c: E2 03 00 [15:25:30]MH_I2C_Read... [15:25:30]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [15:25:30]RAPDU: 90 00 [15:25:30]wFMCommunicate OK [15:25:30]SAM_PROTO_ClearQueue done [15:25:30]KKMCreateOFDPacket [15:25:30]OFDProtocolAddRootSTLVToBuf [15:25:30]FM_MakeSignedData [15:25:30]FM_MakeSignedData [15:25:30]SAM_PROTO_SignData [15:25:30]wFMCommunicate request_size=4 [15:25:30]MH_SAM_APDU [15:25:30]CAPDU: 80 0D 01 02 [15:25:30]Write to MH i2c: E2 08 00 45 06 80 0D 01 02 00 00 00 00 C4 [15:25:30]Write i2c OK [15:25:30]MH_I2C_Read... [15:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:30]Read from MH i2c: E2 [15:25:30]MH_I2C_Read... [15:25:30]Read from MH i2c: E2 03 00 [15:25:30]MH_I2C_Read... [15:25:30]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [15:25:30]RAPDU: 90 00 [15:25:30]wFMCommunicate OK [15:25:30]wFMCommunicate request_size=255 [15:25:30]MH_SAM_APDU [15:25:30]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 [15:25:30]Write to MH i2c: E2 02 01 46 06 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 00 74 [15:25:30]Write i2c OK [15:25:30]MH_I2C_Read... [15:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:31]Read from MH i2c: E2 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 03 00 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [15:25:31]RAPDU: 90 00 [15:25:31]wFMCommunicate OK [15:25:31]wFMCommunicate request_size=161 [15:25:31]MH_SAM_APDU [15:25:31]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EB 49 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 57 2B 01 00 35 04 06 00 E2 2D 8D 6E 7D 7F [15:25:31]Write to MH i2c: E2 A4 00 47 06 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EB 49 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 57 2B 01 00 35 04 06 00 E2 2D 8D 6E 7D 7F 00 00 14 [15:25:31]Write i2c OK [15:25:31]MH_I2C_Read... [15:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:31]Read from MH i2c: E2 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 03 00 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [15:25:31]RAPDU: 90 00 [15:25:31]wFMCommunicate OK [15:25:31]wFMCommunicate request_size=4 [15:25:31]MH_SAM_APDU [15:25:31]CAPDU: 80 0D 03 02 [15:25:31]Write to MH i2c: E2 08 00 48 06 80 0D 03 02 00 00 00 00 C9 [15:25:31]Write i2c OK [15:25:31]MH_I2C_Read... [15:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:31]Read from MH i2c: E2 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 0B 00 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 0B 00 48 06 00 A0 7B EC 11 03 40 7D 80 90 00 22 [15:25:31]RAPDU: A0 7B EC 11 03 40 7D 80 90 00 [15:25:31]wFMCommunicate OK [15:25:31]SAM_PROTO_SignData done [15:25:31]FM_MakeSignedData done [15:25:31]CreateOFDProtocolMessage [15:25:31]wFMCommunicate request_size=4 [15:25:31]MH_SAM_APDU [15:25:31]CAPDU: 80 11 00 00 [15:25:31]Write to MH i2c: E2 08 00 49 06 80 11 00 00 00 00 00 00 C9 [15:25:31]Write i2c OK [15:25:31]MH_I2C_Read... [15:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:31]Read from MH i2c: E2 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 17 00 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: E2 17 00 49 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 19 [15:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:25:31]wFMCommunicate OK [15:25:31]CreateOFDProtocolMessage done [15:25:31]OFDSenderStorePacket 76631 [15:25:31]StoreOFDPacket docnum=76631 [15:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A6 01 00 00 DA E3 9E 01 DB 79 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EB 49 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 57 2B 01 00 35 04 06 00 E2 2D 8D 6E 7D 7F A0 7B EC 11 03 40 7D 80 [15:25:31]CheckFolder [15:25:31]dirname=/storage/ofd_packets [15:25:31]CheckFolder done [15:25:31]ProducePacketName [15:25:31]name=ofd_packets/00076631 [15:25:31]NVStorageSaveData ofd_packets/00076631 [15:25:31]File name is /storage/ofd_packets/00076631 [15:25:31]Write 452 bytes [15:25:31]NVStorageSaveData done [15:25:31]OFDSenderStorePacket done [15:25:31]KKMCreateOFDPacket done [15:25:31]NVStorageSaveData kkm_last_timestamp [15:25:31]File name is /storage/kkm_last_timestamp [15:25:31]Write 4 bytes [15:25:31]NVStorageSaveData done [15:25:31]ExternCall_PrintAddStr [15:25:31]wPrintStart [15:25:31]Write to MH i2c: 01 00 00 4A 06 50 [15:25:31]Write i2c OK [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: 01 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: 01 07 00 [15:25:31]MH_I2C_Read... [15:25:31]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [15:25:31]RasterBufferAndPrint [15:25:31]line Счет N : (3)220766 [15:25:31]line ИНН: 02508201610067 [15:25:31]line Контрольно-Кассовый Чек [15:25:31]line ПРОДАЖА [15:25:31]line Товар: 4700002083914 [15:25:31]line Водка Сары челек 0,35л [15:25:31]line 1.000 * 260.00 [15:25:31]line = 260.00 [15:25:31]line НДС 12% НСП 1% [15:25:31]line > о реализуемом товаре [15:25:31]line Товар: 4870002326172 [15:25:31]line Вода ASU пит н.газ лимон ПЭТ 1л [15:25:31]line 1.000 * 100.00 [15:25:31]line = 100.00 [15:25:31]line НДС 12% НСП 1% [15:25:31]line > о реализуемом товаре [15:25:31]line ИТОГО: 360.00 [15:25:31]line НСП 1% : 3.18 [15:25:31]line НДС 12% : 38.23 [15:25:31]line Наличными: 360.00 [15:25:31]line Безнал.: 0.00 [15:25:31]line Место: АЗС № 144 "Партнер Нефть" [15:25:31]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:25:31]line СНО: Общий режим [15:25:31]line Чек 72 20.06.2024 15:25 [15:25:31]line Смена: 393 ФФД: 1.0 [15:25:31]line ЗНМ: 0300000170 [15:25:31]line РНМ: 0000000000095696 [15:25:31]line Версия ККМ: 001 [15:25:31]line ФМ: 0000000000875009 [15:25:31]line ФД: 76631 [15:25:31]line ФПД: 248685274234239 [15:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152531&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76631&fm=248685274234239&tin=02508201610067®Number=0000000000095696&sum=36000 [15:25:31]line 0 [15:25:31]OFD Sender: Processing packet 76631 [packets to send 351, broken 350] [15:25:31]ProducePacketName [15:25:31]name=ofd_packets/00076631 [15:25:31]OFD Sender: To server: pG, [15:25:31]CommunicateWithHost lk.salyk.kg:30040 [15:25:31]ConnectInit lk.salyk.kg [15:25:31]written 0, free lines is 4095 [15:25:31]Connected sock=10 [15:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A6 01 00 00 DA E3 9E 01 DB 79 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EB 49 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 57 2B 01 00 35 04 06 00 E2 2D 8D 6E 7D 7F A0 7B EC 11 03 40 7D 80 [15:25:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 1E F9 47 00 38 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 57 2B 01 00 F4 03 04 00 8B F0 73 66 B6 04 01 00 00 DB 78 4B E4 D2 61 30 B4 [15:25:32]CommunicateWithHost err = 0 [15:25:32]CheckOFDResponse [15:25:32]1017 (14) - 77093643461234 [15:25:32]1041 (16) - 0000000000875009 [15:25:32]1040 (4) - 76631 [15:25:32]1012 (4) - 20.06.2024 09:04 [15:25:32]1206 (1) - 0 [15:25:32]OFD Sender: Remove packet 76631 [15:25:32]ProducePacketName [15:25:32]name=ofd_packets/00076631 [15:25:32]NVStorageDeleteData [15:25:32]Write to MH i2c: 01 00 00 79 06 7F [15:25:32]Write i2c OK [15:25:32]MH_I2C_Read... [15:25:32]Read from MH i2c: 01 [15:25:32]MH_I2C_Read... [15:25:32]Read from MH i2c: 01 07 00 [15:25:32]MH_I2C_Read... [15:25:32]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 A0 0C 32 [15:25:32]RasterBufferAndPrint [15:25:32]line [15:25:32]line [15:25:32]line [15:25:32]line [15:25:32]line [15:25:32]written 0, free lines is 3239 [15:25:32]MH_Cut [15:25:32]Write to MH i2c: D1 01 00 80 06 01 58 [15:25:32]Write i2c OK [15:25:32]MH_I2C_Read... [15:25:32]Read from MH i2c: D1 [15:25:32]MH_I2C_Read... [15:25:32]Read from MH i2c: D1 01 00 [15:25:32]MH_I2C_Read... [15:25:32]Read from MH i2c: D1 01 00 80 06 00 57 [15:25:32]Write to MH i2c: 01 00 00 81 06 87 [15:25:32]Write i2c OK [15:25:32]MH_I2C_Read... [15:25:32]OFD Sender: No OFD packet to send [15:25:33]*** Cut start [15:25:33]*** Partial cut [15:25:33]*** CUTSNS_PIN = 1 [15:25:33]*** CUTSNS_PIN = 0 [15:25:33]*** Brake cut motor [15:25:33]Read from MH i2c: 01 [15:25:33]MH_I2C_Read... [15:25:33]*** Stop cut motor [15:25:33]*** Cut end [15:25:33]Read from MH i2c: 01 07 00 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 FF 0F 9C [15:25:33]process_action close_receipt done [15:25:33]requested_data is exist [15:25:33]produce_requested_data [15:25:33]requested_item fm.sn is exist - process it [15:25:33]wFMCommunicate request_size=4 [15:25:33]MH_SAM_APDU [15:25:33]CAPDU: 80 11 00 00 [15:25:33]Write to MH i2c: E2 08 00 82 06 80 11 00 00 00 00 00 00 02 [15:25:33]Write i2c OK [15:25:33]MH_I2C_Read... [15:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:33]Read from MH i2c: E2 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 17 00 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 17 00 82 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 52 [15:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:25:33]wFMCommunicate OK [15:25:33]requested_item fd.num is exist - process it [15:25:33]SAM_PROTO_GetFieldsCounters [15:25:33]wFMCommunicate request_size=4 [15:25:33]MH_SAM_APDU [15:25:33]CAPDU: 80 13 00 00 [15:25:33]Write to MH i2c: E2 08 00 83 06 80 13 00 00 00 00 00 00 05 [15:25:33]Write i2c OK [15:25:33]MH_I2C_Read... [15:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:33]Read from MH i2c: E2 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 62 00 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 62 00 83 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 57 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [15:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 57 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:33]wFMCommunicate OK [15:25:33]SAM_PROTO_GetFieldsCounters done [15:25:33]requested_item shift.num is exist - process it [15:25:33]requested_item shift.opened is exist - process it [15:25:33]req_shift_opened [15:25:33]FM_GetShiftState [15:25:33]SAM_PROTO_GetShiftState [15:25:33]wFMCommunicate request_size=4 [15:25:33]MH_SAM_APDU [15:25:33]CAPDU: 80 13 01 00 [15:25:33]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [15:25:33]Write i2c OK [15:25:33]MH_I2C_Read... [15:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:33]Read from MH i2c: E2 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 0E 00 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E3 [15:25:33]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [15:25:33]wFMCommunicate OK [15:25:33]SAM_PROTO_GetShiftState done [15:25:33]FM_GetShiftState done [15:25:33]req_shift_opened done [15:25:33]requested_item shift.open_date is exist - process it [15:25:33]req_shift_open_date [15:25:33]req_shift_open_date done [15:25:33]produce_requested_data done [15:25:33]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76631,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [15:25:33]process_action_free close_receipt [15:25:33]json_value_free [15:25:33]json_value_free done [15:25:33]process_json_proto returns [15:25:33]Send response to host [15:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76631,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [15:25:33]free response buf [15:25:33]execute_script done [15:25:33]execute_script returns [15:25:33]free content buf [15:25:33]Sock 9.Close socket [15:25:33]Sock 9.Thread stoped [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [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:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]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:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:09]accept exits with 7 [16:19:09]New connection [16:19:09]New thread 3066805604 created [16:19:09]Thread 3066948964 joined [16:19:09]Waiting for new connection... [16:19:09] Sock 7.Parse request [16:19:09]Sock 7.Check first char [16:19:09]Sock 7.First char is OK [16:19:09]request: POST /json_proto HTTP/1.0 [16:19:09]Method: POST [16:19:09]URL: /json_proto [16:19:09]Method is POST - this is cgi request [16:19:09]url: /json_proto [16:19:09]query_string will be loaded in cgi processing [16:19:09]execute_cgi json_proto POST (null) [16:19:09]execute_cgi path=json_proto method=POST [16:19:09]POST find Content-Length [16:19:09]Host: 172.17.39.195:8080 [16:19:09]Content-Length: 616 [16:19:09]Content-Type: application/json [16:19:09] [16:19:09]POST finish read [16:19:09]Found Content-Length = 616 [16:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220767", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:09]execute_script... [16:19: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 : (3)220767", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:09]POST & json_proto [16:19:09]process_json_proto [16:19:09]json parsed OK: [16:19:09]protocol is kg_v1.0 [16:19:09]action value=close_receipt [16:19:09]process_action close_receipt [16:19:09]cmd_close_receipt [16:19:09]MH_GetDate [16:19:09]Write to MH i2c: F0 00 00 85 06 7A [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: F0 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: F0 09 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: F0 09 00 85 06 00 7E 56 74 66 99 81 91 64 40 [16:19:09]GetLastDocTimeStamp 1718897131 [16:19:09]current date 1718900350 [16:19:09]FM_GetShiftState [16:19:09]SAM_PROTO_GetShiftState [16:19:09]wFMCommunicate request_size=4 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 13 01 00 [16:19:09]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:09]Read from MH i2c: E2 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 0E 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E5 [16:19:09]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:19:09]wFMCommunicate OK [16:19:09]SAM_PROTO_GetShiftState done [16:19:09]FM_GetShiftState done [16:19:09]opened in 1718843774 [16:19:09]opened+sec_in_day 1718930174 [16:19:09]quantity*price = 17500 [16:19:09]sum+1 = 17501 [16:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 73 20.06.2024 16:19 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76632 ФПД: 252728140257176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161910&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76632&fm=252728140257176&tin=02508201610067®Number=0000000000095696&sum=17500 0 [16:19:10]StoreToDocumentArchive [16:19:10]shift 393 fd 76632 [16:19:10]save to /storage/0393/doc_00076632 [16:19:10]save last doc name /storage/0393/doc_00076632 to /storage/kkm_last_doc_name [16:19:10]save OK [16:19:10]Clear old archive folders... [16:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=268 [16:19:10]tlvbuf is 00E88FA0 [16:19:10]SAM_PROTO_ClearQueue [16:19:10]wFMCommunicate request_size=4 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 09 00 00 [16:19:10]Write to MH i2c: E2 08 00 93 06 80 09 00 00 00 00 00 00 0B [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 03 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [16:19:10]RAPDU: 90 00 [16:19:10]wFMCommunicate OK [16:19:10]SAM_PROTO_ClearQueue done [16:19:10]KKMCreateOFDPacket [16:19:10]OFDProtocolAddRootSTLVToBuf [16:19:10]FM_MakeSignedData [16:19:10]FM_MakeSignedData [16:19:10]SAM_PROTO_SignData [16:19:10]wFMCommunicate request_size=4 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 0D 01 02 [16:19:10]Write to MH i2c: E2 08 00 94 06 80 0D 01 02 00 00 00 00 13 [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 03 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [16:19:10]RAPDU: 90 00 [16:19:10]wFMCommunicate OK [16:19:10]wFMCommunicate request_size=255 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 7E 56 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [16:19:10]Write to MH i2c: E2 02 01 95 06 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 7E 56 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 08 [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 03 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [16:19:10]RAPDU: 90 00 [16:19:10]wFMCommunicate OK [16:19:10]wFMCommunicate request_size=27 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 58 2B 01 00 35 04 06 00 E5 DA DB 06 57 98 [16:19:10]Write to MH i2c: E2 1E 00 96 06 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 58 2B 01 00 35 04 06 00 E5 DA DB 06 57 98 00 00 7A [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:10]Read from MH i2c: E2 03 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [16:19:10]RAPDU: 90 00 [16:19:10]wFMCommunicate OK [16:19:10]wFMCommunicate request_size=4 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 0D 03 02 [16:19:10]Write to MH i2c: E2 08 00 97 06 80 0D 03 02 00 00 00 00 18 [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 0B 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 0B 00 97 06 00 DB D5 73 3D 3E 63 66 6F 90 00 EF [16:19:10]RAPDU: DB D5 73 3D 3E 63 66 6F 90 00 [16:19:10]wFMCommunicate OK [16:19:10]SAM_PROTO_SignData done [16:19:10]FM_MakeSignedData done [16:19:10]CreateOFDProtocolMessage [16:19:10]wFMCommunicate request_size=4 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 11 00 00 [16:19:10]Write to MH i2c: E2 08 00 98 06 80 11 00 00 00 00 00 00 18 [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 17 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 17 00 98 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 68 [16:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:19:10]wFMCommunicate OK [16:19:10]CreateOFDProtocolMessage done [16:19:10]OFDSenderStorePacket 76632 [16:19:10]StoreOFDPacket docnum=76632 [16:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 05 0E 18 01 0B 21 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 7E 56 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2B 01 00 35 04 06 00 E5 DA DB 06 57 98 DB D5 73 3D 3E 63 66 6F [16:19:10]CheckFolder [16:19:10]dirname=/storage/ofd_packets [16:19:10]CheckFolder done [16:19:10]ProducePacketName [16:19:10]name=ofd_packets/00076632 [16:19:10]NVStorageSaveData ofd_packets/00076632 [16:19:10]File name is /storage/ofd_packets/00076632 [16:19:10]Write 318 bytes [16:19:10]NVStorageSaveData done [16:19:10]OFDSenderStorePacket done [16:19:10]KKMCreateOFDPacket done [16:19:10]NVStorageSaveData kkm_last_timestamp [16:19:10]File name is /storage/kkm_last_timestamp [16:19:10]Write 4 bytes [16:19:10]NVStorageSaveData done [16:19:10]ExternCall_PrintAddStr [16:19:10]wPrintStart [16:19:10]Write to MH i2c: 01 00 00 99 06 9F [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: 01 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: 01 07 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: 01 07 00 99 06 00 00 00 00 00 FF 0F B4 [16:19:10]RasterBufferAndPrint [16:19:10]line Счет N : (3)220767 [16:19:10]line ИНН: 02508201610067 [16:19:10]line Контрольно-Кассовый Чек [16:19:10]line ПРОДАЖА [16:19:10]line Товар: 4870002329487 [16:19:10]line Напиток Pepsi 1,5л [16:19:10]line 1.000 * 175.00 [16:19:10]line = 175.00 [16:19:10]line НДС 12% НСП 1% [16:19:10]line > о реализуемом товаре [16:19:10]line ИТОГО: 175.00 [16:19:10]line НСП 1% : 1.55 [16:19:10]line НДС 12% : 18.58 [16:19:10]line Наличными: 175.00 [16:19:10]line Безнал.: 0.00 [16:19:10]line Место: АЗС № 144 "Партнер Нефть" [16:19:10]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:19:10]line СНО: Общий режим [16:19:10]line Чек 73 20.06.2024 16:19 [16:19:10]line Смена: 393 ФФД: 1.0 [16:19:10]line ЗНМ: 0300000170 [16:19:10]line РНМ: 0000000000095696 [16:19:10]line Версия ККМ: 001 [16:19:10]line ФМ: 0000000000875009 [16:19:10]line ФД: 76632 [16:19:10]line ФПД: 252728140257176 [16:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161910&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76632&fm=252728140257176&tin=02508201610067®Number=0000000000095696&sum=17500 [16:19:10]line 0 [16:19:10]OFD Sender: Processing packet 76632 [packets to send 351, broken 350] [16:19:10]ProducePacketName [16:19:10]name=ofd_packets/00076632 [16:19:10]OFD Sender: To server: pG, [16:19:10]CommunicateWithHost lk.salyk.kg:30040 [16:19:10]ConnectInit lk.salyk.kg [16:19:10]written 0, free lines is 4095 [16:19:10]Connected sock=10 [16:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 05 0E 18 01 0B 21 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 7E 56 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2B 01 00 35 04 06 00 E5 DA DB 06 57 98 DB D5 73 3D 3E 63 66 6F [16:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 7A 2A 47 00 6A FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2B 01 00 F4 03 04 00 1F FD 73 66 B6 04 01 00 00 14 63 F4 EA C2 E1 52 EB [16:19:11]CommunicateWithHost err = 0 [16:19:11]CheckOFDResponse [16:19:11]1017 (14) - 77093643461234 [16:19:11]1041 (16) - 0000000000875009 [16:19:11]1040 (4) - 76632 [16:19:11]1012 (4) - 20.06.2024 09:57 [16:19:11]1206 (1) - 0 [16:19:11]OFD Sender: Remove packet 76632 [16:19:11]ProducePacketName [16:19:11]name=ofd_packets/00076632 [16:19:11]NVStorageDeleteData [16:19:11]Write to MH i2c: 01 00 00 C1 06 C7 [16:19:11]Write i2c OK [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: 01 [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: 01 07 00 [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FA 0C D4 [16:19:11]RasterBufferAndPrint [16:19:11]line [16:19:11]line [16:19:11]line [16:19:11]line [16:19:11]line [16:19:11]written 0, free lines is 3328 [16:19:11]MH_Cut [16:19:11]Write to MH i2c: D1 01 00 C8 06 01 A0 [16:19:11]Write i2c OK [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: D1 [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: D1 01 00 [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: D1 01 00 C8 06 00 9F [16:19:11]Write to MH i2c: 01 00 00 C9 06 CF [16:19:11]Write i2c OK [16:19:11]MH_I2C_Read... [16:19:11]OFD Sender: No OFD packet to send [16:19:11]*** Cut start [16:19:11]*** Partial cut [16:19:11]*** CUTSNS_PIN = 1 [16:19:11]*** CUTSNS_PIN = 0 [16:19:12]*** Brake cut motor [16:19:12]Read from MH i2c: 01 [16:19:12]MH_I2C_Read... [16:19:12]*** Stop cut motor [16:19:12]*** Cut end [16:19:12]Read from MH i2c: 01 07 00 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 FF 0F E4 [16:19:12]process_action close_receipt done [16:19:12]requested_data is exist [16:19:12]produce_requested_data [16:19:12]requested_item fm.sn is exist - process it [16:19:12]wFMCommunicate request_size=4 [16:19:12]MH_SAM_APDU [16:19:12]CAPDU: 80 11 00 00 [16:19:12]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [16:19:12]Write i2c OK [16:19:12]MH_I2C_Read... [16:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:12]Read from MH i2c: E2 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 17 00 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9A [16:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:19:12]wFMCommunicate OK [16:19:12]requested_item fd.num is exist - process it [16:19:12]SAM_PROTO_GetFieldsCounters [16:19:12]wFMCommunicate request_size=4 [16:19:12]MH_SAM_APDU [16:19:12]CAPDU: 80 13 00 00 [16:19:12]Write to MH i2c: E2 08 00 CB 06 80 13 00 00 00 00 00 00 4D [16:19:12]Write i2c OK [16:19:12]MH_I2C_Read... [16:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:12]Read from MH i2c: E2 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 62 00 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 62 00 CB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:12]wFMCommunicate OK [16:19:12]SAM_PROTO_GetFieldsCounters done [16:19:12]requested_item shift.num is exist - process it [16:19:12]requested_item shift.opened is exist - process it [16:19:12]req_shift_opened [16:19:12]FM_GetShiftState [16:19:12]SAM_PROTO_GetShiftState [16:19:12]wFMCommunicate request_size=4 [16:19:12]MH_SAM_APDU [16:19:12]CAPDU: 80 13 01 00 [16:19:12]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [16:19:12]Write i2c OK [16:19:12]MH_I2C_Read... [16:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:12]Read from MH i2c: E2 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 0E 00 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 2B [16:19:12]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:19:12]wFMCommunicate OK [16:19:12]SAM_PROTO_GetShiftState done [16:19:12]FM_GetShiftState done [16:19:12]req_shift_opened done [16:19:12]requested_item shift.open_date is exist - process it [16:19:12]req_shift_open_date [16:19:12]req_shift_open_date done [16:19:12]produce_requested_data done [16:19:12]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76632,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [16:19:12]process_action_free close_receipt [16:19:12]json_value_free [16:19:12]json_value_free done [16:19:12]process_json_proto returns [16:19:12]Send response to host [16:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76632,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [16:19:12]free response buf [16:19:12]execute_script done [16:19:12]execute_script returns [16:19:12]free content buf [16:19:12]Sock 7.Close socket [16:19:12]Sock 7.Thread stoped [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:55]accept exits with 9 [16:25:55]New connection [16:25:55]New thread 3066948964 created [16:25:55]Thread 3066805604 joined [16:25:55]Waiting for new connection... [16:25:55] Sock 9.Parse request [16:25:55]Sock 9.Check first char [16:25:55]Sock 9.First char is OK [16:25:55]request: POST /json_proto HTTP/1.0 [16:25:55]Method: POST [16:25:55]URL: /json_proto [16:25:55]Method is POST - this is cgi request [16:25:55]url: /json_proto [16:25:55]query_string will be loaded in cgi processing [16:25:55]execute_cgi json_proto POST (null) [16:25:55]execute_cgi path=json_proto method=POST [16:25:55]POST find Content-Length [16:25:55]Host: 172.17.39.195:8080 [16:25:55]Content-Length: 678 [16:25:55]Content-Type: application/json [16:25:55] [16:25:55]POST finish read [16:25:55]Found Content-Length = 678 [16:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693241", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:55]execute_script... [16:25: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)1693241", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:55]POST & json_proto [16:25:55]process_json_proto [16:25:55]json parsed OK: [16:25:55]protocol is kg_v1.0 [16:25:55]action value=close_receipt [16:25:55]process_action close_receipt [16:25:55]cmd_close_receipt [16:25:55]MH_GetDate [16:25:55]Write to MH i2c: F0 00 00 CD 06 C2 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: F0 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: F0 09 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: F0 09 00 CD 06 00 15 58 74 66 99 81 91 64 21 [16:25:55]GetLastDocTimeStamp 1718900350 [16:25:55]current date 1718900757 [16:25:55]FM_GetShiftState [16:25:55]SAM_PROTO_GetShiftState [16:25:55]wFMCommunicate request_size=4 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 13 01 00 [16:25:55]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 0E 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 2D [16:25:55]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:25:55]wFMCommunicate OK [16:25:55]SAM_PROTO_GetShiftState done [16:25:55]FM_GetShiftState done [16:25:55]opened in 1718843774 [16:25:55]opened+sec_in_day 1718930174 [16:25:55]quantity*price = 50065 [16:25:55]sum+1 = 50067 [16:25:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 74 20.06.2024 16:25 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76633 ФПД: 94171090235007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162557&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76633&fm=94171090235007&tin=02508201610067®Number=0000000000095696&sum=50000 [16:25:57]StoreToDocumentArchive [16:25:57]shift 393 fd 76633 [16:25:57]save to /storage/0393/doc_00076633 [16:25:57]save last doc name /storage/0393/doc_00076633 to /storage/kkm_last_doc_name [16:25:57]save OK [16:25:57]Clear old archive folders... [16:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:57]tlvbuf is 00E7A910 [16:25:57]SAM_PROTO_ClearQueue [16:25:57]wFMCommunicate request_size=4 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 09 00 00 [16:25:57]Write to MH i2c: E2 08 00 DB 06 80 09 00 00 00 00 00 00 53 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [16:25:57]RAPDU: 90 00 [16:25:57]wFMCommunicate OK [16:25:57]SAM_PROTO_ClearQueue done [16:25:57]KKMCreateOFDPacket [16:25:57]OFDProtocolAddRootSTLVToBuf [16:25:57]FM_MakeSignedData [16:25:57]FM_MakeSignedData [16:25:57]SAM_PROTO_SignData [16:25:57]wFMCommunicate request_size=4 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 0D 01 02 [16:25:57]Write to MH i2c: E2 08 00 DC 06 80 0D 01 02 00 00 00 00 5B [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [16:25:57]RAPDU: 90 00 [16:25:57]wFMCommunicate OK [16:25:57]wFMCommunicate request_size=255 [16:25:57]MH_SAM_APDU [16:25: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2B 01 00 35 04 06 00 55 [16:25:57]Write to MH i2c: E2 02 01 DD 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2B 01 00 35 04 06 00 55 00 00 0B [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [16:25:57]RAPDU: 90 00 [16:25:57]wFMCommunicate OK [16:25:57]wFMCommunicate request_size=10 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 0D 02 02 05 A5 EA 61 AE 7F [16:25:57]Write to MH i2c: E2 0D 00 DE 06 80 0D 02 02 05 00 A5 EA 61 AE 7F 00 00 85 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]OFD Sender: No OFD packet to send [16:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [16:25:57]RAPDU: 90 00 [16:25:57]wFMCommunicate OK [16:25:57]wFMCommunicate request_size=4 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 0D 03 02 [16:25:57]Write to MH i2c: E2 08 00 DF 06 80 0D 03 02 00 00 00 00 60 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 0B 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 0B 00 DF 06 00 69 41 0C 1C 06 E5 F2 47 90 00 57 [16:25:57]RAPDU: 69 41 0C 1C 06 E5 F2 47 90 00 [16:25:57]wFMCommunicate OK [16:25:57]SAM_PROTO_SignData done [16:25:57]FM_MakeSignedData done [16:25:57]CreateOFDProtocolMessage [16:25:57]wFMCommunicate request_size=4 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 11 00 00 [16:25:57]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 17 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B0 [16:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:25:57]wFMCommunicate OK [16:25:57]CreateOFDProtocolMessage done [16:25:57]OFDSenderStorePacket 76633 [16:25:57]StoreOFDPacket docnum=76633 [16:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 E1 95 07 01 07 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2B 01 00 35 04 06 00 55 A5 EA 61 AE 7F 69 41 0C 1C 06 E5 F2 47 [16:25:57]CheckFolder [16:25:57]dirname=/storage/ofd_packets [16:25:57]CheckFolder done [16:25:57]ProducePacketName [16:25:57]name=ofd_packets/00076633 [16:25:57]NVStorageSaveData ofd_packets/00076633 [16:25:57]File name is /storage/ofd_packets/00076633 [16:25:57]Write 301 bytes [16:25:57]NVStorageSaveData done [16:25:57]OFDSenderStorePacket done [16:25:57]KKMCreateOFDPacket done [16:25:57]NVStorageSaveData kkm_last_timestamp [16:25:57]File name is /storage/kkm_last_timestamp [16:25:57]Write 4 bytes [16:25:57]NVStorageSaveData done [16:25:57]ExternCall_PrintAddStr [16:25:57]wPrintStart [16:25:57]Write to MH i2c: 01 00 00 E1 06 E7 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: 01 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: 01 07 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 FF 0F FC [16:25:57]RasterBufferAndPrint [16:25:57]line Счет N : (1)1693241 [16:25:57]line ИНН: 02508201610067 [16:25:57]line Контрольно-Кассовый Чек [16:25:57]line ПРОДАЖА [16:25:57]line ТРК (МРК, ГНК) : 33 [16:25:57]line Товар: 2710124130 [16:25:57]line Аи-92-К-5 [16:25:57]line 7.540 * 66.40 [16:25:57]line = 500.66 [16:25:57]line НДС 12% НСП 1% [16:25:57]line > о реализуемом товаре [16:25:57]line ОКРУГЛЕНИЕ: -0.66 [16:25:57]line ИТОГО: 500.00 [16:25:57]line Внесено: 500.00 [16:25:57]line СДАЧА: 0.00 [16:25:57]line НСП 1% : 4.43 [16:25:57]line НДС 12% : 53.17 [16:25:57]line Наличными: 500.00 [16:25:57]line Безнал.: 0.00 [16:25:57]line Место: АЗС № 144 "Партнер Нефть" [16:25:57]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:25:57]line СНО: Общий режим [16:25:57]line Чек 74 20.06.2024 16:25 [16:25:57]line Смена: 393 ФФД: 1.0 [16:25:57]line ЗНМ: 0300000170 [16:25:57]line РНМ: 0000000000095696 [16:25:57]line Версия ККМ: 001 [16:25:57]line ФМ: 0000000000875009 [16:25:57]line ФД: 76633 [16:25:57]line ФПД: 94171090235007 [16:25:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162557&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76633&fm=94171090235007&tin=02508201610067®Number=0000000000095696&sum=50000 [16:25:57]OFD Sender: Processing packet 76633 [packets to send 351, broken 350] [16:25:57]ProducePacketName [16:25:57]name=ofd_packets/00076633 [16:25:57]OFD Sender: To server: pG, [16:25:57]CommunicateWithHost lk.salyk.kg:30040 [16:25:57]ConnectInit lk.salyk.kg [16:25:57]written 0, free lines is 4095 [16:25:58]Connected sock=11 [16:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 E1 95 07 01 07 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 15 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2B 01 00 35 04 06 00 55 A5 EA 61 AE 7F 69 41 0C 1C 06 E5 F2 47 [16:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 AB 26 47 00 FB 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2B 01 00 F4 03 04 00 B6 FE 73 66 B6 04 01 00 00 DF 6E 33 C7 5F FC AD 0A [16:25:58]CommunicateWithHost err = 0 [16:25:58]CheckOFDResponse [16:25:58]1017 (14) - 77093643461234 [16:25:58]1041 (16) - 0000000000875009 [16:25:58]1040 (4) - 76633 [16:25:58]1012 (4) - 20.06.2024 10:04 [16:25:58]1206 (1) - 0 [16:25:58]OFD Sender: Remove packet 76633 [16:25:58]ProducePacketName [16:25:58]name=ofd_packets/00076633 [16:25:58]NVStorageDeleteData [16:25:58]Write to MH i2c: 01 00 00 0C 07 13 [16:25:58]Write i2c OK [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: 01 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: 01 07 00 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 E8 0C 0E [16:25:58]RasterBufferAndPrint [16:25:58]line [16:25:58]line [16:25:58]line [16:25:58]line [16:25:58]line [16:25:58]written 0, free lines is 3310 [16:25:58]MH_Cut [16:25:58]Write to MH i2c: D1 01 00 13 07 01 EC [16:25:58]Write i2c OK [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: D1 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: D1 01 00 [16:25:58]MH_I2C_Read... [16:25:58]Read from MH i2c: D1 01 00 13 07 00 EB [16:25:58]Write to MH i2c: 01 00 00 14 07 1B [16:25:58]Write i2c OK [16:25:58]MH_I2C_Read... [16:25:58]OFD Sender: No OFD packet to send [16:25:59]*** Cut start [16:25:59]*** Partial cut [16:25:59]*** CUTSNS_PIN = 1 [16:25:59]*** CUTSNS_PIN = 0 [16:25:59]*** Brake cut motor [16:25:59]Read from MH i2c: 01 [16:25:59]MH_I2C_Read... [16:25:59]*** Stop cut motor [16:25:59]*** Cut end [16:25:59]Read from MH i2c: 01 07 00 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 FF 0F 30 [16:25:59]process_action close_receipt done [16:25:59]requested_data is exist [16:25:59]produce_requested_data [16:25:59]requested_item fm.sn is exist - process it [16:25:59]wFMCommunicate request_size=4 [16:25:59]MH_SAM_APDU [16:25:59]CAPDU: 80 11 00 00 [16:25:59]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [16:25:59]Write i2c OK [16:25:59]MH_I2C_Read... [16:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:59]Read from MH i2c: E2 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 17 00 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 17 00 15 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E6 [16:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:25:59]wFMCommunicate OK [16:25:59]requested_item fd.num is exist - process it [16:25:59]SAM_PROTO_GetFieldsCounters [16:25:59]wFMCommunicate request_size=4 [16:25:59]MH_SAM_APDU [16:25:59]CAPDU: 80 13 00 00 [16:25:59]Write to MH i2c: E2 08 00 16 07 80 13 00 00 00 00 00 00 99 [16:25:59]Write i2c OK [16:25:59]MH_I2C_Read... [16:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:59]Read from MH i2c: E2 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 62 00 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 62 00 16 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 59 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:25:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 59 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:59]wFMCommunicate OK [16:25:59]SAM_PROTO_GetFieldsCounters done [16:25:59]requested_item shift.num is exist - process it [16:25:59]requested_item shift.opened is exist - process it [16:25:59]req_shift_opened [16:25:59]FM_GetShiftState [16:25:59]SAM_PROTO_GetShiftState [16:25:59]wFMCommunicate request_size=4 [16:25:59]MH_SAM_APDU [16:25:59]CAPDU: 80 13 01 00 [16:25:59]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [16:25:59]Write i2c OK [16:25:59]MH_I2C_Read... [16:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:59]Read from MH i2c: E2 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 0E 00 [16:25:59]MH_I2C_Read... [16:25:59]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 77 [16:25:59]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:25:59]wFMCommunicate OK [16:25:59]SAM_PROTO_GetShiftState done [16:25:59]FM_GetShiftState done [16:25:59]req_shift_opened done [16:25:59]requested_item shift.open_date is exist - process it [16:25:59]req_shift_open_date [16:25:59]req_shift_open_date done [16:25:59]produce_requested_data done [16:25:59]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76633,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [16:25:59]process_action_free close_receipt [16:25:59]json_value_free [16:26:00]json_value_free done [16:26:00]process_json_proto returns [16:26:00]Send response to host [16:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76633,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [16:26:00]free response buf [16:26:00]execute_script done [16:26:00]execute_script returns [16:26:00]free content buf [16:26:00]Sock 9.Close socket [16:26:00]Sock 9.Thread stoped [16:26:00]accept exits with 7 [16:26:00]New connection [16:26:00]New thread 3066805604 created [16:26:00]Thread 3066948964 joined [16:26:00]Waiting for new connection... [16:26:00] Sock 7.Parse request [16:26:00]Sock 7.Check first char [16:26:00]Sock 7.First char is OK [16:26:00]request: POST /json_proto HTTP/1.0 [16:26:00]Method: POST [16:26:00]URL: /json_proto [16:26:00]Method is POST - this is cgi request [16:26:00]url: /json_proto [16:26:00]query_string will be loaded in cgi processing [16:26:00]execute_cgi json_proto POST (null) [16:26:00]execute_cgi path=json_proto method=POST [16:26:00]POST find Content-Length [16:26:00]Host: 172.17.39.195:8080 [16:26:00]Content-Length: 804 [16:26:00]Content-Type: application/json [16:26:00] [16:26:00]POST finish read [16:26:00]Found Content-Length = 804 [16:26:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693243", "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.40, "quantity" : 15.070, "sum" : 1000.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:00]execute_script... [16:26:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693243", "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.40, "quantity" : 15.070, "sum" : 1000.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:00]POST & json_proto [16:26:00]process_json_proto [16:26:00]json parsed OK: [16:26:00]protocol is kg_v1.0 [16:26:00]action value=close_receipt [16:26:00]process_action close_receipt [16:26:00]cmd_close_receipt [16:26:00]MH_GetDate [16:26:00]Write to MH i2c: F0 00 00 18 07 0E [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: F0 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: F0 09 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: F0 09 00 18 07 00 1A 58 74 66 99 81 91 64 72 [16:26:00]GetLastDocTimeStamp 1718900757 [16:26:00]current date 1718900762 [16:26:00]FM_GetShiftState [16:26:00]SAM_PROTO_GetShiftState [16:26:00]wFMCommunicate request_size=4 [16:26:00]MH_SAM_APDU [16:26:00]CAPDU: 80 13 01 00 [16:26:00]Write to MH i2c: E2 08 00 19 07 80 13 01 00 00 00 00 00 9D [16:26:00]Write i2c OK [16:26:00]MH_I2C_Read... [16:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:00]Read from MH i2c: E2 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 0E 00 [16:26:00]MH_I2C_Read... [16:26:00]Read from MH i2c: E2 0E 00 19 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 79 [16:26:00]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:26:00]wFMCommunicate OK [16:26:00]SAM_PROTO_GetShiftState done [16:26:00]FM_GetShiftState done [16:26:00]opened in 1718843774 [16:26:00]opened+sec_in_day 1718930174 [16:26:00]quantity*price = 100064 [16:26:00]sum+1 = 100066 [16:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 75 20.06.2024 16:26 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76634 ФПД: 70495403661773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162602&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76634&fm=70495403661773&tin=02508201610067®Number=0000000000095696&sum=100065 [16:26:01]StoreToDocumentArchive [16:26:01]shift 393 fd 76634 [16:26:01]save to /storage/0393/doc_00076634 [16:26:01]save last doc name /storage/0393/doc_00076634 to /storage/kkm_last_doc_name [16:26:01]save OK [16:26:01]Clear old archive folders... [16:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:01]tlvbuf is 00ED7160 [16:26:01]SAM_PROTO_ClearQueue [16:26:01]wFMCommunicate request_size=4 [16:26:01]MH_SAM_APDU [16:26:01]CAPDU: 80 09 00 00 [16:26:01]Write to MH i2c: E2 08 00 26 07 80 09 00 00 00 00 00 00 9F [16:26:01]Write i2c OK [16:26:01]MH_I2C_Read... [16:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:01]Read from MH i2c: E2 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: E2 03 00 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [16:26:01]RAPDU: 90 00 [16:26:01]wFMCommunicate OK [16:26:01]SAM_PROTO_ClearQueue done [16:26:01]KKMCreateOFDPacket [16:26:01]OFDProtocolAddRootSTLVToBuf [16:26:01]FM_MakeSignedData [16:26:01]FM_MakeSignedData [16:26:01]SAM_PROTO_SignData [16:26:01]wFMCommunicate request_size=4 [16:26:01]MH_SAM_APDU [16:26:01]CAPDU: 80 0D 01 02 [16:26:01]Write to MH i2c: E2 08 00 27 07 80 0D 01 02 00 00 00 00 A7 [16:26:01]Write i2c OK [16:26:01]MH_I2C_Read... [16:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:01]Read from MH i2c: E2 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: E2 03 00 [16:26:01]MH_I2C_Read... [16:26:01]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [16:26:01]RAPDU: 90 00 [16:26:01]wFMCommunicate OK [16:26:01]wFMCommunicate request_size=255 [16:26:01]MH_SAM_APDU [16:26: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2B 01 00 35 04 06 00 40 [16:26:01]Write to MH i2c: E2 02 01 28 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2B 01 00 35 04 06 00 40 00 00 1B [16:26:01]Write i2c OK [16:26:01]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [16:26:02]RAPDU: 90 00 [16:26:02]wFMCommunicate OK [16:26:02]wFMCommunicate request_size=10 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 0D 02 02 05 1D 7D 7E 59 CD [16:26:02]Write to MH i2c: E2 0D 00 29 07 80 0D 02 02 05 00 1D 7D 7E 59 CD 00 00 F2 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [16:26:02]RAPDU: 90 00 [16:26:02]wFMCommunicate OK [16:26:02]wFMCommunicate request_size=4 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 0D 03 02 [16:26:02]Write to MH i2c: E2 08 00 2A 07 80 0D 03 02 00 00 00 00 AC [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 0B 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 0B 00 2A 07 00 8C 93 EF DF 7C 97 6A CA 90 00 E1 [16:26:02]RAPDU: 8C 93 EF DF 7C 97 6A CA 90 00 [16:26:02]wFMCommunicate OK [16:26:02]SAM_PROTO_SignData done [16:26:02]FM_MakeSignedData done [16:26:02]CreateOFDProtocolMessage [16:26:02]wFMCommunicate request_size=4 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 11 00 00 [16:26:02]Write to MH i2c: E2 08 00 2B 07 80 11 00 00 00 00 00 00 AC [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 17 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 17 00 2B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FC [16:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:26:02]wFMCommunicate OK [16:26:02]CreateOFDProtocolMessage done [16:26:02]OFDSenderStorePacket 76634 [16:26:02]StoreOFDPacket docnum=76634 [16:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 FE A8 07 01 11 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2B 01 00 35 04 06 00 40 1D 7D 7E 59 CD 8C 93 EF DF 7C 97 6A CA [16:26:02]CheckFolder [16:26:02]dirname=/storage/ofd_packets [16:26:02]CheckFolder done [16:26:02]ProducePacketName [16:26:02]name=ofd_packets/00076634 [16:26:02]NVStorageSaveData ofd_packets/00076634 [16:26:02]File name is /storage/ofd_packets/00076634 [16:26:02]Write 301 bytes [16:26:02]NVStorageSaveData done [16:26:02]OFDSenderStorePacket done [16:26:02]KKMCreateOFDPacket done [16:26:02]NVStorageSaveData kkm_last_timestamp [16:26:02]File name is /storage/kkm_last_timestamp [16:26:02]Write 4 bytes [16:26:02]NVStorageSaveData done [16:26:02]ExternCall_PrintAddStr [16:26:02]wPrintStart [16:26:02]Write to MH i2c: 01 00 00 2C 07 33 [16:26:02]OFD Sender: Processing packet 76634 [packets to send 351, broken 350] [16:26:02]ProducePacketName [16:26:02]name=ofd_packets/00076634 [16:26:02]OFD Sender: To server: pG, [16:26:02]CommunicateWithHost lk.salyk.kg:30040 [16:26:02]ConnectInit lk.salyk.kg [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: 01 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: 01 07 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 FF 0F 48 [16:26:02]RasterBufferAndPrint [16:26:02]line Счет N : (1)1693243 [16:26:02]line ИНН: 02508201610067 [16:26:02]line Контрольно-Кассовый Чек [16:26:02]line ПРОДАЖА [16:26:02]line ТРК (МРК, ГНК) : 53 [16:26:02]line Товар: 2710124130 [16:26:02]line Аи-92-К-5 [16:26:02]line 15.070 * 66.40 [16:26:02]line = 1000.65 [16:26:02]line НДС 12% НСП 1% [16:26:02]line > о реализуемом товаре [16:26:02]line ИТОГО: 1000.65 [16:26:02]line НСП 1% : 8.85 [16:26:02]line НДС 12% : 106.26 [16:26:02]line Наличными: 0.00 [16:26:02]line Безнал.: 1000.65 [16:26:02]line Место: АЗС № 144 "Партнер Нефть" [16:26:02]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:26:02]line СНО: Общий режим [16:26:02]line Чек 75 20.06.2024 16:26 [16:26:02]line Смена: 393 ФФД: 1.0 [16:26:02]line ЗНМ: 0300000170 [16:26:02]line РНМ: 0000000000095696 [16:26:02]line Версия ККМ: 001 [16:26:02]line Платежная система: O! деньги [16:26:02]line ФМ: 0000000000875009 [16:26:02]line ФД: 76634 [16:26:02]line ФПД: 70495403661773 [16:26:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162602&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76634&fm=70495403661773&tin=02508201610067®Number=0000000000095696&sum=100065 [16:26:02]Connected sock=10 [16:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 FE A8 07 01 11 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 58 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2B 01 00 35 04 06 00 40 1D 7D 7E 59 CD 8C 93 EF DF 7C 97 6A CA [16:26:02]written 0, free lines is 4095 [16:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 37 9D 47 00 7B 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2B 01 00 F4 03 04 00 BA FE 73 66 B6 04 01 00 00 7E 1B 20 27 F9 DC 09 A3 [16:26:02]CommunicateWithHost err = 0 [16:26:02]CheckOFDResponse [16:26:02]1017 (14) - 77093643461234 [16:26:02]1041 (16) - 0000000000875009 [16:26:02]1040 (4) - 76634 [16:26:02]1012 (4) - 20.06.2024 10:04 [16:26:02]1206 (1) - 0 [16:26:02]OFD Sender: Remove packet 76634 [16:26:02]ProducePacketName [16:26:02]name=ofd_packets/00076634 [16:26:02]NVStorageDeleteData [16:26:03]Write to MH i2c: 01 00 00 56 07 5D [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: 01 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: 01 07 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 E8 0C 58 [16:26:03]RasterBufferAndPrint [16:26:03]line [16:26:03]line [16:26:03]line [16:26:03]line [16:26:03]line [16:26:03]written 0, free lines is 3315 [16:26:03]MH_Cut [16:26:03]Write to MH i2c: D1 01 00 5D 07 01 36 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: D1 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: D1 01 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: D1 01 00 5D 07 00 35 [16:26:03]Write to MH i2c: 01 00 00 5E 07 65 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]OFD Sender: No OFD packet to send [16:26:03]*** Cut start [16:26:03]*** Partial cut [16:26:03]*** CUTSNS_PIN = 1 [16:26:04]*** CUTSNS_PIN = 0 [16:26:04]*** Brake cut motor [16:26:04]Read from MH i2c: 01 [16:26:04]MH_I2C_Read... [16:26:04]*** Stop cut motor [16:26:04]*** Cut end [16:26:04]Read from MH i2c: 01 07 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 FF 0F 7A [16:26:04]process_action close_receipt done [16:26:04]requested_data is exist [16:26:04]produce_requested_data [16:26:04]requested_item fm.sn is exist - process it [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 11 00 00 [16:26:04]Write to MH i2c: E2 08 00 5F 07 80 11 00 00 00 00 00 00 E0 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 17 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 17 00 5F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 30 [16:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:26:04]wFMCommunicate OK [16:26:04]requested_item fd.num is exist - process it [16:26:04]SAM_PROTO_GetFieldsCounters [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 13 00 00 [16:26:04]Write to MH i2c: E2 08 00 60 07 80 13 00 00 00 00 00 00 E3 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 62 00 [16:26:04]MH_I2C_Read... [16:26:04]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 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [16:26:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:04]wFMCommunicate OK [16:26:04]SAM_PROTO_GetFieldsCounters done [16:26:04]requested_item shift.num is exist - process it [16:26:04]requested_item shift.opened is exist - process it [16:26:04]req_shift_opened [16:26:04]FM_GetShiftState [16:26:04]SAM_PROTO_GetShiftState [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 13 01 00 [16:26:04]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 0E 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C1 [16:26:04]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:26:04]wFMCommunicate OK [16:26:04]SAM_PROTO_GetShiftState done [16:26:04]FM_GetShiftState done [16:26:04]req_shift_opened done [16:26:04]requested_item shift.open_date is exist - process it [16:26:04]req_shift_open_date [16:26:04]req_shift_open_date done [16:26:04]produce_requested_data done [16:26:04]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76634,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [16:26:04]process_action_free close_receipt [16:26:04]json_value_free [16:26:04]json_value_free done [16:26:04]process_json_proto returns [16:26:04]Send response to host [16:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76634,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [16:26:04]free response buf [16:26:04]execute_script done [16:26:04]execute_script returns [16:26:04]free content buf [16:26:04]Sock 7.Close socket [16:26:04]Sock 7.Thread stoped [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:25]accept exits with 9 [16:35:25]New connection [16:35:25]New thread 3066948964 created [16:35:25]Thread 3066805604 joined [16:35:25]Waiting for new connection... [16:35:25] Sock 9.Parse request [16:35:25]Sock 9.Check first char [16:35:25]Sock 9.First char is OK [16:35:25]request: POST /json_proto HTTP/1.0 [16:35:25]Method: POST [16:35:25]URL: /json_proto [16:35:25]Method is POST - this is cgi request [16:35:25]url: /json_proto [16:35:25]query_string will be loaded in cgi processing [16:35:25]execute_cgi json_proto POST (null) [16:35:25]execute_cgi path=json_proto method=POST [16:35:25]POST find Content-Length [16:35:25]Host: 172.17.39.195:8080 [16:35:25]Content-Length: 678 [16:35:25]Content-Type: application/json [16:35:25] [16:35:25]POST finish read [16:35:25]Found Content-Length = 678 [16:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693248", "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.40, "quantity" : 2.960, "sum" : 196.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 196.00, "payments": [ { "type": 0, "sum" : 196.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:25]execute_script... [16:35: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)1693248", "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.40, "quantity" : 2.960, "sum" : 196.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 196.00, "payments": [ { "type": 0, "sum" : 196.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:25]POST & json_proto [16:35:25]process_json_proto [16:35:25]json parsed OK: [16:35:25]protocol is kg_v1.0 [16:35:25]action value=close_receipt [16:35:25]process_action close_receipt [16:35:25]cmd_close_receipt [16:35:25]MH_GetDate [16:35:25]Write to MH i2c: F0 00 00 62 07 58 [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: F0 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: F0 09 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: F0 09 00 62 07 00 4F 5A 74 66 99 81 91 64 F3 [16:35:25]GetLastDocTimeStamp 1718900762 [16:35:25]current date 1718901327 [16:35:25]FM_GetShiftState [16:35:25]SAM_PROTO_GetShiftState [16:35:25]wFMCommunicate request_size=4 [16:35:25]MH_SAM_APDU [16:35:25]CAPDU: 80 13 01 00 [16:35:25]Write to MH i2c: E2 08 00 63 07 80 13 01 00 00 00 00 00 E7 [16:35:25]Write i2c OK [16:35:25]MH_I2C_Read... [16:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:25]Read from MH i2c: E2 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 0E 00 [16:35:25]MH_I2C_Read... [16:35:25]Read from MH i2c: E2 0E 00 63 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C3 [16:35:25]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:35:25]wFMCommunicate OK [16:35:25]SAM_PROTO_GetShiftState done [16:35:25]FM_GetShiftState done [16:35:25]opened in 1718843774 [16:35:25]opened+sec_in_day 1718930174 [16:35:25]quantity*price = 19654 [16:35:25]sum+1 = 19655 [16:35:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 196.00 Внесено: 200.00 СДАЧА: 4.00 НСП 1% : 1.74 НДС 12% : 20.87 Наличными: 196.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 76 20.06.2024 16:35 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76635 ФПД: 77768923055800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163527&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76635&fm=77768923055800&tin=02508201610067®Number=0000000000095696&sum=19600 [16:35:26]StoreToDocumentArchive [16:35:26]shift 393 fd 76635 [16:35:26]save to /storage/0393/doc_00076635 [16:35:26]save last doc name /storage/0393/doc_00076635 to /storage/kkm_last_doc_name [16:35:26]save OK [16:35:26]Clear old archive folders... [16:35:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:26]tlvbuf is 00EC68D0 [16:35:26]SAM_PROTO_ClearQueue [16:35:26]wFMCommunicate request_size=4 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 09 00 00 [16:35:26]Write to MH i2c: E2 08 00 70 07 80 09 00 00 00 00 00 00 E9 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [16:35:26]RAPDU: 90 00 [16:35:26]wFMCommunicate OK [16:35:26]SAM_PROTO_ClearQueue done [16:35:26]KKMCreateOFDPacket [16:35:26]OFDProtocolAddRootSTLVToBuf [16:35:26]FM_MakeSignedData [16:35:26]FM_MakeSignedData [16:35:26]SAM_PROTO_SignData [16:35:26]wFMCommunicate request_size=4 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 0D 01 02 [16:35:26]Write to MH i2c: E2 08 00 71 07 80 0D 01 02 00 00 00 00 F1 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:26]Read from MH i2c: E2 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [16:35:26]RAPDU: 90 00 [16:35:26]wFMCommunicate OK [16:35:26]wFMCommunicate request_size=255 [16:35:26]MH_SAM_APDU [16:35:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C6 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 08 00 00 00 00 07 04 06 00 90 4C 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 4F 5A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2B 01 00 35 04 06 00 46 [16:35:26]Write to MH i2c: E2 02 01 72 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C6 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 08 00 00 00 00 07 04 06 00 90 4C 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 4F 5A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2B 01 00 35 04 06 00 46 00 00 73 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:27]Read from MH i2c: E2 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 03 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [16:35:27]RAPDU: 90 00 [16:35:27]wFMCommunicate OK [16:35:27]wFMCommunicate request_size=10 [16:35:27]MH_SAM_APDU [16:35:27]CAPDU: 80 0D 02 02 05 BA FD 08 86 B8 [16:35:27]Write to MH i2c: E2 0D 00 73 07 80 0D 02 02 05 00 BA FD 08 86 B8 00 00 FB [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:27]Read from MH i2c: E2 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 03 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [16:35:27]RAPDU: 90 00 [16:35:27]wFMCommunicate OK [16:35:27]wFMCommunicate request_size=4 [16:35:27]MH_SAM_APDU [16:35:27]CAPDU: 80 0D 03 02 [16:35:27]Write to MH i2c: E2 08 00 74 07 80 0D 03 02 00 00 00 00 F6 [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:27]Read from MH i2c: E2 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 0B 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 0B 00 74 07 00 C0 04 C9 EB 45 24 09 70 90 00 51 [16:35:27]RAPDU: C0 04 C9 EB 45 24 09 70 90 00 [16:35:27]wFMCommunicate OK [16:35:27]SAM_PROTO_SignData done [16:35:27]FM_MakeSignedData done [16:35:27]CreateOFDProtocolMessage [16:35:27]wFMCommunicate request_size=4 [16:35:27]MH_SAM_APDU [16:35:27]CAPDU: 80 11 00 00 [16:35:27]Write to MH i2c: E2 08 00 75 07 80 11 00 00 00 00 00 00 F6 [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:27]Read from MH i2c: E2 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 17 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: E2 17 00 75 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 46 [16:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:35:27]wFMCommunicate OK [16:35:27]CreateOFDProtocolMessage done [16:35:27]OFDSenderStorePacket 76635 [16:35:27]StoreOFDPacket docnum=76635 [16:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 2F D6 07 01 10 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C6 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 08 00 00 00 00 07 04 06 00 90 4C 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 4F 5A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2B 01 00 35 04 06 00 46 BA FD 08 86 B8 C0 04 C9 EB 45 24 09 70 [16:35:27]CheckFolder [16:35:27]dirname=/storage/ofd_packets [16:35:27]CheckFolder done [16:35:27]ProducePacketName [16:35:27]name=ofd_packets/00076635 [16:35:27]NVStorageSaveData ofd_packets/00076635 [16:35:27]File name is /storage/ofd_packets/00076635 [16:35:27]Write 301 bytes [16:35:27]NVStorageSaveData done [16:35:27]OFDSenderStorePacket done [16:35:27]KKMCreateOFDPacket done [16:35:27]NVStorageSaveData kkm_last_timestamp [16:35:27]File name is /storage/kkm_last_timestamp [16:35:27]Write 4 bytes [16:35:27]NVStorageSaveData done [16:35:27]ExternCall_PrintAddStr [16:35:27]wPrintStart [16:35:27]Write to MH i2c: 01 00 00 76 07 7D [16:35:27]Write i2c OK [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: 01 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: 01 07 00 [16:35:27]MH_I2C_Read... [16:35:27]Read from MH i2c: 01 07 00 76 07 00 00 00 00 00 FF 0F 92 [16:35:27]RasterBufferAndPrint [16:35:27]line Счет N : (1)1693248 [16:35:27]line ИНН: 02508201610067 [16:35:27]line Контрольно-Кассовый Чек [16:35:27]line ПРОДАЖА [16:35:27]line ТРК (МРК, ГНК) : 33 [16:35:27]line Товар: 2710124130 [16:35:27]line Аи-92-К-5 [16:35:27]line 2.960 * 66.40 [16:35:27]line = 196.54 [16:35:27]line НДС 12% НСП 1% [16:35:27]line > о реализуемом товаре [16:35:27]line ОКРУГЛЕНИЕ: -0.54 [16:35:27]line ИТОГО: 196.00 [16:35:27]line Внесено: 200.00 [16:35:27]line СДАЧА: 4.00 [16:35:27]line НСП 1% : 1.74 [16:35:27]line НДС 12% : 20.87 [16:35:27]line Наличными: 196.00 [16:35:27]line Безнал.: 0.00 [16:35:27]line Место: АЗС № 144 "Партнер Нефть" [16:35:27]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:35:27]line СНО: Общий режим [16:35:27]line Чек 76 20.06.2024 16:35 [16:35:27]line Смена: 393 ФФД: 1.0 [16:35:27]line ЗНМ: 0300000170 [16:35:27]line РНМ: 0000000000095696 [16:35:27]line Версия ККМ: 001 [16:35:27]line ФМ: 0000000000875009 [16:35:27]line ФД: 76635 [16:35:27]line ФПД: 77768923055800 [16:35:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T163527&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76635&fm=77768923055800&tin=02508201610067®Number=0000000000095696&sum=19600 [16:35:27]written 0, free lines is 4095 [16:35:27]OFD Sender: Processing packet 76635 [packets to send 351, broken 350] [16:35:27]ProducePacketName [16:35:27]name=ofd_packets/00076635 [16:35:27]OFD Sender: To server: pG, [16:35:27]CommunicateWithHost lk.salyk.kg:30040 [16:35:27]ConnectInit lk.salyk.kg [16:35:27]Connected sock=11 [16:35:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 2F D6 07 01 10 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C6 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 08 00 00 00 00 07 04 06 00 90 4C 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 4F 5A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2B 01 00 35 04 06 00 46 BA FD 08 86 B8 C0 04 C9 EB 45 24 09 70 [16:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 10 2C 47 00 83 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2B 01 00 F4 03 04 00 F0 00 74 66 B6 04 01 00 00 66 E5 34 3B 26 E5 F7 06 [16:35:28]CommunicateWithHost err = 0 [16:35:28]CheckOFDResponse [16:35:28]1017 (14) - 77093643461234 [16:35:28]1041 (16) - 0000000000875009 [16:35:28]1040 (4) - 76635 [16:35:28]1012 (4) - 20.06.2024 10:14 [16:35:28]1206 (1) - 0 [16:35:28]OFD Sender: Remove packet 76635 [16:35:28]ProducePacketName [16:35:28]name=ofd_packets/00076635 [16:35:28]NVStorageDeleteData [16:35:28]Write to MH i2c: 01 00 00 A1 07 A8 [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: 01 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: 01 07 00 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 E0 0C 9B [16:35:28]RasterBufferAndPrint [16:35:28]line [16:35:28]line [16:35:28]line [16:35:28]line [16:35:28]line [16:35:28]written 0, free lines is 3302 [16:35:28]MH_Cut [16:35:28]Write to MH i2c: D1 01 00 A8 07 01 81 [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: D1 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: D1 01 00 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: D1 01 00 A8 07 00 80 [16:35:28]Write to MH i2c: 01 00 00 A9 07 B0 [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:28]OFD Sender: No OFD packet to send [16:35:28]*** Cut start [16:35:28]*** Partial cut [16:35:28]*** CUTSNS_PIN = 1 [16:35:29]*** CUTSNS_PIN = 0 [16:35:29]*** Brake cut motor [16:35:29]Read from MH i2c: 01 [16:35:29]MH_I2C_Read... [16:35:29]*** Stop cut motor [16:35:29]*** Cut end [16:35:29]Read from MH i2c: 01 07 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [16:35:29]process_action close_receipt done [16:35:29]requested_data is exist [16:35:29]produce_requested_data [16:35:29]requested_item fm.sn is exist - process it [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 11 00 00 [16:35:29]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 17 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7B [16:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:35:29]wFMCommunicate OK [16:35:29]requested_item fd.num is exist - process it [16:35:29]SAM_PROTO_GetFieldsCounters [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 13 00 00 [16:35:29]Write to MH i2c: E2 08 00 AB 07 80 13 00 00 00 00 00 00 2E [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 62 00 [16:35:29]MH_I2C_Read... [16:35:29]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 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [16:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:29]wFMCommunicate OK [16:35:29]SAM_PROTO_GetFieldsCounters done [16:35:29]requested_item shift.num is exist - process it [16:35:29]requested_item shift.opened is exist - process it [16:35:29]req_shift_opened [16:35:29]FM_GetShiftState [16:35:29]SAM_PROTO_GetShiftState [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 13 01 00 [16:35:29]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 0E 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 0E 00 AC 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 0C [16:35:29]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:35:29]wFMCommunicate OK [16:35:29]SAM_PROTO_GetShiftState done [16:35:29]FM_GetShiftState done [16:35:29]req_shift_opened done [16:35:29]requested_item shift.open_date is exist - process it [16:35:29]req_shift_open_date [16:35:29]req_shift_open_date done [16:35:29]produce_requested_data done [16:35:29]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76635,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [16:35:29]process_action_free close_receipt [16:35:29]json_value_free [16:35:29]json_value_free done [16:35:29]process_json_proto returns [16:35:29]Send response to host [16:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76635,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [16:35:29]free response buf [16:35:29]execute_script done [16:35:29]execute_script returns [16:35:29]free content buf [16:35:29]Sock 9.Close socket [16:35:29]Sock 9.Thread stoped [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]accept exits with 7 [16:45:29]New connection [16:45:29]New thread 3066805604 created [16:45:29]Thread 3066948964 joined [16:45:29]Waiting for new connection... [16:45:29] Sock 7.Parse request [16:45:29]Sock 7.Check first char [16:45:29]Sock 7.First char is OK [16:45:29]request: POST /json_proto HTTP/1.0 [16:45:29]Method: POST [16:45:29]URL: /json_proto [16:45:29]Method is POST - this is cgi request [16:45:29]url: /json_proto [16:45:29]query_string will be loaded in cgi processing [16:45:29]execute_cgi json_proto POST (null) [16:45:29]execute_cgi path=json_proto method=POST [16:45:29]POST find Content-Length [16:45:29]Host: 172.17.39.195:8080 [16:45:29]Content-Length: 801 [16:45:29]Content-Type: application/json [16:45:29] [16:45:29]POST finish read [16:45:29]Found Content-Length = 801 [16:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:29]execute_script... [16:45: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)1693253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:29]POST & json_proto [16:45:29]process_json_proto [16:45:29]json parsed OK: [16:45:29]protocol is kg_v1.0 [16:45:29]action value=close_receipt [16:45:29]process_action close_receipt [16:45:29]cmd_close_receipt [16:45:29]MH_GetDate [16:45:29]Write to MH i2c: F0 00 00 AD 07 A3 [16:45:29]Write i2c OK [16:45:29]MH_I2C_Read... [16:45:29]Read from MH i2c: F0 [16:45:29]MH_I2C_Read... [16:45:29]Read from MH i2c: F0 09 00 [16:45:29]MH_I2C_Read... [16:45:29]Read from MH i2c: F0 09 00 AD 07 00 AB 5C 74 66 99 81 91 64 9C [16:45:29]GetLastDocTimeStamp 1718901327 [16:45:29]current date 1718901931 [16:45:29]FM_GetShiftState [16:45:29]SAM_PROTO_GetShiftState [16:45:29]wFMCommunicate request_size=4 [16:45:29]MH_SAM_APDU [16:45:29]CAPDU: 80 13 01 00 [16:45:29]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [16:45:29]Write i2c OK [16:45:29]MH_I2C_Read... [16:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:29]Read from MH i2c: E2 [16:45:29]MH_I2C_Read... [16:45:29]Read from MH i2c: E2 0E 00 [16:45:29]MH_I2C_Read... [16:45:29]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 0E [16:45:29]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:45:29]wFMCommunicate OK [16:45:29]SAM_PROTO_GetShiftState done [16:45:29]FM_GetShiftState done [16:45:29]opened in 1718843774 [16:45:29]opened+sec_in_day 1718930174 [16:45:29]quantity*price = 218700 [16:45:29]sum+1 = 218701 [16:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2187.00 НСП 1% : 19.35 НДС 12% : 232.25 Наличными: 0.00 Безнал.: 2187.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 77 20.06.2024 16:45 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76636 ФПД: 111626161987896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T164531&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76636&fm=111626161987896&tin=02508201610067®Number=0000000000095696&sum=218700 [16:45:30]StoreToDocumentArchive [16:45:30]shift 393 fd 76636 [16:45:30]save to /storage/0393/doc_00076636 [16:45:30]save last doc name /storage/0393/doc_00076636 to /storage/kkm_last_doc_name [16:45:30]save OK [16:45:30]Clear old archive folders... [16:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:45:30]tlvbuf is 00EA66A0 [16:45:30]SAM_PROTO_ClearQueue [16:45:30]wFMCommunicate request_size=4 [16:45:30]MH_SAM_APDU [16:45:30]CAPDU: 80 09 00 00 [16:45:30]Write to MH i2c: E2 08 00 BB 07 80 09 00 00 00 00 00 00 34 [16:45:30]Write i2c OK [16:45:30]MH_I2C_Read... [16:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:30]Read from MH i2c: E2 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 03 00 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [16:45:30]RAPDU: 90 00 [16:45:30]wFMCommunicate OK [16:45:30]SAM_PROTO_ClearQueue done [16:45:30]KKMCreateOFDPacket [16:45:30]OFDProtocolAddRootSTLVToBuf [16:45:30]FM_MakeSignedData [16:45:30]FM_MakeSignedData [16:45:30]SAM_PROTO_SignData [16:45:30]wFMCommunicate request_size=4 [16:45:30]MH_SAM_APDU [16:45:30]CAPDU: 80 0D 01 02 [16:45:30]Write to MH i2c: E2 08 00 BC 07 80 0D 01 02 00 00 00 00 3C [16:45:30]Write i2c OK [16:45:30]MH_I2C_Read... [16:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:30]Read from MH i2c: E2 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 03 00 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [16:45:30]RAPDU: 90 00 [16:45:30]wFMCommunicate OK [16:45:30]wFMCommunicate request_size=255 [16:45:30]MH_SAM_APDU [16:45:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB 5C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2B 01 00 35 04 06 00 65 85 FD BB [16:45:30]Write to MH i2c: E2 02 01 BD 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB 5C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2B 01 00 35 04 06 00 65 85 FD BB 00 00 52 [16:45:30]Write i2c OK [16:45:30]MH_I2C_Read... [16:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:31]Read from MH i2c: E2 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 03 00 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [16:45:31]RAPDU: 90 00 [16:45:31]wFMCommunicate OK [16:45:31]wFMCommunicate request_size=7 [16:45:31]MH_SAM_APDU [16:45:31]CAPDU: 80 0D 02 02 02 A1 38 [16:45:31]Write to MH i2c: E2 0A 00 BE 07 80 0D 02 02 02 00 A1 38 00 00 1C [16:45:31]Write i2c OK [16:45:31]MH_I2C_Read... [16:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:31]Read from MH i2c: E2 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 03 00 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [16:45:31]RAPDU: 90 00 [16:45:31]wFMCommunicate OK [16:45:31]wFMCommunicate request_size=4 [16:45:31]MH_SAM_APDU [16:45:31]CAPDU: 80 0D 03 02 [16:45:31]Write to MH i2c: E2 08 00 BF 07 80 0D 03 02 00 00 00 00 41 [16:45:31]Write i2c OK [16:45:31]MH_I2C_Read... [16:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:31]Read from MH i2c: E2 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 0B 00 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 0B 00 BF 07 00 4F 50 83 8B 58 BF CF CB 90 00 A0 [16:45:31]RAPDU: 4F 50 83 8B 58 BF CF CB 90 00 [16:45:31]wFMCommunicate OK [16:45:31]SAM_PROTO_SignData done [16:45:31]FM_MakeSignedData done [16:45:31]CreateOFDProtocolMessage [16:45:31]wFMCommunicate request_size=4 [16:45:31]MH_SAM_APDU [16:45:31]CAPDU: 80 11 00 00 [16:45:31]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [16:45:31]Write i2c OK [16:45:31]MH_I2C_Read... [16:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:31]Read from MH i2c: E2 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 17 00 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 91 [16:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:45:31]wFMCommunicate OK [16:45:31]CreateOFDProtocolMessage done [16:45:31]OFDSenderStorePacket 76636 [16:45:31]StoreOFDPacket docnum=76636 [16:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 10 F2 04 01 D9 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB 5C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2B 01 00 35 04 06 00 65 85 FD BB A1 38 4F 50 83 8B 58 BF CF CB [16:45:31]CheckFolder [16:45:31]dirname=/storage/ofd_packets [16:45:31]CheckFolder done [16:45:31]ProducePacketName [16:45:31]name=ofd_packets/00076636 [16:45:31]NVStorageSaveData ofd_packets/00076636 [16:45:31]File name is /storage/ofd_packets/00076636 [16:45:31]Write 298 bytes [16:45:31]NVStorageSaveData done [16:45:31]OFDSenderStorePacket done [16:45:31]KKMCreateOFDPacket done [16:45:31]NVStorageSaveData kkm_last_timestamp [16:45:31]File name is /storage/kkm_last_timestamp [16:45:31]Write 4 bytes [16:45:31]NVStorageSaveData done [16:45:31]ExternCall_PrintAddStr [16:45:31]wPrintStart [16:45:31]Write to MH i2c: 01 00 00 C1 07 C8 [16:45:31]Write i2c OK [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: 01 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: 01 07 00 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: 01 07 00 C1 07 00 00 00 00 00 FF 0F DD [16:45:31]RasterBufferAndPrint [16:45:31]line Счет N : (1)1693253 [16:45:31]line ИНН: 02508201610067 [16:45:31]line Контрольно-Кассовый Чек [16:45:31]line ПРОДАЖА [16:45:31]line ТРК (МРК, ГНК) : 21 [16:45:31]line Товар: 2710194210 [16:45:31]line ДТ-К-2 [16:45:31]line 30.000 * 72.90 [16:45:31]line = 2187.00 [16:45:31]line НДС 12% НСП 1% [16:45:31]line > о реализуемом товаре [16:45:31]line ИТОГО: 2187.00 [16:45:31]line НСП 1% : 19.35 [16:45:31]line НДС 12% : 232.25 [16:45:31]line Наличными: 0.00 [16:45:31]line Безнал.: 2187.00 [16:45:31]line Место: АЗС № 144 "Партнер Нефть" [16:45:31]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:45:31]line СНО: Общий режим [16:45:31]line Чек 77 20.06.2024 16:45 [16:45:31]line Смена: 393 ФФД: 1.0 [16:45:31]line ЗНМ: 0300000170 [16:45:31]line РНМ: 0000000000095696 [16:45:31]line Версия ККМ: 001 [16:45:31]line Платежная система: O! деньги [16:45:31]line ФМ: 0000000000875009 [16:45:31]line ФД: 76636 [16:45:31]line ФПД: 111626161987896 [16:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T164531&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76636&fm=111626161987896&tin=02508201610067®Number=0000000000095696&sum=218700 [16:45:31]OFD Sender: Processing packet 76636 [packets to send 351, broken 350] [16:45:31]ProducePacketName [16:45:31]name=ofd_packets/00076636 [16:45:31]OFD Sender: To server: pG, [16:45:31]CommunicateWithHost lk.salyk.kg:30040 [16:45:31]ConnectInit lk.salyk.kg [16:45:31]written 0, free lines is 4095 [16:45:32]Write to MH i2c: 01 00 00 EB 07 F2 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: 01 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: 01 07 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 ED 0C F2 [16:45:32]RasterBufferAndPrint [16:45:32]line [16:45:32]line [16:45:32]line [16:45:32]line [16:45:32]line [16:45:32]written 0, free lines is 3313 [16:45:32]MH_Cut [16:45:32]Write to MH i2c: D1 01 00 F2 07 01 CB [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: D1 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: D1 01 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: D1 01 00 F2 07 00 CA [16:45:32]Write to MH i2c: 01 00 00 F3 07 FA [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** Cut start [16:45:32]*** Partial cut [16:45:32]*** CUTSNS_PIN = 1 [16:45:32]*** CUTSNS_PIN = 0 [16:45:33]Connected sock=11 [16:45:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 10 F2 04 01 D9 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB 5C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2B 01 00 35 04 06 00 65 85 FD BB A1 38 4F 50 83 8B 58 BF CF CB [16:45:33]*** Brake cut motor [16:45:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 5B 04 47 00 31 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2B 01 00 F4 03 04 00 4D 03 74 66 B6 04 01 00 00 B4 28 E3 F0 41 69 EA 66 [16:45:33]CommunicateWithHost err = 0 [16:45:33]CheckOFDResponse [16:45:33]1017 (14) - 77093643461234 [16:45:33]1041 (16) - 0000000000875009 [16:45:33]1040 (4) - 76636 [16:45:33]1012 (4) - 20.06.2024 10:24 [16:45:33]1206 (1) - 0 [16:45:33]OFD Sender: Remove packet 76636 [16:45:33]ProducePacketName [16:45:33]name=ofd_packets/00076636 [16:45:33]NVStorageDeleteData [16:45:33]Read from MH i2c: 01 [16:45:33]MH_I2C_Read... [16:45:33]*** Stop cut motor [16:45:33]*** Cut end [16:45:33]Read from MH i2c: 01 07 00 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [16:45:33]process_action close_receipt done [16:45:33]requested_data is exist [16:45:33]produce_requested_data [16:45:33]requested_item fm.sn is exist - process it [16:45:33]wFMCommunicate request_size=4 [16:45:33]MH_SAM_APDU [16:45:33]CAPDU: 80 11 00 00 [16:45:33]Write to MH i2c: E2 08 00 F4 07 80 11 00 00 00 00 00 00 75 [16:45:33]Write i2c OK [16:45:33]MH_I2C_Read... [16:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:33]Read from MH i2c: E2 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: E2 17 00 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: E2 17 00 F4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C5 [16:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:45:33]wFMCommunicate OK [16:45:33]requested_item fd.num is exist - process it [16:45:33]SAM_PROTO_GetFieldsCounters [16:45:33]wFMCommunicate request_size=4 [16:45:33]MH_SAM_APDU [16:45:33]CAPDU: 80 13 00 00 [16:45:33]Write to MH i2c: E2 08 00 F5 07 80 13 00 00 00 00 00 00 78 [16:45:33]Write i2c OK [16:45:33]MH_I2C_Read... [16:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:33]Read from MH i2c: E2 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: E2 62 00 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: E2 62 00 F5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [16:45:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:33]wFMCommunicate OK [16:45:33]SAM_PROTO_GetFieldsCounters done [16:45:33]requested_item shift.num is exist - process it [16:45:33]requested_item shift.opened is exist - process it [16:45:33]req_shift_opened [16:45:33]FM_GetShiftState [16:45:33]SAM_PROTO_GetShiftState [16:45:33]wFMCommunicate request_size=4 [16:45:33]MH_SAM_APDU [16:45:33]CAPDU: 80 13 01 00 [16:45:33]Write to MH i2c: E2 08 00 F6 07 80 13 01 00 00 00 00 00 7A [16:45:33]Write i2c OK [16:45:33]MH_I2C_Read... [16:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:33]Read from MH i2c: E2 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: E2 0E 00 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: E2 0E 00 F6 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 56 [16:45:33]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [16:45:33]wFMCommunicate OK [16:45:33]SAM_PROTO_GetShiftState done [16:45:33]FM_GetShiftState done [16:45:33]req_shift_opened done [16:45:33]requested_item shift.open_date is exist - process it [16:45:33]req_shift_open_date [16:45:33]req_shift_open_date done [16:45:33]produce_requested_data done [16:45:33]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76636,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [16:45:33]process_action_free close_receipt [16:45:33]json_value_free [16:45:33]json_value_free done [16:45:33]process_json_proto returns [16:45:33]Send response to host [16:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76636,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [16:45:33]free response buf [16:45:33]execute_script done [16:45:33]execute_script returns [16:45:33]free content buf [16:45:33]Sock 7.Close socket [16:45:33]Sock 7.Thread stoped [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:04]accept exits with 9 [17:03:04]New connection [17:03:04]New thread 3066948964 created [17:03:04]Thread 3066805604 joined [17:03:04]Waiting for new connection... [17:03:04] Sock 9.Parse request [17:03:04]Sock 9.Check first char [17:03:04]Sock 9.First char is OK [17:03:04]request: POST /json_proto HTTP/1.0 [17:03:04]Method: POST [17:03:04]URL: /json_proto [17:03:04]Method is POST - this is cgi request [17:03:04]url: /json_proto [17:03:04]query_string will be loaded in cgi processing [17:03:04]execute_cgi json_proto POST (null) [17:03:04]execute_cgi path=json_proto method=POST [17:03:04]POST find Content-Length [17:03:04]Host: 172.17.39.195:8080 [17:03:04]Content-Length: 844 [17:03:04]Content-Type: application/json [17:03:04] [17:03:04]POST finish read [17:03:04]Found Content-Length = 844 [17:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:04]execute_script... [17:03:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:04]POST & json_proto [17:03:04]process_json_proto [17:03:04]json parsed OK: [17:03:04]protocol is kg_v1.0 [17:03:04]action value=close_receipt [17:03:04]process_action close_receipt [17:03:04]cmd_close_receipt [17:03:04]MH_GetDate [17:03:04]Write to MH i2c: F0 00 00 F7 07 ED [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: F0 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: F0 09 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: F0 09 00 F7 07 00 CA 60 74 66 99 81 91 64 09 [17:03:04]GetLastDocTimeStamp 1718901931 [17:03:04]current date 1718902986 [17:03:04]FM_GetShiftState [17:03:04]SAM_PROTO_GetShiftState [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 01 00 [17:03:04]Write to MH i2c: E2 08 00 F8 07 80 13 01 00 00 00 00 00 7C [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 F8 07 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 58 [17:03:04]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetShiftState done [17:03:04]FM_GetShiftState done [17:03:04]opened in 1718843774 [17:03:04]opened+sec_in_day 1718930174 [17:03:04]quantity*price = 250003 [17:03:04]sum+1 = 250005 [17:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.04 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.04 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 78 20.06.2024 17:03 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875009 ФД: 76637 ФПД: 184658464837517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170306&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76637&fm=184658464837517&tin=02508201610067®Number=0000000000095696&sum=250004 [17:03:05]StoreToDocumentArchive [17:03:05]shift 393 fd 76637 [17:03:05]save to /storage/0393/doc_00076637 [17:03:05]save last doc name /storage/0393/doc_00076637 to /storage/kkm_last_doc_name [17:03:05]save OK [17:03:05]Clear old archive folders... [17:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:05]tlvbuf is 00EA6560 [17:03:05]SAM_PROTO_ClearQueue [17:03:05]wFMCommunicate request_size=4 [17:03:05]MH_SAM_APDU [17:03:05]CAPDU: 80 09 00 00 [17:03:05]Write to MH i2c: E2 08 00 05 08 80 09 00 00 00 00 00 00 7F [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:05]OFD Sender: No OFD packet to send [17:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 03 00 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [17:03:05]RAPDU: 90 00 [17:03:05]wFMCommunicate OK [17:03:05]SAM_PROTO_ClearQueue done [17:03:05]KKMCreateOFDPacket [17:03:05]OFDProtocolAddRootSTLVToBuf [17:03:05]FM_MakeSignedData [17:03:05]FM_MakeSignedData [17:03:05]SAM_PROTO_SignData [17:03:05]wFMCommunicate request_size=4 [17:03:05]MH_SAM_APDU [17:03:05]CAPDU: 80 0D 01 02 [17:03:05]Write to MH i2c: E2 08 00 06 08 80 0D 01 02 00 00 00 00 87 [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 03 00 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [17:03:05]RAPDU: 90 00 [17:03:05]wFMCommunicate OK [17:03:05]wFMCommunicate request_size=255 [17:03:05]MH_SAM_APDU [17:03:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CA 60 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2B 01 00 35 04 06 00 A7 [17:03:05]Write to MH i2c: E2 02 01 07 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CA 60 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2B 01 00 35 04 06 00 A7 00 00 47 [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]wFMCommunicate request_size=10 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 0D 02 02 05 F2 26 33 8F 8D [17:03:06]Write to MH i2c: E2 0D 00 08 08 80 0D 02 02 05 00 F2 26 33 8F 8D 00 00 FB [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [17:03:06]RAPDU: 90 00 [17:03:06]wFMCommunicate OK [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 0D 03 02 [17:03:06]Write to MH i2c: E2 08 00 09 08 80 0D 03 02 00 00 00 00 8C [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 0B 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 0B 00 09 08 00 10 96 D3 19 EA A4 01 02 90 00 B0 [17:03:06]RAPDU: 10 96 D3 19 EA A4 01 02 90 00 [17:03:06]wFMCommunicate OK [17:03:06]SAM_PROTO_SignData done [17:03:06]FM_MakeSignedData done [17:03:06]CreateOFDProtocolMessage [17:03:06]wFMCommunicate request_size=4 [17:03:06]MH_SAM_APDU [17:03:06]CAPDU: 80 11 00 00 [17:03:06]Write to MH i2c: E2 08 00 0A 08 80 11 00 00 00 00 00 00 8C [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:06]Read from MH i2c: E2 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 17 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: E2 17 00 0A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DC [17:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:03:06]wFMCommunicate OK [17:03:06]CreateOFDProtocolMessage done [17:03:06]OFDSenderStorePacket 76637 [17:03:06]StoreOFDPacket docnum=76637 [17:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 AD 23 07 01 3C 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CA 60 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2B 01 00 35 04 06 00 A7 F2 26 33 8F 8D 10 96 D3 19 EA A4 01 02 [17:03:06]CheckFolder [17:03:06]dirname=/storage/ofd_packets [17:03:06]CheckFolder done [17:03:06]ProducePacketName [17:03:06]name=ofd_packets/00076637 [17:03:06]NVStorageSaveData ofd_packets/00076637 [17:03:06]File name is /storage/ofd_packets/00076637 [17:03:06]Write 301 bytes [17:03:06]NVStorageSaveData done [17:03:06]OFDSenderStorePacket done [17:03:06]KKMCreateOFDPacket done [17:03:06]NVStorageSaveData kkm_last_timestamp [17:03:06]File name is /storage/kkm_last_timestamp [17:03:06]Write 4 bytes [17:03:06]NVStorageSaveData done [17:03:06]ExternCall_PrintAddStr [17:03:06]wPrintStart [17:03:06]Write to MH i2c: 01 00 00 0B 08 13 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 07 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 FF 0F 28 [17:03:06]RasterBufferAndPrint [17:03:06]line Счет N : (1)1693263 [17:03:06]line ИНН: 02508201610067 [17:03:06]line Контрольно-Кассовый Чек [17:03:06]line ПРОДАЖА [17:03:06]line ТРК (МРК, ГНК) : 51 [17:03:06]line Товар: 2710124500 [17:03:06]line Аи-95-К-3 [17:03:06]line 33.830 * 73.90 [17:03:06]line = 2500.04 [17:03:06]line НДС 12% НСП 1% [17:03:06]line > о реализуемом товаре [17:03:06]line ИТОГО: 2500.04 [17:03:06]line НСП 1% : 22.12 [17:03:06]line НДС 12% : 265.49 [17:03:06]line Наличными: 0.00 [17:03:06]line Безнал.: 2500.04 [17:03:06]line Место: АЗС № 144 "Партнер Нефть" [17:03:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:03:06]line СНО: Общий режим [17:03:06]line Чек 78 20.06.2024 17:03 [17:03:06]line Смена: 393 ФФД: 1.0 [17:03:06]line ЗНМ: 0300000170 [17:03:06]line РНМ: 0000000000095696 [17:03:06]line Версия ККМ: 001 [17:03:06]line Платежная система: АКБ Кыргызстан [17:03:06]line ФМ: 0000000000875009 [17:03:06]line ФД: 76637 [17:03:06]line ФПД: 184658464837517 [17:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170306&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76637&fm=184658464837517&tin=02508201610067®Number=0000000000095696&sum=250004 [17:03:06]written 0, free lines is 4095 [17:03:06]OFD Sender: Processing packet 76637 [packets to send 351, broken 350] [17:03:06]ProducePacketName [17:03:06]name=ofd_packets/00076637 [17:03:06]OFD Sender: To server: pG, [17:03:06]CommunicateWithHost lk.salyk.kg:30040 [17:03:06]ConnectInit lk.salyk.kg [17:03:06]Write to MH i2c: 01 00 00 35 08 3D [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 07 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 EE 0C 3E [17:03:06]RasterBufferAndPrint [17:03:06]line [17:03:06]line [17:03:06]line [17:03:06]line [17:03:06]line [17:03:06]written 0, free lines is 3317 [17:03:06]MH_Cut [17:03:06]Write to MH i2c: D1 01 00 3C 08 01 16 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: D1 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: D1 01 00 [17:03:06]MH_I2C_Read... [17:03:06]Read from MH i2c: D1 01 00 3C 08 00 15 [17:03:06]Write to MH i2c: 01 00 00 3D 08 45 [17:03:06]Write i2c OK [17:03:06]MH_I2C_Read... [17:03:06]Connected sock=10 [17:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 AD 23 07 01 3C 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CA 60 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2B 01 00 35 04 06 00 A7 F2 26 33 8F 8D 10 96 D3 19 EA A4 01 02 [17:03:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 62 76 47 00 2C 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2B 01 00 F4 03 04 00 6B 07 74 66 B6 04 01 00 00 D6 32 A3 E0 16 70 53 EB [17:03:07]CommunicateWithHost err = 0 [17:03:07]CheckOFDResponse [17:03:07]1017 (14) - 77093643461234 [17:03:07]1041 (16) - 0000000000875009 [17:03:07]1040 (4) - 76637 [17:03:07]1012 (4) - 20.06.2024 10:41 [17:03:07]1206 (1) - 0 [17:03:07]OFD Sender: Remove packet 76637 [17:03:07]ProducePacketName [17:03:07]name=ofd_packets/00076637 [17:03:07]NVStorageDeleteData [17:03:07]OFD Sender: No OFD packet to send [17:03:07]*** Cut start [17:03:07]*** Partial cut [17:03:07]*** CUTSNS_PIN = 1 [17:03:07]*** CUTSNS_PIN = 0 [17:03:07]*** Brake cut motor [17:03:08]Read from MH i2c: 01 [17:03:08]MH_I2C_Read... [17:03:08]*** Stop cut motor [17:03:08]*** Cut end [17:03:08]Read from MH i2c: 01 07 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 FF 0F 5A [17:03:08]process_action close_receipt done [17:03:08]requested_data is exist [17:03:08]produce_requested_data [17:03:08]requested_item fm.sn is exist - process it [17:03:08]wFMCommunicate request_size=4 [17:03:08]MH_SAM_APDU [17:03:08]CAPDU: 80 11 00 00 [17:03:08]Write to MH i2c: E2 08 00 3E 08 80 11 00 00 00 00 00 00 C0 [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:08]Read from MH i2c: E2 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 17 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 17 00 3E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 10 [17:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:03:08]wFMCommunicate OK [17:03:08]requested_item fd.num is exist - process it [17:03:08]SAM_PROTO_GetFieldsCounters [17:03:08]wFMCommunicate request_size=4 [17:03:08]MH_SAM_APDU [17:03:08]CAPDU: 80 13 00 00 [17:03:08]Write to MH i2c: E2 08 00 3F 08 80 13 00 00 00 00 00 00 C3 [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:08]Read from MH i2c: E2 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 62 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 62 00 3F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [17:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:08]wFMCommunicate OK [17:03:08]SAM_PROTO_GetFieldsCounters done [17:03:08]requested_item shift.num is exist - process it [17:03:08]requested_item shift.opened is exist - process it [17:03:08]req_shift_opened [17:03:08]FM_GetShiftState [17:03:08]SAM_PROTO_GetShiftState [17:03:08]wFMCommunicate request_size=4 [17:03:08]MH_SAM_APDU [17:03:08]CAPDU: 80 13 01 00 [17:03:08]Write to MH i2c: E2 08 00 40 08 80 13 01 00 00 00 00 00 C5 [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:08]Read from MH i2c: E2 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 0E 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 0E 00 40 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A1 [17:03:08]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:03:08]wFMCommunicate OK [17:03:08]SAM_PROTO_GetShiftState done [17:03:08]FM_GetShiftState done [17:03:08]req_shift_opened done [17:03:08]requested_item shift.open_date is exist - process it [17:03:08]req_shift_open_date [17:03:08]req_shift_open_date done [17:03:08]produce_requested_data done [17:03:08]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76637,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:03:08]process_action_free close_receipt [17:03:08]json_value_free [17:03:08]json_value_free done [17:03:08]process_json_proto returns [17:03:08]Send response to host [17:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76637,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:03:08]free response buf [17:03:08]execute_script done [17:03:08]execute_script returns [17:03:08]free content buf [17:03:08]Sock 9.Close socket [17:03:08]Sock 9.Thread stoped [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: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:30]accept exits with 7 [17:05:30]New connection [17:05:30]New thread 3066805604 created [17:05:30]Thread 3066948964 joined [17:05:30]Waiting for new connection... [17:05:30] Sock 7.Parse request [17:05:30]Sock 7.Check first char [17:05:30]Sock 7.First char is OK [17:05:30]request: POST /json_proto HTTP/1.0 [17:05:30]Method: POST [17:05:30]URL: /json_proto [17:05:30]Method is POST - this is cgi request [17:05:30]url: /json_proto [17:05:30]query_string will be loaded in cgi processing [17:05:30]execute_cgi json_proto POST (null) [17:05:30]execute_cgi path=json_proto method=POST [17:05:30]POST find Content-Length [17:05:30]Host: 172.17.39.195:8080 [17:05:30]Content-Length: 678 [17:05:30]Content-Type: application/json [17:05:30] [17:05:30]POST finish read [17:05:30]Found Content-Length = 678 [17:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693265", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:30]execute_script... [17:05: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)1693265", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:30]POST & json_proto [17:05:30]process_json_proto [17:05:30]json parsed OK: [17:05:30]protocol is kg_v1.0 [17:05:30]action value=close_receipt [17:05:30]process_action close_receipt [17:05:30]cmd_close_receipt [17:05:30]MH_GetDate [17:05:30]Write to MH i2c: F0 00 00 41 08 38 [17:05:30]Write i2c OK [17:05:30]MH_I2C_Read... [17:05:30]Read from MH i2c: F0 [17:05:30]MH_I2C_Read... [17:05:30]Read from MH i2c: F0 09 00 [17:05:30]MH_I2C_Read... [17:05:30]Read from MH i2c: F0 09 00 41 08 00 5C 61 74 66 99 81 91 64 E7 [17:05:30]GetLastDocTimeStamp 1718902986 [17:05:30]current date 1718903132 [17:05:30]FM_GetShiftState [17:05:30]SAM_PROTO_GetShiftState [17:05:30]wFMCommunicate request_size=4 [17:05:30]MH_SAM_APDU [17:05:30]CAPDU: 80 13 01 00 [17:05:30]Write to MH i2c: E2 08 00 42 08 80 13 01 00 00 00 00 00 C7 [17:05:30]Write i2c OK [17:05:30]MH_I2C_Read... [17:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:30]Read from MH i2c: E2 [17:05:30]MH_I2C_Read... [17:05:30]Read from MH i2c: E2 0E 00 [17:05:30]MH_I2C_Read... [17:05:30]Read from MH i2c: E2 0E 00 42 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A3 [17:05:30]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:05:30]wFMCommunicate OK [17:05:30]SAM_PROTO_GetShiftState done [17:05:30]FM_GetShiftState done [17:05:30]opened in 1718843774 [17:05:30]opened+sec_in_day 1718930174 [17:05:30]quantity*price = 50065 [17:05:30]sum+1 = 50067 [17:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 79 20.06.2024 17:05 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76638 ФПД: 189092974614491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170532&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76638&fm=189092974614491&tin=02508201610067®Number=0000000000095696&sum=50000 [17:05:31]StoreToDocumentArchive [17:05:31]shift 393 fd 76638 [17:05:31]save to /storage/0393/doc_00076638 [17:05:31]save last doc name /storage/0393/doc_00076638 to /storage/kkm_last_doc_name [17:05:31]save OK [17:05:31]Clear old archive folders... [17:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:31]tlvbuf is 00ED7190 [17:05:31]SAM_PROTO_ClearQueue [17:05:31]wFMCommunicate request_size=4 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 09 00 00 [17:05:31]Write to MH i2c: E2 08 00 4F 08 80 09 00 00 00 00 00 00 C9 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [17:05:31]RAPDU: 90 00 [17:05:31]wFMCommunicate OK [17:05:31]SAM_PROTO_ClearQueue done [17:05:31]KKMCreateOFDPacket [17:05:31]OFDProtocolAddRootSTLVToBuf [17:05:31]FM_MakeSignedData [17:05:31]FM_MakeSignedData [17:05:31]SAM_PROTO_SignData [17:05:31]wFMCommunicate request_size=4 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 0D 01 02 [17:05:31]Write to MH i2c: E2 08 00 50 08 80 0D 01 02 00 00 00 00 D1 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [17:05:31]RAPDU: 90 00 [17:05:31]wFMCommunicate OK [17:05:31]wFMCommunicate request_size=255 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2B 01 00 35 04 06 00 AB [17:05:31]Write to MH i2c: E2 02 01 51 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2B 01 00 35 04 06 00 AB 00 00 31 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [17:05:31]RAPDU: 90 00 [17:05:31]wFMCommunicate OK [17:05:31]wFMCommunicate request_size=10 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 0D 02 02 05 FA A3 94 D7 DB [17:05:31]Write to MH i2c: E2 0D 00 52 08 80 0D 02 02 05 00 FA A3 94 D7 DB 00 00 C1 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [17:05:31]RAPDU: 90 00 [17:05:31]wFMCommunicate OK [17:05:31]wFMCommunicate request_size=4 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 0D 03 02 [17:05:31]Write to MH i2c: E2 08 00 53 08 80 0D 03 02 00 00 00 00 D6 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 0B 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 0B 00 53 08 00 5A A2 0E 7E 95 43 B8 B2 90 00 A1 [17:05:31]RAPDU: 5A A2 0E 7E 95 43 B8 B2 90 00 [17:05:31]wFMCommunicate OK [17:05:31]SAM_PROTO_SignData done [17:05:31]FM_MakeSignedData done [17:05:31]CreateOFDProtocolMessage [17:05:31]wFMCommunicate request_size=4 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 11 00 00 [17:05:31]Write to MH i2c: E2 08 00 54 08 80 11 00 00 00 00 00 00 D6 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 17 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 17 00 54 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 26 [17:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:05:31]wFMCommunicate OK [17:05:31]CreateOFDProtocolMessage done [17:05:31]OFDSenderStorePacket 76638 [17:05:31]StoreOFDPacket docnum=76638 [17:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 60 7E 07 01 44 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2B 01 00 35 04 06 00 AB FA A3 94 D7 DB 5A A2 0E 7E 95 43 B8 B2 [17:05:31]CheckFolder [17:05:31]dirname=/storage/ofd_packets [17:05:31]CheckFolder done [17:05:31]ProducePacketName [17:05:31]name=ofd_packets/00076638 [17:05:31]NVStorageSaveData ofd_packets/00076638 [17:05:31]File name is /storage/ofd_packets/00076638 [17:05:31]Write 301 bytes [17:05:31]NVStorageSaveData done [17:05:31]OFDSenderStorePacket done [17:05:31]KKMCreateOFDPacket done [17:05:31]NVStorageSaveData kkm_last_timestamp [17:05:31]File name is /storage/kkm_last_timestamp [17:05:31]Write 4 bytes [17:05:31]NVStorageSaveData done [17:05:31]ExternCall_PrintAddStr [17:05:31]wPrintStart [17:05:31]Write to MH i2c: 01 00 00 55 08 5D [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: 01 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: 01 07 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: 01 07 00 55 08 00 00 00 00 00 FF 0F 72 [17:05:31]RasterBufferAndPrint [17:05:31]line Счет N : (1)1693265 [17:05:31]line ИНН: 02508201610067 [17:05:31]line Контрольно-Кассовый Чек [17:05:31]line ПРОДАЖА [17:05:31]line ТРК (МРК, ГНК) : 53 [17:05:31]line Товар: 2710124130 [17:05:31]line Аи-92-К-5 [17:05:31]line 7.540 * 66.40 [17:05:31]line = 500.66 [17:05:31]line НДС 12% НСП 1% [17:05:31]line > о реализуемом товаре [17:05:31]line ОКРУГЛЕНИЕ: -0.66 [17:05:31]line ИТОГО: 500.00 [17:05:31]line Внесено: 500.00 [17:05:31]line СДАЧА: 0.00 [17:05:31]line НСП 1% : 4.43 [17:05:31]line НДС 12% : 53.17 [17:05:31]line Наличными: 500.00 [17:05:31]line Безнал.: 0.00 [17:05:31]line Место: АЗС № 144 "Партнер Нефть" [17:05:31]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:05:31]line СНО: Общий режим [17:05:31]line Чек 79 20.06.2024 17:05 [17:05:31]line Смена: 393 ФФД: 1.0 [17:05:31]line ЗНМ: 0300000170 [17:05:31]line РНМ: 0000000000095696 [17:05:31]line Версия ККМ: 001 [17:05:31]line ФМ: 0000000000875009 [17:05:31]line ФД: 76638 [17:05:31]line ФПД: 189092974614491 [17:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170532&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76638&fm=189092974614491&tin=02508201610067®Number=0000000000095696&sum=50000 [17:05:32]OFD Sender: Processing packet 76638 [packets to send 351, broken 350] [17:05:32]ProducePacketName [17:05:32]name=ofd_packets/00076638 [17:05:32]OFD Sender: To server: pG, [17:05:32]CommunicateWithHost lk.salyk.kg:30040 [17:05:32]ConnectInit lk.salyk.kg [17:05:32]written 0, free lines is 4095 [17:05:32]Connected sock=10 [17:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 60 7E 07 01 44 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2B 01 00 35 04 06 00 AB FA A3 94 D7 DB 5A A2 0E 7E 95 43 B8 B2 [17:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B3 97 47 00 68 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2B 01 00 F4 03 04 00 FC 07 74 66 B6 04 01 00 00 CC E5 58 7E BD 81 C1 E8 [17:05:32]CommunicateWithHost err = 0 [17:05:32]CheckOFDResponse [17:05:32]1017 (14) - 77093643461234 [17:05:32]1041 (16) - 0000000000875009 [17:05:32]1040 (4) - 76638 [17:05:32]1012 (4) - 20.06.2024 10:44 [17:05:32]1206 (1) - 0 [17:05:32]OFD Sender: Remove packet 76638 [17:05:32]ProducePacketName [17:05:32]name=ofd_packets/00076638 [17:05:32]NVStorageDeleteData [17:05:32]Write to MH i2c: 01 00 00 80 08 88 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: 01 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: 01 07 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: 01 07 00 80 08 00 00 00 00 00 DE 0C 79 [17:05:32]RasterBufferAndPrint [17:05:32]line [17:05:32]line [17:05:32]line [17:05:32]line [17:05:32]line [17:05:32]written 0, free lines is 3300 [17:05:32]MH_Cut [17:05:32]Write to MH i2c: D1 01 00 87 08 01 61 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: D1 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: D1 01 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: D1 01 00 87 08 00 60 [17:05:32]Write to MH i2c: 01 00 00 88 08 90 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:33]OFD Sender: No OFD packet to send [17:05:33]*** Cut start [17:05:33]*** Partial cut [17:05:33]*** CUTSNS_PIN = 1 [17:05:33]*** CUTSNS_PIN = 0 [17:05:33]*** Brake cut motor [17:05:34]Read from MH i2c: 01 [17:05:34]MH_I2C_Read... [17:05:34]*** Stop cut motor [17:05:34]*** Cut end [17:05:34]Read from MH i2c: 01 07 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 88 08 00 00 00 00 00 FF 0F A5 [17:05:34]process_action close_receipt done [17:05:34]requested_data is exist [17:05:34]produce_requested_data [17:05:34]requested_item fm.sn is exist - process it [17:05:34]wFMCommunicate request_size=4 [17:05:34]MH_SAM_APDU [17:05:34]CAPDU: 80 11 00 00 [17:05:34]Write to MH i2c: E2 08 00 89 08 80 11 00 00 00 00 00 00 0B [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:34]Read from MH i2c: E2 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 17 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 17 00 89 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5B [17:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:05:34]wFMCommunicate OK [17:05:34]requested_item fd.num is exist - process it [17:05:34]SAM_PROTO_GetFieldsCounters [17:05:34]wFMCommunicate request_size=4 [17:05:34]MH_SAM_APDU [17:05:34]CAPDU: 80 13 00 00 [17:05:34]Write to MH i2c: E2 08 00 8A 08 80 13 00 00 00 00 00 00 0E [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:34]Read from MH i2c: E2 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 62 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 62 00 8A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [17:05:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:34]wFMCommunicate OK [17:05:34]SAM_PROTO_GetFieldsCounters done [17:05:34]requested_item shift.num is exist - process it [17:05:34]requested_item shift.opened is exist - process it [17:05:34]req_shift_opened [17:05:34]FM_GetShiftState [17:05:34]SAM_PROTO_GetShiftState [17:05:34]wFMCommunicate request_size=4 [17:05:34]MH_SAM_APDU [17:05:34]CAPDU: 80 13 01 00 [17:05:34]Write to MH i2c: E2 08 00 8B 08 80 13 01 00 00 00 00 00 10 [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:34]Read from MH i2c: E2 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 0E 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 0E 00 8B 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 EC [17:05:34]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:05:34]wFMCommunicate OK [17:05:34]SAM_PROTO_GetShiftState done [17:05:34]FM_GetShiftState done [17:05:34]req_shift_opened done [17:05:34]requested_item shift.open_date is exist - process it [17:05:34]req_shift_open_date [17:05:34]req_shift_open_date done [17:05:34]produce_requested_data done [17:05:34]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76638,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:05:34]process_action_free close_receipt [17:05:34]json_value_free [17:05:34]json_value_free done [17:05:34]process_json_proto returns [17:05:34]Send response to host [17:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76638,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:05:34]free response buf [17:05:34]execute_script done [17:05:34]execute_script returns [17:05:34]free content buf [17:05:34]Sock 7.Close socket [17:05:34]Sock 7.Thread stoped [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:33]accept exits with 9 [17:07:33]New connection [17:07:33]New thread 3066948964 created [17:07:33]Thread 3066805604 joined [17:07:33]Waiting for new connection... [17:07:33] Sock 9.Parse request [17:07:33]Sock 9.Check first char [17:07:33]Sock 9.First char is OK [17:07:33]request: POST /json_proto HTTP/1.0 [17:07:33]Method: POST [17:07:33]URL: /json_proto [17:07:33]Method is POST - this is cgi request [17:07:33]url: /json_proto [17:07:33]query_string will be loaded in cgi processing [17:07:33]execute_cgi json_proto POST (null) [17:07:33]execute_cgi path=json_proto method=POST [17:07:33]POST find Content-Length [17:07:33]Host: 172.17.39.195:8080 [17:07:33]Content-Length: 678 [17:07:33]Content-Type: application/json [17:07:33] [17:07:33]POST finish read [17:07:33]Found Content-Length = 678 [17:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693268", "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.40, "quantity" : 8.590, "sum" : 570.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:33]execute_script... [17:07: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)1693268", "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.40, "quantity" : 8.590, "sum" : 570.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:33]POST & json_proto [17:07:33]process_json_proto [17:07:33]json parsed OK: [17:07:33]protocol is kg_v1.0 [17:07:33]action value=close_receipt [17:07:33]process_action close_receipt [17:07:33]cmd_close_receipt [17:07:33]MH_GetDate [17:07:33]Write to MH i2c: F0 00 00 8C 08 83 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 09 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 09 00 8C 08 00 D7 61 74 66 99 81 91 64 AD [17:07:33]GetLastDocTimeStamp 1718903132 [17:07:33]current date 1718903255 [17:07:33]FM_GetShiftState [17:07:33]SAM_PROTO_GetShiftState [17:07:33]wFMCommunicate request_size=4 [17:07:33]MH_SAM_APDU [17:07:33]CAPDU: 80 13 01 00 [17:07:33]Write to MH i2c: E2 08 00 8D 08 80 13 01 00 00 00 00 00 12 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:33]Read from MH i2c: E2 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0E 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0E 00 8D 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 EE [17:07:33]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:07:33]wFMCommunicate OK [17:07:33]SAM_PROTO_GetShiftState done [17:07:33]FM_GetShiftState done [17:07:33]opened in 1718843774 [17:07:33]opened+sec_in_day 1718930174 [17:07:33]quantity*price = 57037 [17:07:33]sum+1 = 57039 [17:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.57 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 80 20.06.2024 17:07 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76639 ФПД: 59626376684758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170735&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76639&fm=59626376684758&tin=02508201610067®Number=0000000000095696&sum=57000 [17:07:34]StoreToDocumentArchive [17:07:34]shift 393 fd 76639 [17:07:34]save to /storage/0393/doc_00076639 [17:07:34]save last doc name /storage/0393/doc_00076639 to /storage/kkm_last_doc_name [17:07:34]save OK [17:07:34]Clear old archive folders... [17:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:34]tlvbuf is 00E7BB90 [17:07:34]SAM_PROTO_ClearQueue [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 09 00 00 [17:07:34]Write to MH i2c: E2 08 00 9A 08 80 09 00 00 00 00 00 00 14 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]SAM_PROTO_ClearQueue done [17:07:34]KKMCreateOFDPacket [17:07:34]OFDProtocolAddRootSTLVToBuf [17:07:34]FM_MakeSignedData [17:07:34]FM_MakeSignedData [17:07:34]SAM_PROTO_SignData [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 0D 01 02 [17:07:34]Write to MH i2c: E2 08 00 9B 08 80 0D 01 02 00 00 00 00 1C [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]wFMCommunicate request_size=255 [17:07:34]MH_SAM_APDU [17:07: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 8E 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 17 00 00 00 00 07 04 06 00 A8 DE 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 D7 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2B 01 00 35 04 06 00 36 [17:07:34]Write to MH i2c: E2 02 01 9C 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 8E 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 17 00 00 00 00 07 04 06 00 A8 DE 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 D7 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2B 01 00 35 04 06 00 36 00 00 04 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=10 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 02 02 05 3A D9 00 64 D6 [17:07:35]Write to MH i2c: E2 0D 00 9D 08 80 0D 02 02 05 00 3A D9 00 64 D6 00 00 76 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 03 02 [17:07:35]Write to MH i2c: E2 08 00 9E 08 80 0D 03 02 00 00 00 00 21 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0B 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0B 00 9E 08 00 85 0C 0E E6 B5 37 C7 9D 90 00 F7 [17:07:35]RAPDU: 85 0C 0E E6 B5 37 C7 9D 90 00 [17:07:35]wFMCommunicate OK [17:07:35]SAM_PROTO_SignData done [17:07:35]FM_MakeSignedData done [17:07:35]CreateOFDProtocolMessage [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 11 00 00 [17:07:35]Write to MH i2c: E2 08 00 9F 08 80 11 00 00 00 00 00 00 21 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 9F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 71 [17:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:07:35]wFMCommunicate OK [17:07:35]CreateOFDProtocolMessage done [17:07:35]OFDSenderStorePacket 76639 [17:07:35]StoreOFDPacket docnum=76639 [17:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 C0 E1 07 01 7D 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 17 00 00 00 00 07 04 06 00 A8 DE 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 D7 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2B 01 00 35 04 06 00 36 3A D9 00 64 D6 85 0C 0E E6 B5 37 C7 9D [17:07:35]CheckFolder [17:07:35]dirname=/storage/ofd_packets [17:07:35]CheckFolder done [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00076639 [17:07:35]NVStorageSaveData ofd_packets/00076639 [17:07:35]File name is /storage/ofd_packets/00076639 [17:07:35]Write 301 bytes [17:07:35]NVStorageSaveData done [17:07:35]OFDSenderStorePacket done [17:07:35]KKMCreateOFDPacket done [17:07:35]NVStorageSaveData kkm_last_timestamp [17:07:35]File name is /storage/kkm_last_timestamp [17:07:35]Write 4 bytes [17:07:35]NVStorageSaveData done [17:07:35]OFD Sender: Processing packet 76639 [packets to send 351, broken 350] [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00076639 [17:07:35]OFD Sender: To server: pG, [17:07:35]CommunicateWithHost lk.salyk.kg:30040 [17:07:35]ConnectInit lk.salyk.kg [17:07:35]ExternCall_PrintAddStr [17:07:35]wPrintStart [17:07:35]Write to MH i2c: 01 00 00 A0 08 A8 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 A0 08 00 00 00 00 00 FF 0F BD [17:07:35]RasterBufferAndPrint [17:07:35]line Счет N : (1)1693268 [17:07:35]line ИНН: 02508201610067 [17:07:35]line Контрольно-Кассовый Чек [17:07:35]line ПРОДАЖА [17:07:35]line ТРК (МРК, ГНК) : 63 [17:07:35]line Товар: 2710124130 [17:07:35]line Аи-92-К-5 [17:07:35]line 8.590 * 66.40 [17:07:35]line = 570.38 [17:07:35]line НДС 12% НСП 1% [17:07:35]line > о реализуемом товаре [17:07:35]line ОКРУГЛЕНИЕ: -0.38 [17:07:35]line ИТОГО: 570.00 [17:07:35]line Внесено: 570.00 [17:07:35]line СДАЧА: 0.00 [17:07:35]line НСП 1% : 5.05 [17:07:35]line НДС 12% : 60.57 [17:07:35]line Наличными: 570.00 [17:07:35]line Безнал.: 0.00 [17:07:35]line Место: АЗС № 144 "Партнер Нефть" [17:07:35]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:07:35]line СНО: Общий режим [17:07:35]line Чек 80 20.06.2024 17:07 [17:07:35]line Смена: 393 ФФД: 1.0 [17:07:35]line ЗНМ: 0300000170 [17:07:35]line РНМ: 0000000000095696 [17:07:35]line Версия ККМ: 001 [17:07:35]line ФМ: 0000000000875009 [17:07:35]line ФД: 76639 [17:07:35]line ФПД: 59626376684758 [17:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170735&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76639&fm=59626376684758&tin=02508201610067®Number=0000000000095696&sum=57000 [17:07:35]Connected sock=11 [17:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 C0 E1 07 01 7D 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 17 00 00 00 00 07 04 06 00 A8 DE 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 D7 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2B 01 00 35 04 06 00 36 3A D9 00 64 D6 85 0C 0E E6 B5 37 C7 9D [17:07:35]written 0, free lines is 4095 [17:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E9 F4 47 00 7E B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2B 01 00 F4 03 04 00 77 08 74 66 B6 04 01 00 00 A9 A2 3F 68 F0 37 E2 7F [17:07:35]CommunicateWithHost err = 0 [17:07:35]CheckOFDResponse [17:07:35]1017 (14) - 77093643461234 [17:07:35]1041 (16) - 0000000000875009 [17:07:35]1040 (4) - 76639 [17:07:35]1012 (4) - 20.06.2024 10:46 [17:07:35]1206 (1) - 0 [17:07:35]OFD Sender: Remove packet 76639 [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00076639 [17:07:35]NVStorageDeleteData [17:07:36]Write to MH i2c: 01 00 00 CB 08 D3 [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 CB 08 00 00 00 00 00 D3 0C B9 [17:07:36]RasterBufferAndPrint [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]written 0, free lines is 3292 [17:07:36]MH_Cut [17:07:36]Write to MH i2c: D1 01 00 D2 08 01 AC [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 D2 08 00 AB [17:07:36]Write to MH i2c: 01 00 00 D3 08 DB [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]OFD Sender: No OFD packet to send [17:07:36]*** Cut start [17:07:36]*** Partial cut [17:07:36]*** CUTSNS_PIN = 1 [17:07:36]*** CUTSNS_PIN = 0 [17:07:37]*** Brake cut motor [17:07:37]Read from MH i2c: 01 [17:07:37]MH_I2C_Read... [17:07:37]*** Stop cut motor [17:07:37]*** Cut end [17:07:37]Read from MH i2c: 01 07 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 FF 0F F0 [17:07:37]process_action close_receipt done [17:07:37]requested_data is exist [17:07:37]produce_requested_data [17:07:37]requested_item fm.sn is exist - process it [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 11 00 00 [17:07:37]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A6 [17:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:07:37]wFMCommunicate OK [17:07:37]requested_item fd.num is exist - process it [17:07:37]SAM_PROTO_GetFieldsCounters [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 13 00 00 [17:07:37]Write to MH i2c: E2 08 00 D5 08 80 13 00 00 00 00 00 00 59 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 62 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 62 00 D5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [17:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_GetFieldsCounters done [17:07:37]requested_item shift.num is exist - process it [17:07:37]requested_item shift.opened is exist - process it [17:07:37]req_shift_opened [17:07:37]FM_GetShiftState [17:07:37]SAM_PROTO_GetShiftState [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 13 01 00 [17:07:37]Write to MH i2c: E2 08 00 D6 08 80 13 01 00 00 00 00 00 5B [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 0E 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 0E 00 D6 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 37 [17:07:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_GetShiftState done [17:07:37]FM_GetShiftState done [17:07:37]req_shift_opened done [17:07:37]requested_item shift.open_date is exist - process it [17:07:37]req_shift_open_date [17:07:37]req_shift_open_date done [17:07:37]produce_requested_data done [17:07:37]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76639,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:07:37]process_action_free close_receipt [17:07:37]json_value_free [17:07:37]json_value_free done [17:07:37]process_json_proto returns [17:07:37]Send response to host [17:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76639,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:07:37]free response buf [17:07:37]execute_script done [17:07:37]execute_script returns [17:07:37]free content buf [17:07:37]Sock 9.Close socket [17:07:37]Sock 9.Thread stoped [17:07:40]accept exits with 7 [17:07:40]New connection [17:07:40]New thread 3066805604 created [17:07:40]Thread 3066948964 joined [17:07:40]Waiting for new connection... [17:07:40] Sock 7.Parse request [17:07:40]Sock 7.Check first char [17:07:40]Sock 7.First char is OK [17:07:40]request: POST /json_proto HTTP/1.0 [17:07:40]Method: POST [17:07:40]URL: /json_proto [17:07:40]Method is POST - this is cgi request [17:07:40]url: /json_proto [17:07:40]query_string will be loaded in cgi processing [17:07:40]execute_cgi json_proto POST (null) [17:07:40]execute_cgi path=json_proto method=POST [17:07:40]POST find Content-Length [17:07:40]Host: 172.17.39.195:8080 [17:07:40]Content-Length: 804 [17:07:40]Content-Type: application/json [17:07:40] [17:07:40]POST finish read [17:07:40]Found Content-Length = 804 [17:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693267", "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" : 66.40, "quantity" : 20.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:40]execute_script... [17:07: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)1693267", "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" : 66.40, "quantity" : 20.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:40]POST & json_proto [17:07:40]process_json_proto [17:07:40]json parsed OK: [17:07:40]protocol is kg_v1.0 [17:07:40]action value=close_receipt [17:07:40]process_action close_receipt [17:07:40]cmd_close_receipt [17:07:40]MH_GetDate [17:07:40]Write to MH i2c: F0 00 00 D7 08 CE [17:07:40]Write i2c OK [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: F0 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: F0 09 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: F0 09 00 D7 08 00 DE 61 74 66 99 81 91 64 FF [17:07:40]GetLastDocTimeStamp 1718903255 [17:07:40]current date 1718903262 [17:07:40]FM_GetShiftState [17:07:40]SAM_PROTO_GetShiftState [17:07:40]wFMCommunicate request_size=4 [17:07:40]MH_SAM_APDU [17:07:40]CAPDU: 80 13 01 00 [17:07:40]Write to MH i2c: E2 08 00 D8 08 80 13 01 00 00 00 00 00 5D [17:07:40]Write i2c OK [17:07:40]MH_I2C_Read... [17:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:40]Read from MH i2c: E2 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 0E 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 0E 00 D8 08 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 39 [17:07:40]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:07:40]wFMCommunicate OK [17:07:40]SAM_PROTO_GetShiftState done [17:07:40]FM_GetShiftState done [17:07:40]opened in 1718843774 [17:07:40]opened+sec_in_day 1718930174 [17:07:40]quantity*price = 132800 [17:07:40]sum+1 = 132801 [17:07:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 0.00 Безнал.: 1328.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 81 20.06.2024 17:07 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76640 ФПД: 202257859816182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170742&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76640&fm=202257859816182&tin=02508201610067®Number=0000000000095696&sum=132800 [17:07:41]StoreToDocumentArchive [17:07:41]shift 393 fd 76640 [17:07:41]save to /storage/0393/doc_00076640 [17:07:41]save last doc name /storage/0393/doc_00076640 to /storage/kkm_last_doc_name [17:07:41]save OK [17:07:41]Clear old archive folders... [17:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:41]tlvbuf is 00EA98D0 [17:07:41]SAM_PROTO_ClearQueue [17:07:41]wFMCommunicate request_size=4 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 09 00 00 [17:07:41]Write to MH i2c: E2 08 00 E5 08 80 09 00 00 00 00 00 00 5F [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:41]Read from MH i2c: E2 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [17:07:41]RAPDU: 90 00 [17:07:41]wFMCommunicate OK [17:07:41]SAM_PROTO_ClearQueue done [17:07:41]KKMCreateOFDPacket [17:07:41]OFDProtocolAddRootSTLVToBuf [17:07:41]FM_MakeSignedData [17:07:41]FM_MakeSignedData [17:07:41]SAM_PROTO_SignData [17:07:41]wFMCommunicate request_size=4 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 0D 01 02 [17:07:41]Write to MH i2c: E2 08 00 E6 08 80 0D 01 02 00 00 00 00 67 [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:41]Read from MH i2c: E2 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [17:07:41]RAPDU: 90 00 [17:07:41]wFMCommunicate OK [17:07:41]wFMCommunicate request_size=255 [17:07:41]MH_SAM_APDU [17:07: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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DE 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2B 01 00 35 04 06 00 B7 [17:07:41]Write to MH i2c: E2 02 01 E7 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DE 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2B 01 00 35 04 06 00 B7 00 00 67 [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:41]Read from MH i2c: E2 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [17:07:41]RAPDU: 90 00 [17:07:41]wFMCommunicate OK [17:07:41]wFMCommunicate request_size=10 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 0D 02 02 05 F3 D3 E3 2A F6 [17:07:41]Write to MH i2c: E2 0D 00 E8 08 80 0D 02 02 05 00 F3 D3 E3 2A F6 00 00 3D [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:41]Read from MH i2c: E2 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [17:07:41]RAPDU: 90 00 [17:07:41]wFMCommunicate OK [17:07:41]wFMCommunicate request_size=4 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 0D 03 02 [17:07:41]Write to MH i2c: E2 08 00 E9 08 80 0D 03 02 00 00 00 00 6C [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:41]Read from MH i2c: E2 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 0B 00 [17:07:41]MH_I2C_Read... [17:07:41]Read from MH i2c: E2 0B 00 E9 08 00 6B 2B 41 41 02 22 08 3A 90 00 EB [17:07:41]RAPDU: 6B 2B 41 41 02 22 08 3A 90 00 [17:07:41]wFMCommunicate OK [17:07:41]SAM_PROTO_SignData done [17:07:41]FM_MakeSignedData done [17:07:41]CreateOFDProtocolMessage [17:07:41]wFMCommunicate request_size=4 [17:07:41]MH_SAM_APDU [17:07:41]CAPDU: 80 11 00 00 [17:07:41]Write to MH i2c: E2 08 00 EA 08 80 11 00 00 00 00 00 00 6C [17:07:41]Write i2c OK [17:07:41]MH_I2C_Read... [17:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:42]Read from MH i2c: E2 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 17 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: E2 17 00 EA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BC [17:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:07:42]wFMCommunicate OK [17:07:42]CreateOFDProtocolMessage done [17:07:42]OFDSenderStorePacket 76640 [17:07:42]StoreOFDPacket docnum=76640 [17:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 CB CE 07 01 20 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DE 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2B 01 00 35 04 06 00 B7 F3 D3 E3 2A F6 6B 2B 41 41 02 22 08 3A [17:07:42]CheckFolder [17:07:42]dirname=/storage/ofd_packets [17:07:42]CheckFolder done [17:07:42]ProducePacketName [17:07:42]name=ofd_packets/00076640 [17:07:42]NVStorageSaveData ofd_packets/00076640 [17:07:42]File name is /storage/ofd_packets/00076640 [17:07:42]Write 301 bytes [17:07:42]NVStorageSaveData done [17:07:42]OFDSenderStorePacket done [17:07:42]KKMCreateOFDPacket done [17:07:42]NVStorageSaveData kkm_last_timestamp [17:07:42]File name is /storage/kkm_last_timestamp [17:07:42]Write 4 bytes [17:07:42]NVStorageSaveData done [17:07:42]ExternCall_PrintAddStr [17:07:42]wPrintStart [17:07:42]Write to MH i2c: 01 00 00 EB 08 F3 [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 07 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 07 00 EB 08 00 00 00 00 00 FF 0F 08 [17:07:42]RasterBufferAndPrint [17:07:42]line Счет N : (1)1693267 [17:07:42]line ИНН: 02508201610067 [17:07:42]line Контрольно-Кассовый Чек [17:07:42]line ПРОДАЖА [17:07:42]line ТРК (МРК, ГНК) : 43 [17:07:42]line Товар: 2710124130 [17:07:42]line Аи-92-К-5 [17:07:42]line 20.000 * 66.40 [17:07:42]line = 1328.00 [17:07:42]line НДС 12% НСП 1% [17:07:42]line > о реализуемом товаре [17:07:42]line ИТОГО: 1328.00 [17:07:42]line НСП 1% : 11.75 [17:07:42]line НДС 12% : 141.03 [17:07:42]line Наличными: 0.00 [17:07:42]line Безнал.: 1328.00 [17:07:42]line Место: АЗС № 144 "Партнер Нефть" [17:07:42]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:07:42]line СНО: Общий режим [17:07:42]line Чек 81 20.06.2024 17:07 [17:07:42]line Смена: 393 ФФД: 1.0 [17:07:42]line ЗНМ: 0300000170 [17:07:42]line РНМ: 0000000000095696 [17:07:42]line Версия ККМ: 001 [17:07:42]line Платежная система: O! деньги [17:07:42]line ФМ: 0000000000875009 [17:07:42]line ФД: 76640 [17:07:42]line ФПД: 202257859816182 [17:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170742&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76640&fm=202257859816182&tin=02508201610067®Number=0000000000095696&sum=132800 [17:07:42]written 0, free lines is 4095 [17:07:42]OFD Sender: Processing packet 76640 [packets to send 351, broken 350] [17:07:42]ProducePacketName [17:07:42]name=ofd_packets/00076640 [17:07:42]OFD Sender: To server: pG, [17:07:42]CommunicateWithHost lk.salyk.kg:30040 [17:07:42]ConnectInit lk.salyk.kg [17:07:42]Connected sock=10 [17:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 CB CE 07 01 20 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DE 61 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2B 01 00 35 04 06 00 B7 F3 D3 E3 2A F6 6B 2B 41 41 02 22 08 3A [17:07:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 DA E9 47 00 CB 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2B 01 00 F4 03 04 00 7E 08 74 66 B6 04 01 00 00 4A 79 B9 60 A9 C4 53 C3 [17:07:42]CommunicateWithHost err = 0 [17:07:42]CheckOFDResponse [17:07:42]1017 (14) - 77093643461234 [17:07:42]1041 (16) - 0000000000875009 [17:07:42]1040 (4) - 76640 [17:07:42]1012 (4) - 20.06.2024 10:46 [17:07:42]1206 (1) - 0 [17:07:42]OFD Sender: Remove packet 76640 [17:07:42]ProducePacketName [17:07:42]name=ofd_packets/00076640 [17:07:42]NVStorageDeleteData [17:07:42]Write to MH i2c: 01 00 00 15 09 1E [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 07 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: 01 07 00 15 09 00 00 00 00 00 EF 0C 20 [17:07:42]RasterBufferAndPrint [17:07:42]line [17:07:42]line [17:07:42]line [17:07:42]line [17:07:42]line [17:07:42]written 0, free lines is 3324 [17:07:42]MH_Cut [17:07:42]Write to MH i2c: D1 01 00 1C 09 01 F7 [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: D1 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: D1 01 00 [17:07:42]MH_I2C_Read... [17:07:42]Read from MH i2c: D1 01 00 1C 09 00 F6 [17:07:42]Write to MH i2c: 01 00 00 1D 09 26 [17:07:42]Write i2c OK [17:07:42]MH_I2C_Read... [17:07:43]OFD Sender: No OFD packet to send [17:07:43]*** Cut start [17:07:43]*** Partial cut [17:07:43]*** CUTSNS_PIN = 1 [17:07:43]*** CUTSNS_PIN = 0 [17:07:43]*** Brake cut motor [17:07:43]Read from MH i2c: 01 [17:07:43]MH_I2C_Read... [17:07:43]*** Stop cut motor [17:07:43]*** Cut end [17:07:43]Read from MH i2c: 01 07 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 FF 0F 3B [17:07:43]process_action close_receipt done [17:07:43]requested_data is exist [17:07:43]produce_requested_data [17:07:43]requested_item fm.sn is exist - process it [17:07:43]wFMCommunicate request_size=4 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 11 00 00 [17:07:43]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:43]Read from MH i2c: E2 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 17 00 [17:07:43]MH_I2C_Read... [17:07:43]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F1 [17:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:07:43]wFMCommunicate OK [17:07:43]requested_item fd.num is exist - process it [17:07:43]SAM_PROTO_GetFieldsCounters [17:07:43]wFMCommunicate request_size=4 [17:07:43]MH_SAM_APDU [17:07:43]CAPDU: 80 13 00 00 [17:07:43]Write to MH i2c: E2 08 00 1F 09 80 13 00 00 00 00 00 00 A4 [17:07:43]Write i2c OK [17:07:43]MH_I2C_Read... [17:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:44]Read from MH i2c: E2 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: E2 62 00 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: E2 62 00 1F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 60 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [17:07:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 60 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:44]wFMCommunicate OK [17:07:44]SAM_PROTO_GetFieldsCounters done [17:07:44]requested_item shift.num is exist - process it [17:07:44]requested_item shift.opened is exist - process it [17:07:44]req_shift_opened [17:07:44]FM_GetShiftState [17:07:44]SAM_PROTO_GetShiftState [17:07:44]wFMCommunicate request_size=4 [17:07:44]MH_SAM_APDU [17:07:44]CAPDU: 80 13 01 00 [17:07:44]Write to MH i2c: E2 08 00 20 09 80 13 01 00 00 00 00 00 A6 [17:07:44]Write i2c OK [17:07:44]MH_I2C_Read... [17:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:44]Read from MH i2c: E2 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: E2 0E 00 [17:07:44]MH_I2C_Read... [17:07:44]Read from MH i2c: E2 0E 00 20 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 82 [17:07:44]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:07:44]wFMCommunicate OK [17:07:44]SAM_PROTO_GetShiftState done [17:07:44]FM_GetShiftState done [17:07:44]req_shift_opened done [17:07:44]requested_item shift.open_date is exist - process it [17:07:44]req_shift_open_date [17:07:44]req_shift_open_date done [17:07:44]produce_requested_data done [17:07:44]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76640,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:07:44]process_action_free close_receipt [17:07:44]json_value_free [17:07:44]json_value_free done [17:07:44]process_json_proto returns [17:07:44]Send response to host [17:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76640,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:07:44]free response buf [17:07:44]execute_script done [17:07:44]execute_script returns [17:07:44]free content buf [17:07:44]Sock 7.Close socket [17:07:44]Sock 7.Thread stoped [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:43]accept exits with 9 [17:09:43]New connection [17:09:43]New thread 3066948964 created [17:09:43]Thread 3066805604 joined [17:09:43]Waiting for new connection... [17:09:43] Sock 9.Parse request [17:09:43]Sock 9.Check first char [17:09:43]Sock 9.First char is OK [17:09:43]request: POST /json_proto HTTP/1.0 [17:09:43]Method: POST [17:09:43]URL: /json_proto [17:09:43]Method is POST - this is cgi request [17:09:43]url: /json_proto [17:09:43]query_string will be loaded in cgi processing [17:09:43]execute_cgi json_proto POST (null) [17:09:43]execute_cgi path=json_proto method=POST [17:09:43]POST find Content-Length [17:09:43]Host: 172.17.39.195:8080 [17:09:43]Content-Length: 868 [17:09:43]Content-Type: application/json [17:09:43] [17:09:43]POST finish read [17:09:43]Found Content-Length = 868 [17:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220768", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:43]execute_script... [17:09: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 : (3)220768", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:43]POST & json_proto [17:09:43]process_json_proto [17:09:43]json parsed OK: [17:09:43]protocol is kg_v1.0 [17:09:43]action value=close_receipt [17:09:43]process_action close_receipt [17:09:43]cmd_close_receipt [17:09:43]MH_GetDate [17:09:43]Write to MH i2c: F0 00 00 21 09 19 [17:09:43]Write i2c OK [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: F0 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: F0 09 00 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: F0 09 00 21 09 00 59 62 74 66 99 81 91 64 C6 [17:09:43]GetLastDocTimeStamp 1718903262 [17:09:43]current date 1718903385 [17:09:43]FM_GetShiftState [17:09:43]SAM_PROTO_GetShiftState [17:09:43]wFMCommunicate request_size=4 [17:09:43]MH_SAM_APDU [17:09:43]CAPDU: 80 13 01 00 [17:09:43]Write to MH i2c: E2 08 00 22 09 80 13 01 00 00 00 00 00 A8 [17:09:43]Write i2c OK [17:09:43]MH_I2C_Read... [17:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:43]Read from MH i2c: E2 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 0E 00 [17:09:43]MH_I2C_Read... [17:09:43]Read from MH i2c: E2 0E 00 22 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 84 [17:09:43]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:09:43]wFMCommunicate OK [17:09:43]SAM_PROTO_GetShiftState done [17:09:43]FM_GetShiftState done [17:09:43]opened in 1718843774 [17:09:43]opened+sec_in_day 1718930174 [17:09:43]quantity*price = 5000 [17:09:43]sum+1 = 5001 [17:09:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 82 20.06.2024 17:09 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76641 ФПД: 77620500300762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170945&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76641&fm=77620500300762&tin=02508201610067®Number=0000000000095696&sum=19000 0 [17:09:44]StoreToDocumentArchive [17:09:44]shift 393 fd 76641 [17:09:44]save to /storage/0393/doc_00076641 [17:09:44]save last doc name /storage/0393/doc_00076641 to /storage/kkm_last_doc_name [17:09:44]save OK [17:09:44]Clear old archive folders... [17:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=372 [17:09:44]tlvbuf is 00E7C060 [17:09:44]SAM_PROTO_ClearQueue [17:09:44]wFMCommunicate request_size=4 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 09 00 00 [17:09:44]Write to MH i2c: E2 08 00 2F 09 80 09 00 00 00 00 00 00 AA [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 2F 09 00 90 00 AC [17:09:44]RAPDU: 90 00 [17:09:44]wFMCommunicate OK [17:09:44]SAM_PROTO_ClearQueue done [17:09:44]KKMCreateOFDPacket [17:09:44]OFDProtocolAddRootSTLVToBuf [17:09:44]FM_MakeSignedData [17:09:44]FM_MakeSignedData [17:09:44]SAM_PROTO_SignData [17:09:44]wFMCommunicate request_size=4 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 0D 01 02 [17:09:44]Write to MH i2c: E2 08 00 30 09 80 0D 01 02 00 00 00 00 B2 [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [17:09:44]RAPDU: 90 00 [17:09:44]wFMCommunicate OK [17:09:44]wFMCommunicate request_size=255 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 [17:09:44]Write to MH i2c: E2 02 01 31 09 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 84 [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [17:09:44]RAPDU: 90 00 [17:09:44]wFMCommunicate OK [17:09:44]wFMCommunicate request_size=131 [17:09:44]MH_SAM_APDU [17:09:44]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 59 62 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2B 01 00 35 04 06 00 46 98 6E 59 03 DA [17:09:44]Write to MH i2c: E2 86 00 32 09 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 59 62 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2B 01 00 35 04 06 00 46 98 6E 59 03 DA 00 00 DB [17:09:44]Write i2c OK [17:09:44]MH_I2C_Read... [17:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:44]Read from MH i2c: E2 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 [17:09:44]MH_I2C_Read... [17:09:44]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [17:09:45]RAPDU: 90 00 [17:09:45]wFMCommunicate OK [17:09:45]wFMCommunicate request_size=4 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 0D 03 02 [17:09:45]Write to MH i2c: E2 08 00 33 09 80 0D 03 02 00 00 00 00 B7 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 0B 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 0B 00 33 09 00 DE 1B D7 C2 68 56 D4 A5 90 00 81 [17:09:45]RAPDU: DE 1B D7 C2 68 56 D4 A5 90 00 [17:09:45]wFMCommunicate OK [17:09:45]SAM_PROTO_SignData done [17:09:45]FM_MakeSignedData done [17:09:45]CreateOFDProtocolMessage [17:09:45]wFMCommunicate request_size=4 [17:09:45]MH_SAM_APDU [17:09:45]CAPDU: 80 11 00 00 [17:09:45]Write to MH i2c: E2 08 00 34 09 80 11 00 00 00 00 00 00 B7 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:45]Read from MH i2c: E2 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 17 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: E2 17 00 34 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 07 [17:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:09:45]wFMCommunicate OK [17:09:45]CreateOFDProtocolMessage done [17:09:45]OFDSenderStorePacket 76641 [17:09:45]StoreOFDPacket docnum=76641 [17:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 88 01 00 00 DA 25 80 01 9F 15 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 59 62 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2B 01 00 35 04 06 00 46 98 6E 59 03 DA DE 1B D7 C2 68 56 D4 A5 [17:09:45]CheckFolder [17:09:45]dirname=/storage/ofd_packets [17:09:45]CheckFolder done [17:09:45]ProducePacketName [17:09:45]name=ofd_packets/00076641 [17:09:45]NVStorageSaveData ofd_packets/00076641 [17:09:45]File name is /storage/ofd_packets/00076641 [17:09:45]Write 422 bytes [17:09:45]NVStorageSaveData done [17:09:45]OFDSenderStorePacket done [17:09:45]KKMCreateOFDPacket done [17:09:45]NVStorageSaveData kkm_last_timestamp [17:09:45]File name is /storage/kkm_last_timestamp [17:09:45]Write 4 bytes [17:09:45]NVStorageSaveData done [17:09:45]ExternCall_PrintAddStr [17:09:45]wPrintStart [17:09:45]Write to MH i2c: 01 00 00 35 09 3E [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 35 09 00 00 00 00 00 FF 0F 53 [17:09:45]RasterBufferAndPrint [17:09:45]line Счет N : (3)220768 [17:09:45]line ИНН: 02508201610067 [17:09:45]line Контрольно-Кассовый Чек [17:09:45]line ПРОДАЖА [17:09:45]line Товар: 4700000160358 [17:09:45]line Вода Легенда 1л [17:09:45]line 1.000 * 50.00 [17:09:45]line = 50.00 [17:09:45]line НДС 12% НСП 1% [17:09:45]line > о реализуемом товаре [17:09:45]line Товар: 48747059 [17:09:45]line Сигареты Winston Legend Blue [17:09:45]line 1.000 * 140.00 [17:09:45]line = 140.00 [17:09:45]line НДС 12% НСП 1% [17:09:45]line > о реализуемом товаре [17:09:45]line ИТОГО: 190.00 [17:09:45]line НСП 1% : 1.68 [17:09:45]line НДС 12% : 20.18 [17:09:45]line Наличными: 190.00 [17:09:45]line Безнал.: 0.00 [17:09:45]line Место: АЗС № 144 "Партнер Нефть" [17:09:45]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:09:45]line СНО: Общий режим [17:09:45]line Чек 82 20.06.2024 17:09 [17:09:45]line Смена: 393 ФФД: 1.0 [17:09:45]line ЗНМ: 0300000170 [17:09:45]line РНМ: 0000000000095696 [17:09:45]line Версия ККМ: 001 [17:09:45]line ФМ: 0000000000875009 [17:09:45]line ФД: 76641 [17:09:45]line ФПД: 77620500300762 [17:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T170945&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76641&fm=77620500300762&tin=02508201610067®Number=0000000000095696&sum=19000 [17:09:45]line 0 [17:09:45]OFD Sender: Processing packet 76641 [packets to send 351, broken 350] [17:09:45]ProducePacketName [17:09:45]name=ofd_packets/00076641 [17:09:45]OFD Sender: To server: pG, [17:09:45]CommunicateWithHost lk.salyk.kg:30040 [17:09:45]ConnectInit lk.salyk.kg [17:09:45]written 0, free lines is 4095 [17:09:45]Connected sock=10 [17:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 88 01 00 00 DA 25 80 01 9F 15 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 59 62 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2B 01 00 35 04 06 00 46 98 6E 59 03 DA DE 1B D7 C2 68 56 D4 A5 [17:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D4 00 47 00 24 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2B 01 00 F4 03 04 00 F9 08 74 66 B6 04 01 00 00 52 FC D0 99 4B 86 B3 2D [17:09:45]CommunicateWithHost err = 0 [17:09:45]CheckOFDResponse [17:09:45]1017 (14) - 77093643461234 [17:09:45]1041 (16) - 0000000000875009 [17:09:45]1040 (4) - 76641 [17:09:45]1012 (4) - 20.06.2024 10:48 [17:09:45]1206 (1) - 0 [17:09:45]OFD Sender: Remove packet 76641 [17:09:45]ProducePacketName [17:09:45]name=ofd_packets/00076641 [17:09:45]NVStorageDeleteData [17:09:45]Write to MH i2c: 01 00 00 64 09 6D [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: 01 07 00 64 09 00 00 00 00 00 87 0C 07 [17:09:45]RasterBufferAndPrint [17:09:45]line [17:09:45]line [17:09:45]line [17:09:45]line [17:09:45]line [17:09:45]written 0, free lines is 3213 [17:09:45]MH_Cut [17:09:45]Write to MH i2c: D1 01 00 6B 09 01 46 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: D1 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: D1 01 00 [17:09:45]MH_I2C_Read... [17:09:45]Read from MH i2c: D1 01 00 6B 09 00 45 [17:09:45]Write to MH i2c: 01 00 00 6C 09 75 [17:09:45]Write i2c OK [17:09:45]MH_I2C_Read... [17:09:46]OFD Sender: No OFD packet to send [17:09:46]*** Cut start [17:09:46]*** Partial cut [17:09:46]*** CUTSNS_PIN = 1 [17:09:46]*** CUTSNS_PIN = 0 [17:09:47]*** Brake cut motor [17:09:47]Read from MH i2c: 01 [17:09:47]MH_I2C_Read... [17:09:47]*** Stop cut motor [17:09:47]*** Cut end [17:09:47]Read from MH i2c: 01 07 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 FF 0F 8A [17:09:47]process_action close_receipt done [17:09:47]requested_data is exist [17:09:47]produce_requested_data [17:09:47]requested_item fm.sn is exist - process it [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 11 00 00 [17:09:47]Write to MH i2c: E2 08 00 6D 09 80 11 00 00 00 00 00 00 F0 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 17 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 17 00 6D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 40 [17:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:09:47]wFMCommunicate OK [17:09:47]requested_item fd.num is exist - process it [17:09:47]SAM_PROTO_GetFieldsCounters [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 13 00 00 [17:09:47]Write to MH i2c: E2 08 00 6E 09 80 13 00 00 00 00 00 00 F3 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 62 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 62 00 6E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 61 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [17:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 61 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:47]wFMCommunicate OK [17:09:47]SAM_PROTO_GetFieldsCounters done [17:09:47]requested_item shift.num is exist - process it [17:09:47]requested_item shift.opened is exist - process it [17:09:47]req_shift_opened [17:09:47]FM_GetShiftState [17:09:47]SAM_PROTO_GetShiftState [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 13 01 00 [17:09:47]Write to MH i2c: E2 08 00 6F 09 80 13 01 00 00 00 00 00 F5 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 0E 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 0E 00 6F 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D1 [17:09:47]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:09:47]wFMCommunicate OK [17:09:47]SAM_PROTO_GetShiftState done [17:09:47]FM_GetShiftState done [17:09:47]req_shift_opened done [17:09:47]requested_item shift.open_date is exist - process it [17:09:47]req_shift_open_date [17:09:47]req_shift_open_date done [17:09:47]produce_requested_data done [17:09:47]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76641,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:09:47]process_action_free close_receipt [17:09:47]json_value_free [17:09:47]json_value_free done [17:09:47]process_json_proto returns [17:09:47]Send response to host [17:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76641,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:09:47]free response buf [17:09:47]execute_script done [17:09:47]execute_script returns [17:09:47]free content buf [17:09:47]Sock 9.Close socket [17:09:47]Sock 9.Thread stoped [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:38]recv_with_timeout no data received [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:06]accept exits with 7 [17:46:06]New connection [17:46:06]New thread 3066805604 created [17:46:06]Thread 3066948964 joined [17:46:06]Waiting for new connection... [17:46:06] Sock 7.Parse request [17:46:06]Sock 7.Check first char [17:46:06]Sock 7.First char is OK [17:46:06]request: POST /json_proto HTTP/1.0 [17:46:06]Method: POST [17:46:06]URL: /json_proto [17:46:06]Method is POST - this is cgi request [17:46:06]url: /json_proto [17:46:06]query_string will be loaded in cgi processing [17:46:06]execute_cgi json_proto POST (null) [17:46:06]execute_cgi path=json_proto method=POST [17:46:06]POST find Content-Length [17:46:06]Host: 172.17.39.195:8080 [17:46:06]Content-Length: 632 [17:46:06]Content-Type: application/json [17:46:06] [17:46:06]POST finish read [17:46:06]Found Content-Length = 632 [17:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220769", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:06]execute_script... [17:46: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 : (3)220769", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:06]POST & json_proto [17:46:06]process_json_proto [17:46:06]json parsed OK: [17:46:06]protocol is kg_v1.0 [17:46:06]action value=close_receipt [17:46:06]process_action close_receipt [17:46:06]cmd_close_receipt [17:46:06]MH_GetDate [17:46:06]Write to MH i2c: F0 00 00 70 09 68 [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: F0 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: F0 09 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: F0 09 00 70 09 00 E0 6A 74 66 99 81 91 64 A4 [17:46:06]GetLastDocTimeStamp 1718903385 [17:46:06]current date 1718905568 [17:46:06]FM_GetShiftState [17:46:06]SAM_PROTO_GetShiftState [17:46:06]wFMCommunicate request_size=4 [17:46:06]MH_SAM_APDU [17:46:06]CAPDU: 80 13 01 00 [17:46:06]Write to MH i2c: E2 08 00 71 09 80 13 01 00 00 00 00 00 F7 [17:46:06]Write i2c OK [17:46:06]MH_I2C_Read... [17:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:06]Read from MH i2c: E2 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 0E 00 [17:46:06]MH_I2C_Read... [17:46:06]Read from MH i2c: E2 0E 00 71 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D3 [17:46:06]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:46:06]wFMCommunicate OK [17:46:06]SAM_PROTO_GetShiftState done [17:46:06]FM_GetShiftState done [17:46:06]opened in 1718843774 [17:46:06]opened+sec_in_day 1718930174 [17:46:06]quantity*price = 8000 [17:46:06]sum+1 = 8001 [17:46:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 83 20.06.2024 17:46 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76642 ФПД: 102570031378377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174608&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76642&fm=102570031378377&tin=02508201610067®Number=0000000000095696&sum=8000 0 [17:46:07]StoreToDocumentArchive [17:46:07]shift 393 fd 76642 [17:46:07]save to /storage/0393/doc_00076642 [17:46:07]save last doc name /storage/0393/doc_00076642 to /storage/kkm_last_doc_name [17:46:07]save OK [17:46:07]Clear old archive folders... [17:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:46:07]tlvbuf is 00EAEA10 [17:46:07]SAM_PROTO_ClearQueue [17:46:07]wFMCommunicate request_size=4 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 09 00 00 [17:46:07]Write to MH i2c: E2 08 00 7E 09 80 09 00 00 00 00 00 00 F9 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [17:46:07]RAPDU: 90 00 [17:46:07]wFMCommunicate OK [17:46:07]SAM_PROTO_ClearQueue done [17:46:07]KKMCreateOFDPacket [17:46:07]OFDProtocolAddRootSTLVToBuf [17:46:07]FM_MakeSignedData [17:46:07]FM_MakeSignedData [17:46:07]SAM_PROTO_SignData [17:46:07]wFMCommunicate request_size=4 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 0D 01 02 [17:46:07]Write to MH i2c: E2 08 00 7F 09 80 0D 01 02 00 00 00 00 01 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [17:46:07]RAPDU: 90 00 [17:46:07]wFMCommunicate OK [17:46:07]wFMCommunicate request_size=255 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 E0 6A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:46:07]Write to MH i2c: E2 02 01 80 09 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 E0 6A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 BC [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [17:46:07]RAPDU: 90 00 [17:46:07]wFMCommunicate OK [17:46:07]wFMCommunicate request_size=30 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 39 10 04 04 00 62 2B 01 00 35 04 06 00 5D 49 72 48 EF C9 [17:46:07]Write to MH i2c: E2 21 00 81 09 80 0D 02 02 19 00 30 38 37 35 30 30 39 10 04 04 00 62 2B 01 00 35 04 06 00 5D 49 72 48 EF C9 00 00 A0 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [17:46:07]RAPDU: 90 00 [17:46:07]wFMCommunicate OK [17:46:07]wFMCommunicate request_size=4 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 0D 03 02 [17:46:07]Write to MH i2c: E2 08 00 82 09 80 0D 03 02 00 00 00 00 06 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 0B 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 0B 00 82 09 00 77 9B 9B BE 13 E3 86 74 90 00 62 [17:46:07]RAPDU: 77 9B 9B BE 13 E3 86 74 90 00 [17:46:07]wFMCommunicate OK [17:46:07]SAM_PROTO_SignData done [17:46:07]FM_MakeSignedData done [17:46:07]CreateOFDProtocolMessage [17:46:07]wFMCommunicate request_size=4 [17:46:07]MH_SAM_APDU [17:46:07]CAPDU: 80 11 00 00 [17:46:07]Write to MH i2c: E2 08 00 83 09 80 11 00 00 00 00 00 00 06 [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:07]Read from MH i2c: E2 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 17 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: E2 17 00 83 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 56 [17:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:46:07]wFMCommunicate OK [17:46:07]CreateOFDProtocolMessage done [17:46:07]OFDSenderStorePacket 76642 [17:46:07]StoreOFDPacket docnum=76642 [17:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 C0 86 1B 01 9D 3D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 E0 6A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 62 2B 01 00 35 04 06 00 5D 49 72 48 EF C9 77 9B 9B BE 13 E3 86 74 [17:46:07]CheckFolder [17:46:07]dirname=/storage/ofd_packets [17:46:07]CheckFolder done [17:46:07]ProducePacketName [17:46:07]name=ofd_packets/00076642 [17:46:07]NVStorageSaveData ofd_packets/00076642 [17:46:07]File name is /storage/ofd_packets/00076642 [17:46:07]Write 321 bytes [17:46:07]NVStorageSaveData done [17:46:07]OFDSenderStorePacket done [17:46:07]KKMCreateOFDPacket done [17:46:07]NVStorageSaveData kkm_last_timestamp [17:46:07]File name is /storage/kkm_last_timestamp [17:46:07]Write 4 bytes [17:46:07]NVStorageSaveData done [17:46:07]ExternCall_PrintAddStr [17:46:07]wPrintStart [17:46:07]Write to MH i2c: 01 00 00 84 09 8D [17:46:07]Write i2c OK [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: 01 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: 01 07 00 [17:46:07]MH_I2C_Read... [17:46:07]Read from MH i2c: 01 07 00 84 09 00 00 00 00 00 FF 0F A2 [17:46:07]RasterBufferAndPrint [17:46:07]line Счет N : (3)220769 [17:46:07]line ИНН: 02508201610067 [17:46:07]line Контрольно-Кассовый Чек [17:46:07]line ПРОДАЖА [17:46:07]line Товар: 4700000160211 [17:46:07]line Вода Легенда 0,5л [17:46:07]line 2.000 * 40.00 [17:46:07]line = 80.00 [17:46:07]line НДС 12% НСП 1% [17:46:07]line > о реализуемом товаре [17:46:07]line ИТОГО: 80.00 [17:46:07]line НСП 1% : 0.71 [17:46:07]line НДС 12% : 8.50 [17:46:07]line Наличными: 80.00 [17:46:07]line Безнал.: 0.00 [17:46:07]line Место: АЗС № 144 "Партнер Нефть" [17:46:07]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:46:07]line СНО: Общий режим [17:46:07]line Чек 83 20.06.2024 17:46 [17:46:07]line Смена: 393 ФФД: 1.0 [17:46:07]line ЗНМ: 0300000170 [17:46:07]line РНМ: 0000000000095696 [17:46:07]line Версия ККМ: 001 [17:46:07]line ФМ: 0000000000875009 [17:46:07]line ФД: 76642 [17:46:07]line ФПД: 102570031378377 [17:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174608&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76642&fm=102570031378377&tin=02508201610067®Number=0000000000095696&sum=8000 [17:46:08]OFD Sender: Processing packet 76642 [packets to send 351, broken 350] [17:46:08]ProducePacketName [17:46:08]name=ofd_packets/00076642 [17:46:08]OFD Sender: To server: pG, [17:46:08]CommunicateWithHost lk.salyk.kg:30040 [17:46:08]ConnectInit lk.salyk.kg [17:46:08]line 0 [17:46:08]written 0, free lines is 4095 [17:46:08]Connected sock=10 [17:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 C0 86 1B 01 9D 3D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 E0 6A 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 62 2B 01 00 35 04 06 00 5D 49 72 48 EF C9 77 9B 9B BE 13 E3 86 74 [17:46:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 32 49 47 00 0A EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 62 2B 01 00 F4 03 04 00 80 11 74 66 B6 04 01 00 00 00 18 40 58 BC 6A FC 6D [17:46:08]CommunicateWithHost err = 0 [17:46:08]CheckOFDResponse [17:46:08]1017 (14) - 77093643461234 [17:46:08]1041 (16) - 0000000000875009 [17:46:08]1040 (4) - 76642 [17:46:08]1012 (4) - 20.06.2024 11:24 [17:46:08]1206 (1) - 0 [17:46:08]OFD Sender: Remove packet 76642 [17:46:08]ProducePacketName [17:46:08]name=ofd_packets/00076642 [17:46:08]NVStorageDeleteData [17:46:08]Write to MH i2c: 01 00 00 AC 09 B5 [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: 01 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: 01 07 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 03 0D CC [17:46:08]RasterBufferAndPrint [17:46:08]line [17:46:08]line [17:46:08]line [17:46:08]line [17:46:08]line [17:46:08]written 0, free lines is 3337 [17:46:08]MH_Cut [17:46:08]Write to MH i2c: D1 01 00 B3 09 01 8E [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: D1 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: D1 01 00 [17:46:08]MH_I2C_Read... [17:46:08]Read from MH i2c: D1 01 00 B3 09 00 8D [17:46:08]Write to MH i2c: 01 00 00 B4 09 BD [17:46:08]Write i2c OK [17:46:08]MH_I2C_Read... [17:46:08]OFD Sender: No OFD packet to send [17:46:09]*** Cut start [17:46:09]*** Partial cut [17:46:09]*** CUTSNS_PIN = 1 [17:46:09]*** CUTSNS_PIN = 0 [17:46:09]*** Brake cut motor [17:46:09]Read from MH i2c: 01 [17:46:09]MH_I2C_Read... [17:46:09]*** Stop cut motor [17:46:09]*** Cut end [17:46:09]Read from MH i2c: 01 07 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 FF 0F D2 [17:46:09]process_action close_receipt done [17:46:09]requested_data is exist [17:46:09]produce_requested_data [17:46:09]requested_item fm.sn is exist - process it [17:46:09]wFMCommunicate request_size=4 [17:46:09]MH_SAM_APDU [17:46:09]CAPDU: 80 11 00 00 [17:46:09]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:09]Read from MH i2c: E2 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 17 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 88 [17:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:46:09]wFMCommunicate OK [17:46:09]requested_item fd.num is exist - process it [17:46:09]SAM_PROTO_GetFieldsCounters [17:46:09]wFMCommunicate request_size=4 [17:46:09]MH_SAM_APDU [17:46:09]CAPDU: 80 13 00 00 [17:46:09]Write to MH i2c: E2 08 00 B6 09 80 13 00 00 00 00 00 00 3B [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 62 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 62 00 B6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 62 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [17:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 62 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:10]wFMCommunicate OK [17:46:10]SAM_PROTO_GetFieldsCounters done [17:46:10]requested_item shift.num is exist - process it [17:46:10]requested_item shift.opened is exist - process it [17:46:10]req_shift_opened [17:46:10]FM_GetShiftState [17:46:10]SAM_PROTO_GetShiftState [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 13 01 00 [17:46:10]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 0E 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 19 [17:46:10]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:46:10]wFMCommunicate OK [17:46:10]SAM_PROTO_GetShiftState done [17:46:10]FM_GetShiftState done [17:46:10]req_shift_opened done [17:46:10]requested_item shift.open_date is exist - process it [17:46:10]req_shift_open_date [17:46:10]req_shift_open_date done [17:46:10]produce_requested_data done [17:46:10]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76642,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:46:10]process_action_free close_receipt [17:46:10]json_value_free [17:46:10]json_value_free done [17:46:10]process_json_proto returns [17:46:10]Send response to host [17:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76642,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:46:10]free response buf [17:46:10]execute_script done [17:46:10]execute_script returns [17:46:10]free content buf [17:46:10]Sock 7.Close socket [17:46:10]Sock 7.Thread stoped [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:25]accept exits with 9 [17:47:25]New connection [17:47:25]New thread 3066948964 created [17:47:25]Thread 3066805604 joined [17:47:25]Waiting for new connection... [17:47:25] Sock 9.Parse request [17:47:25]Sock 9.Check first char [17:47:25]Sock 9.First char is OK [17:47:25]request: POST /json_proto HTTP/1.0 [17:47:25]Method: POST [17:47:25]URL: /json_proto [17:47:25]Method is POST - this is cgi request [17:47:25]url: /json_proto [17:47:25]query_string will be loaded in cgi processing [17:47:25]execute_cgi json_proto POST (null) [17:47:25]execute_cgi path=json_proto method=POST [17:47:25]POST find Content-Length [17:47:25]Host: 172.17.39.195:8080 [17:47:25]Content-Length: 621 [17:47:25]Content-Type: application/json [17:47:25] [17:47:25]POST finish read [17:47:25]Found Content-Length = 621 [17:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220770", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:25]execute_script... [17:47: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 : (3)220770", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:25]POST & json_proto [17:47:25]process_json_proto [17:47:25]json parsed OK: [17:47:25]protocol is kg_v1.0 [17:47:25]action value=close_receipt [17:47:25]process_action close_receipt [17:47:25]cmd_close_receipt [17:47:25]MH_GetDate [17:47:25]Write to MH i2c: F0 00 00 B8 09 B0 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: F0 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: F0 09 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: F0 09 00 B8 09 00 2F 6B 74 66 99 81 91 64 3C [17:47:25]GetLastDocTimeStamp 1718905568 [17:47:25]current date 1718905647 [17:47:25]FM_GetShiftState [17:47:25]SAM_PROTO_GetShiftState [17:47:25]wFMCommunicate request_size=4 [17:47:25]MH_SAM_APDU [17:47:25]CAPDU: 80 13 01 00 [17:47:25]Write to MH i2c: E2 08 00 B9 09 80 13 01 00 00 00 00 00 3F [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:25]Read from MH i2c: E2 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 0E 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 0E 00 B9 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 1B [17:47:25]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:47:25]wFMCommunicate OK [17:47:25]SAM_PROTO_GetShiftState done [17:47:25]FM_GetShiftState done [17:47:25]opened in 1718843774 [17:47:25]opened+sec_in_day 1718930174 [17:47:25]quantity*price = 13000 [17:47:25]sum+1 = 13001 [17:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 84 20.06.2024 17:47 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76643 ФПД: 10771901239969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174727&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76643&fm=10771901239969&tin=02508201610067®Number=0000000000095696&sum=13000 0 [17:47:26]StoreToDocumentArchive [17:47:26]shift 393 fd 76643 [17:47:26]save to /storage/0393/doc_00076643 [17:47:26]save last doc name /storage/0393/doc_00076643 to /storage/kkm_last_doc_name [17:47:26]save OK [17:47:26]Clear old archive folders... [17:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:47:26]tlvbuf is 00E93D20 [17:47:26]SAM_PROTO_ClearQueue [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 09 00 00 [17:47:26]Write to MH i2c: E2 08 00 C6 09 80 09 00 00 00 00 00 00 41 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:26]Read from MH i2c: E2 03 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [17:47:26]RAPDU: 90 00 [17:47:26]wFMCommunicate OK [17:47:26]SAM_PROTO_ClearQueue done [17:47:26]KKMCreateOFDPacket [17:47:26]OFDProtocolAddRootSTLVToBuf [17:47:26]FM_MakeSignedData [17:47:26]FM_MakeSignedData [17:47:26]SAM_PROTO_SignData [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 0D 01 02 [17:47:26]Write to MH i2c: E2 08 00 C7 09 80 0D 01 02 00 00 00 00 49 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:26] [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 03 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [17:47:26]RAPDU: 90 00 [17:47:26]wFMCommunicate OK [17:47:26]wFMCommunicate request_size=255 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 2F 6B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [17:47:26]Write to MH i2c: E2 02 01 C8 09 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 2F 6B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 9F [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 03 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [17:47:26]RAPDU: 90 00 [17:47:26]wFMCommunicate OK [17:47:26]wFMCommunicate request_size=32 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2B 01 00 35 04 06 00 09 CC 07 58 D2 A1 [17:47:26]Write to MH i2c: E2 23 00 C9 09 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2B 01 00 35 04 06 00 09 CC 07 58 D2 A1 00 00 DC [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 03 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [17:47:26]RAPDU: 90 00 [17:47:26]wFMCommunicate OK [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 0D 03 02 [17:47:26]Write to MH i2c: E2 08 00 CA 09 80 0D 03 02 00 00 00 00 4E [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 0B 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 0B 00 CA 09 00 D4 B4 9C 5E E2 76 F7 B2 90 00 D2 [17:47:26]RAPDU: D4 B4 9C 5E E2 76 F7 B2 90 00 [17:47:26]wFMCommunicate OK [17:47:26]SAM_PROTO_SignData done [17:47:26]FM_MakeSignedData done [17:47:26]CreateOFDProtocolMessage [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 11 00 00 [17:47:26]Write to MH i2c: E2 08 00 CB 09 80 11 00 00 00 00 00 00 4E [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 17 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 17 00 CB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9E [17:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:47:26]wFMCommunicate OK [17:47:26]CreateOFDProtocolMessage done [17:47:26]OFDSenderStorePacket 76643 [17:47:26]StoreOFDPacket docnum=76643 [17:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 E5 F0 1D 01 95 33 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 2F 6B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2B 01 00 35 04 06 00 09 CC 07 58 D2 A1 D4 B4 9C 5E E2 76 F7 B2 [17:47:26]CheckFolder [17:47:26]dirname=/storage/ofd_packets [17:47:26]CheckFolder done [17:47:26]ProducePacketName [17:47:26]name=ofd_packets/00076643 [17:47:26]NVStorageSaveData ofd_packets/00076643 [17:47:26]File name is /storage/ofd_packets/00076643 [17:47:26]Write 323 bytes [17:47:26]NVStorageSaveData done [17:47:26]OFDSenderStorePacket done [17:47:26]KKMCreateOFDPacket done [17:47:26]NVStorageSaveData kkm_last_timestamp [17:47:26]File name is /storage/kkm_last_timestamp [17:47:26]Write 4 bytes [17:47:26]NVStorageSaveData done [17:47:26]ExternCall_PrintAddStr [17:47:26]wPrintStart [17:47:26]Write to MH i2c: 01 00 00 CC 09 D5 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: 01 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: 01 07 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: 01 07 00 CC 09 00 00 00 00 00 FF 0F EA [17:47:26]RasterBufferAndPrint [17:47:26]line Счет N : (3)220770 [17:47:26]line ИНН: 02508201610067 [17:47:26]line Контрольно-Кассовый Чек [17:47:26]line ПРОДАЖА [17:47:26]line Товар: 4780014240406 [17:47:26]line Сигареты Sovereign Blue [17:47:26]line 1.000 * 130.00 [17:47:26]line = 130.00 [17:47:26]line НДС 12% НСП 1% [17:47:26]line > о реализуемом товаре [17:47:26]line ИТОГО: 130.00 [17:47:26]line НСП 1% : 1.15 [17:47:26]line НДС 12% : 13.80 [17:47:26]line Наличными: 130.00 [17:47:26]line Безнал.: 0.00 [17:47:26]line Место: АЗС № 144 "Партнер Нефть" [17:47:26]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:47:26]line СНО: Общий режим [17:47:26]line Чек 84 20.06.2024 17:47 [17:47:26]line Смена: 393 ФФД: 1.0 [17:47:26]line ЗНМ: 0300000170 [17:47:26]line РНМ: 0000000000095696 [17:47:26]line Версия ККМ: 001 [17:47:26]line ФМ: 0000000000875009 [17:47:26]line ФД: 76643 [17:47:26]line ФПД: 10771901239969 [17:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174727&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76643&fm=10771901239969&tin=02508201610067®Number=0000000000095696&sum=13000 [17:47:27]line 0 [17:47:27]OFD Sender: Processing packet 76643 [packets to send 351, broken 350] [17:47:27]ProducePacketName [17:47:27]name=ofd_packets/00076643 [17:47:27]OFD Sender: To server: pG, [17:47:27]CommunicateWithHost lk.salyk.kg:30040 [17:47:27]ConnectInit lk.salyk.kg [17:47:27]written 0, free lines is 4095 [17:47:27]Connected sock=10 [17:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 E5 F0 1D 01 95 33 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 2F 6B 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2B 01 00 35 04 06 00 09 CC 07 58 D2 A1 D4 B4 9C 5E E2 76 F7 B2 [17:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 95 A5 47 00 61 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2B 01 00 F4 03 04 00 CF 11 74 66 B6 04 01 00 00 71 71 91 29 C4 9A AF 2E [17:47:27]CommunicateWithHost err = 0 [17:47:27]CheckOFDResponse [17:47:27]1017 (14) - 77093643461234 [17:47:27]1041 (16) - 0000000000875009 [17:47:27]1040 (4) - 76643 [17:47:27]1012 (4) - 20.06.2024 11:26 [17:47:27]1206 (1) - 0 [17:47:27]OFD Sender: Remove packet 76643 [17:47:27]ProducePacketName [17:47:27]name=ofd_packets/00076643 [17:47:27]NVStorageDeleteData [17:47:27]Write to MH i2c: 01 00 00 F4 09 FD [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: 01 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: 01 07 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: 01 07 00 F4 09 00 00 00 00 00 F3 0C 03 [17:47:27]RasterBufferAndPrint [17:47:27]line [17:47:27]line [17:47:27]line [17:47:27]line [17:47:27]line [17:47:27]written 0, free lines is 3323 [17:47:27]MH_Cut [17:47:27]Write to MH i2c: D1 01 00 FB 09 01 D6 [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: D1 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: D1 01 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: D1 01 00 FB 09 00 D5 [17:47:27]Write to MH i2c: 01 00 00 FC 09 05 [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]OFD Sender: No OFD packet to send [17:47:28]*** Cut start [17:47:28]*** Partial cut [17:47:28]*** CUTSNS_PIN = 1 [17:47:28]*** CUTSNS_PIN = 0 [17:47:28]*** Brake cut motor [17:47:28]Read from MH i2c: 01 [17:47:28]MH_I2C_Read... [17:47:28]*** Stop cut motor [17:47:28]*** Cut end [17:47:28]Read from MH i2c: 01 07 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: 01 07 00 FC 09 00 00 00 00 00 FF 0F 1A [17:47:28]process_action close_receipt done [17:47:28]requested_data is exist [17:47:28]produce_requested_data [17:47:28]requested_item fm.sn is exist - process it [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 11 00 00 [17:47:28]Write to MH i2c: E2 08 00 FD 09 80 11 00 00 00 00 00 00 80 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 17 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 17 00 FD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D0 [17:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:47:28]wFMCommunicate OK [17:47:28]requested_item fd.num is exist - process it [17:47:28]SAM_PROTO_GetFieldsCounters [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 13 00 00 [17:47:28]Write to MH i2c: E2 08 00 FE 09 80 13 00 00 00 00 00 00 83 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:29]Read from MH i2c: E2 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 62 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 62 00 FE 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [17:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:29]wFMCommunicate OK [17:47:29]SAM_PROTO_GetFieldsCounters done [17:47:29]requested_item shift.num is exist - process it [17:47:29]requested_item shift.opened is exist - process it [17:47:29]req_shift_opened [17:47:29]FM_GetShiftState [17:47:29]SAM_PROTO_GetShiftState [17:47:29]wFMCommunicate request_size=4 [17:47:29]MH_SAM_APDU [17:47:29]CAPDU: 80 13 01 00 [17:47:29]Write to MH i2c: E2 08 00 FF 09 80 13 01 00 00 00 00 00 85 [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:29]Read from MH i2c: E2 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 0E 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 0E 00 FF 09 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 61 [17:47:29]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:47:29]wFMCommunicate OK [17:47:29]SAM_PROTO_GetShiftState done [17:47:29]FM_GetShiftState done [17:47:29]req_shift_opened done [17:47:29]requested_item shift.open_date is exist - process it [17:47:29]req_shift_open_date [17:47:29]req_shift_open_date done [17:47:29]produce_requested_data done [17:47:29]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76643,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:47:29]process_action_free close_receipt [17:47:29]json_value_free [17:47:29]json_value_free done [17:47:29]process_json_proto returns [17:47:29]Send response to host [17:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76643,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:47:29]free response buf [17:47:29]execute_script done [17:47:29]execute_script returns [17:47:29]free content buf [17:47:29]Sock 9.Close socket [17:47:29]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:29]accept exits with 7 [17:52:29]New connection [17:52:29]New thread 3066805604 created [17:52:29]Thread 3066948964 joined [17:52:29]Waiting for new connection... [17:52:29] Sock 7.Parse request [17:52:29]Sock 7.Check first char [17:52:29]Sock 7.First char is OK [17:52:29]request: POST /json_proto HTTP/1.0 [17:52:29]Method: POST [17:52:29]URL: /json_proto [17:52:29]Method is POST - this is cgi request [17:52:29]url: /json_proto [17:52:29]query_string will be loaded in cgi processing [17:52:29]execute_cgi json_proto POST (null) [17:52:29]execute_cgi path=json_proto method=POST [17:52:29]POST find Content-Length [17:52:29]Host: 172.17.39.195:8080 [17:52:29]Content-Length: 684 [17:52:29]Content-Type: application/json [17:52:29] [17:52:29]POST finish read [17:52:29]Found Content-Length = 684 [17:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220771", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:29]execute_script... [17:52: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 : (3)220771", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:29]POST & json_proto [17:52:29]process_json_proto [17:52:29]json parsed OK: [17:52:29]protocol is kg_v1.0 [17:52:29]action value=close_receipt [17:52:29]process_action close_receipt [17:52:29]cmd_close_receipt [17:52:29]MH_GetDate [17:52:29]Write to MH i2c: F0 00 00 00 0A F9 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: F0 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: F0 09 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: F0 09 00 00 0A 00 5F 6C 74 66 99 81 91 64 B6 [17:52:29]GetLastDocTimeStamp 1718905647 [17:52:29]current date 1718905951 [17:52:29]FM_GetShiftState [17:52:29]SAM_PROTO_GetShiftState [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 13 01 00 [17:52:29]Write to MH i2c: E2 08 00 01 0A 80 13 01 00 00 00 00 00 88 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0E 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0E 00 01 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 64 [17:52:29]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_GetShiftState done [17:52:29]FM_GetShiftState done [17:52:29]opened in 1718843774 [17:52:29]opened+sec_in_day 1718930174 [17:52:29]quantity*price = 7500 [17:52:29]sum+1 = 7501 [17:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 85 20.06.2024 17:52 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76644 ФПД: 115589456261952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175231&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76644&fm=115589456261952&tin=02508201610067®Number=0000000000095696&sum=7500 0 [17:52:30]StoreToDocumentArchive [17:52:30]shift 393 fd 76644 [17:52:30]save to /storage/0393/doc_00076644 [17:52:30]save last doc name /storage/0393/doc_00076644 to /storage/kkm_last_doc_name [17:52:30]save OK [17:52:30]Clear old archive folders... [17:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=295 [17:52:30]tlvbuf is 00E7C0D0 [17:52:30]SAM_PROTO_ClearQueue [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 09 00 00 [17:52:30]Write to MH i2c: E2 08 00 0E 0A 80 09 00 00 00 00 00 00 8A [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]SAM_PROTO_ClearQueue done [17:52:30]KKMCreateOFDPacket [17:52:30]OFDProtocolAddRootSTLVToBuf [17:52:30]FM_MakeSignedData [17:52:30]FM_MakeSignedData [17:52:30]SAM_PROTO_SignData [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 0D 01 02 [17:52:30]Write to MH i2c: E2 08 00 0F 0A 80 0D 01 02 00 00 00 00 92 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]wFMCommunicate request_size=255 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 5F 6C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [17:52:30]Write to MH i2c: E2 02 01 10 0A 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 5F 6C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 5B [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]wFMCommunicate request_size=54 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2B 01 00 35 04 06 00 69 20 C4 7A F3 40 [17:52:30]Write to MH i2c: E2 39 00 11 0A 80 0D 02 02 31 00 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2B 01 00 35 04 06 00 69 20 C4 7A F3 40 00 00 4D [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 0D 03 02 [17:52:30]Write to MH i2c: E2 08 00 12 0A 80 0D 03 02 00 00 00 00 97 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 0B 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 0B 00 12 0A 00 F3 DF 7A 57 D9 A4 4C 04 90 00 08 [17:52:30]RAPDU: F3 DF 7A 57 D9 A4 4C 04 90 00 [17:52:30]wFMCommunicate OK [17:52:30]SAM_PROTO_SignData done [17:52:30]FM_MakeSignedData done [17:52:30]CreateOFDProtocolMessage [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 11 00 00 [17:52:30]Write to MH i2c: E2 08 00 13 0A 80 11 00 00 00 00 00 00 97 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 17 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 17 00 13 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E7 [17:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:52:30]wFMCommunicate OK [17:52:30]CreateOFDProtocolMessage done [17:52:30]OFDSenderStorePacket 76644 [17:52:30]StoreOFDPacket docnum=76644 [17:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3B 01 00 00 52 6A 33 01 85 78 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 5F 6C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2B 01 00 35 04 06 00 69 20 C4 7A F3 40 F3 DF 7A 57 D9 A4 4C 04 [17:52:30]CheckFolder [17:52:30]dirname=/storage/ofd_packets [17:52:30]CheckFolder done [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00076644 [17:52:30]NVStorageSaveData ofd_packets/00076644 [17:52:30]File name is /storage/ofd_packets/00076644 [17:52:30]Write 345 bytes [17:52:30]NVStorageSaveData done [17:52:30]OFDSenderStorePacket done [17:52:30]KKMCreateOFDPacket done [17:52:30]NVStorageSaveData kkm_last_timestamp [17:52:30]File name is /storage/kkm_last_timestamp [17:52:30]Write 4 bytes [17:52:30]NVStorageSaveData done [17:52:30]ExternCall_PrintAddStr [17:52:30]wPrintStart [17:52:30]Write to MH i2c: 01 00 00 14 0A 1E [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 14 0A 00 00 00 00 00 FF 0F 33 [17:52:30]RasterBufferAndPrint [17:52:30]line Счет N : (3)220771 [17:52:30]line ИНН: 02508201610067 [17:52:30]line Контрольно-Кассовый Чек [17:52:30]line ПРОДАЖА [17:52:30]line Товар: 5449000027450 [17:52:30]line Напиток FuzeTea чай манго,ром 0,5л [17:52:30]line 1.000 * 75.00 [17:52:30]line = 75.00 [17:52:30]line НДС 12% НСП 1% [17:52:30]line > о реализуемом товаре [17:52:30]line ИТОГО: 75.00 [17:52:30]line НСП 1% : 0.66 [17:52:30]line НДС 12% : 7.96 [17:52:30]line Наличными: 75.00 [17:52:30]line Безнал.: 0.00 [17:52:30]line Место: АЗС № 144 "Партнер Нефть" [17:52:30]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:52:30]line СНО: Общий режим [17:52:30]line Чек 85 20.06.2024 17:52 [17:52:30]line Смена: 393 ФФД: 1.0 [17:52:30]line ЗНМ: 0300000170 [17:52:30]line РНМ: 0000000000095696 [17:52:30]line Версия ККМ: 001 [17:52:30]line ФМ: 0000000000875009 [17:52:30]line ФД: 76644 [17:52:30]line ФПД: 115589456261952 [17:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175231&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76644&fm=115589456261952&tin=02508201610067®Number=0000000000095696&sum=7500 [17:52:30]line 0 [17:52:30]written 0, free lines is 4095 [17:52:30]OFD Sender: Processing packet 76644 [packets to send 351, broken 350] [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00076644 [17:52:30]OFD Sender: To server: pG, [17:52:30]CommunicateWithHost lk.salyk.kg:30040 [17:52:30]ConnectInit lk.salyk.kg [17:52:31]Connected sock=10 [17:52:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3B 01 00 00 52 6A 33 01 85 78 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 5F 6C 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2B 01 00 35 04 06 00 69 20 C4 7A F3 40 F3 DF 7A 57 D9 A4 4C 04 [17:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 0A 71 47 00 17 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2B 01 00 F4 03 04 00 FF 12 74 66 B6 04 01 00 00 46 48 CE E0 CA C7 9E C2 [17:52:31]CommunicateWithHost err = 0 [17:52:31]CheckOFDResponse [17:52:31]1017 (14) - 77093643461234 [17:52:31]1041 (16) - 0000000000875009 [17:52:31]1040 (4) - 76644 [17:52:31]1012 (4) - 20.06.2024 11:31 [17:52:31]1206 (1) - 0 [17:52:31]OFD Sender: Remove packet 76644 [17:52:31]ProducePacketName [17:52:31]name=ofd_packets/00076644 [17:52:31]NVStorageDeleteData [17:52:31]Write to MH i2c: 01 00 00 3D 0A 47 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 07 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 E2 0C 3C [17:52:31]RasterBufferAndPrint [17:52:31]line [17:52:31]line [17:52:31]line [17:52:31]line [17:52:31]line [17:52:31]written 0, free lines is 3307 [17:52:31]MH_Cut [17:52:31]Write to MH i2c: D1 01 00 44 0A 01 20 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: D1 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: D1 01 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: D1 01 00 44 0A 00 1F [17:52:31]Write to MH i2c: 01 00 00 45 0A 4F [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]OFD Sender: No OFD packet to send [17:52:31]*** Cut start [17:52:31]*** Partial cut [17:52:31]*** CUTSNS_PIN = 1 [17:52:32]*** CUTSNS_PIN = 0 [17:52:32]*** Brake cut motor [17:52:32]Read from MH i2c: 01 [17:52:32]MH_I2C_Read... [17:52:32]*** Stop cut motor [17:52:32]*** Cut end [17:52:32]Read from MH i2c: 01 07 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 07 00 45 0A 00 00 00 00 00 FF 0F 64 [17:52:32]process_action close_receipt done [17:52:32]requested_data is exist [17:52:32]produce_requested_data [17:52:32]requested_item fm.sn is exist - process it [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 11 00 00 [17:52:32]Write to MH i2c: E2 08 00 46 0A 80 11 00 00 00 00 00 00 CA [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 17 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 17 00 46 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1A [17:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:52:32]wFMCommunicate OK [17:52:32]requested_item fd.num is exist - process it [17:52:32]SAM_PROTO_GetFieldsCounters [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 13 00 00 [17:52:32]Write to MH i2c: E2 08 00 47 0A 80 13 00 00 00 00 00 00 CD [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 62 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 62 00 47 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 64 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [17:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 64 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:32]wFMCommunicate OK [17:52:32]SAM_PROTO_GetFieldsCounters done [17:52:32]requested_item shift.num is exist - process it [17:52:32]requested_item shift.opened is exist - process it [17:52:32]req_shift_opened [17:52:32]FM_GetShiftState [17:52:32]SAM_PROTO_GetShiftState [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 13 01 00 [17:52:32]Write to MH i2c: E2 08 00 48 0A 80 13 01 00 00 00 00 00 CF [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 48 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 AB [17:52:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:52:32]wFMCommunicate OK [17:52:32]SAM_PROTO_GetShiftState done [17:52:32]FM_GetShiftState done [17:52:32]req_shift_opened done [17:52:32]requested_item shift.open_date is exist - process it [17:52:32]req_shift_open_date [17:52:32]req_shift_open_date done [17:52:32]produce_requested_data done [17:52:32]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76644,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:52:32]process_action_free close_receipt [17:52:32]json_value_free [17:52:32]json_value_free done [17:52:32]process_json_proto returns [17:52:32]Send response to host [17:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76644,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:52:32]free response buf [17:52:32]execute_script done [17:52:32]execute_script returns [17:52:32]free content buf [17:52:32]Sock 7.Close socket [17:52:32]Sock 7.Thread stoped [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55: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]accept exits with 9 [17:57:32]New connection [17:57:32]New thread 3066948964 created [17:57:32]Thread 3066805604 joined [17:57:32]Waiting for new connection... [17:57:32] Sock 9.Parse request [17:57:32]Sock 9.Check first char [17:57:32]Sock 9.First char is OK [17:57:32]request: POST /json_proto HTTP/1.0 [17:57:32]Method: POST [17:57:32]URL: /json_proto [17:57:32]Method is POST - this is cgi request [17:57:32]url: /json_proto [17:57:32]query_string will be loaded in cgi processing [17:57:32]execute_cgi json_proto POST (null) [17:57:32]execute_cgi path=json_proto method=POST [17:57:32]POST find Content-Length [17:57:32]Host: 172.17.39.195:8080 [17:57:32]Content-Length: 679 [17:57:32]Content-Type: application/json [17:57:32] [17:57:32]POST finish read [17:57:32]Found Content-Length = 679 [17:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220772", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:32]execute_script... [17:57:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220772", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:32]POST & json_proto [17:57:32]process_json_proto [17:57:32]json parsed OK: [17:57:32]protocol is kg_v1.0 [17:57:32]action value=close_receipt [17:57:32]process_action close_receipt [17:57:32]cmd_close_receipt [17:57:32]MH_GetDate [17:57:32]Write to MH i2c: F0 00 00 49 0A 42 [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: F0 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: F0 09 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: F0 09 00 49 0A 00 8E 6D 74 66 99 81 91 64 2F [17:57:32]GetLastDocTimeStamp 1718905951 [17:57:32]current date 1718906254 [17:57:32]FM_GetShiftState [17:57:32]SAM_PROTO_GetShiftState [17:57:32]wFMCommunicate request_size=4 [17:57:32]MH_SAM_APDU [17:57:32]CAPDU: 80 13 01 00 [17:57:32]Write to MH i2c: E2 08 00 4A 0A 80 13 01 00 00 00 00 00 D1 [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:32]Read from MH i2c: E2 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 0E 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 0E 00 4A 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 AD [17:57:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:57:32]wFMCommunicate OK [17:57:32]SAM_PROTO_GetShiftState done [17:57:32]FM_GetShiftState done [17:57:32]opened in 1718843774 [17:57:32]opened+sec_in_day 1718930174 [17:57:32]quantity*price = 8000 [17:57:32]sum+1 = 8001 [17:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 86 20.06.2024 17:57 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76645 ФПД: 247899387222241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175734&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76645&fm=247899387222241&tin=02508201610067®Number=0000000000095696&sum=8000 0 [17:57:33]StoreToDocumentArchive [17:57:33]shift 393 fd 76645 [17:57:33]save to /storage/0393/doc_00076645 [17:57:33]save last doc name /storage/0393/doc_00076645 to /storage/kkm_last_doc_name [17:57:33]save OK [17:57:33]Clear old archive folders... [17:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:57:33]tlvbuf is 00EA6350 [17:57:33]SAM_PROTO_ClearQueue [17:57:33]wFMCommunicate request_size=4 [17:57:33]MH_SAM_APDU [17:57:33]CAPDU: 80 09 00 00 [17:57:33]Write to MH i2c: E2 08 00 57 0A 80 09 00 00 00 00 00 00 D3 [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [17:57:33]RAPDU: 90 00 [17:57:33]wFMCommunicate OK [17:57:33]SAM_PROTO_ClearQueue done [17:57:33]KKMCreateOFDPacket [17:57:33]OFDProtocolAddRootSTLVToBuf [17:57:33]FM_MakeSignedData [17:57:33]FM_MakeSignedData [17:57:33]SAM_PROTO_SignData [17:57:33]wFMCommunicate request_size=4 [17:57:33]MH_SAM_APDU [17:57:33]CAPDU: 80 0D 01 02 [17:57:33]Write to MH i2c: E2 08 00 58 0A 80 0D 01 02 00 00 00 00 DB [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [17:57:33]RAPDU: 90 00 [17:57:33]wFMCommunicate OK [17:57:33]wFMCommunicate request_size=255 [17:57:33]MH_SAM_APDU [17:57:33]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 8E 6D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:57:33]Write to MH i2c: E2 02 01 59 0A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 8E 6D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 92 [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [17:57:33]RAPDU: 90 00 [17:57:33]wFMCommunicate OK [17:57:33]wFMCommunicate request_size=53 [17:57:33]MH_SAM_APDU [17:57:33]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2B 01 00 35 04 06 00 E1 76 92 EA 58 E1 [17:57:33]Write to MH i2c: E2 38 00 5A 0A 80 0D 02 02 30 00 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2B 01 00 35 04 06 00 E1 76 92 EA 58 E1 00 00 77 [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [17:57:33]RAPDU: 90 00 [17:57:33]wFMCommunicate OK [17:57:33]wFMCommunicate request_size=4 [17:57:33]MH_SAM_APDU [17:57:33]CAPDU: 80 0D 03 02 [17:57:33]Write to MH i2c: E2 08 00 5B 0A 80 0D 03 02 00 00 00 00 E0 [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 0B 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 0B 00 5B 0A 00 48 6F 9A 96 20 15 F2 71 90 00 60 [17:57:33]RAPDU: 48 6F 9A 96 20 15 F2 71 90 00 [17:57:33]wFMCommunicate OK [17:57:33]SAM_PROTO_SignData done [17:57:33]FM_MakeSignedData done [17:57:33]CreateOFDProtocolMessage [17:57:33]wFMCommunicate request_size=4 [17:57:33]MH_SAM_APDU [17:57:33]CAPDU: 80 11 00 00 [17:57:33]Write to MH i2c: E2 08 00 5C 0A 80 11 00 00 00 00 00 00 E0 [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 17 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 17 00 5C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 30 [17:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:57:33]wFMCommunicate OK [17:57:33]CreateOFDProtocolMessage done [17:57:33]OFDSenderStorePacket 76645 [17:57:33]StoreOFDPacket docnum=76645 [17:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 27 87 32 01 DC 2E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 8E 6D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2B 01 00 35 04 06 00 E1 76 92 EA 58 E1 48 6F 9A 96 20 15 F2 71 [17:57:33]CheckFolder [17:57:33]dirname=/storage/ofd_packets [17:57:33]CheckFolder done [17:57:33]ProducePacketName [17:57:33]name=ofd_packets/00076645 [17:57:33]NVStorageSaveData ofd_packets/00076645 [17:57:33]File name is /storage/ofd_packets/00076645 [17:57:33]Write 344 bytes [17:57:33]NVStorageSaveData done [17:57:33]OFDSenderStorePacket done [17:57:33]KKMCreateOFDPacket done [17:57:33]NVStorageSaveData kkm_last_timestamp [17:57:33]File name is /storage/kkm_last_timestamp [17:57:33]Write 4 bytes [17:57:33]NVStorageSaveData done [17:57:33]ExternCall_PrintAddStr [17:57:33]wPrintStart [17:57:33]Write to MH i2c: 01 00 00 5D 0A 67 [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: 01 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: 01 07 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 FF 0F 7C [17:57:33]RasterBufferAndPrint [17:57:33]line Счет N : (3)220772 [17:57:33]line ИНН: 02508201610067 [17:57:33]line Контрольно-Кассовый Чек [17:57:33]line ПРОДАЖА [17:57:33]line Товар: 4700003010353 [17:57:33]line Напиток Let`s Go! с/с груша ПЭТ 1л [17:57:33]line 1.000 * 80.00 [17:57:33]line = 80.00 [17:57:33]line НДС 12% НСП 1% [17:57:33]line > о реализуемом товаре [17:57:33]line ИТОГО: 80.00 [17:57:33]line НСП 1% : 0.71 [17:57:33]line НДС 12% : 8.50 [17:57:33]line Наличными: 80.00 [17:57:33]line Безнал.: 0.00 [17:57:33]line Место: АЗС № 144 "Партнер Нефть" [17:57:33]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:57:33]line СНО: Общий режим [17:57:33]line Чек 86 20.06.2024 17:57 [17:57:33]line Смена: 393 ФФД: 1.0 [17:57:33]line ЗНМ: 0300000170 [17:57:33]line РНМ: 0000000000095696 [17:57:33]line Версия ККМ: 001 [17:57:33]line ФМ: 0000000000875009 [17:57:33]line ФД: 76645 [17:57:33]line ФПД: 247899387222241 [17:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175734&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76645&fm=247899387222241&tin=02508201610067®Number=0000000000095696&sum=8000 [17:57:33]line 0 [17:57:33]written 0, free lines is 4095 [17:57:33]OFD Sender: Processing packet 76645 [packets to send 351, broken 350] [17:57:33]ProducePacketName [17:57:33]name=ofd_packets/00076645 [17:57:33]OFD Sender: To server: pG, [17:57:33]CommunicateWithHost lk.salyk.kg:30040 [17:57:33]ConnectInit lk.salyk.kg [17:57:34]Connected sock=10 [17:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 27 87 32 01 DC 2E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 8E 6D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2B 01 00 35 04 06 00 E1 76 92 EA 58 E1 48 6F 9A 96 20 15 F2 71 [17:57:34]Write to MH i2c: 01 00 00 86 0A 90 [17:57:34]Write i2c OK [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: 01 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: 01 07 00 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 F7 0C 9A [17:57:34]RasterBufferAndPrint [17:57:34]line [17:57:34]line [17:57:34]line [17:57:34]line [17:57:34]line [17:57:34]written 0, free lines is 3326 [17:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F8 C7 47 00 34 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2B 01 00 F4 03 04 00 2E 14 74 66 B6 04 01 00 00 F5 D5 71 4E 63 F1 27 78 [17:57:34]CommunicateWithHost err = 0 [17:57:34]CheckOFDResponse [17:57:34]1017 (14) - 77093643461234 [17:57:34]1041 (16) - 0000000000875009 [17:57:34]1040 (4) - 76645 [17:57:34]1012 (4) - 20.06.2024 11:36 [17:57:34]1206 (1) - 0 [17:57:34]OFD Sender: Remove packet 76645 [17:57:34]ProducePacketName [17:57:34]name=ofd_packets/00076645 [17:57:34]NVStorageDeleteData [17:57:34]MH_Cut [17:57:34]Write to MH i2c: D1 01 00 8D 0A 01 69 [17:57:34]Write i2c OK [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: D1 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: D1 01 00 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: D1 01 00 8D 0A 00 68 [17:57:34]Write to MH i2c: 01 00 00 8E 0A 98 [17:57:34]Write i2c OK [17:57:34]MH_I2C_Read... [17:57:34]OFD Sender: No OFD packet to send [17:57:35]*** Cut start [17:57:35]*** Partial cut [17:57:35]*** CUTSNS_PIN = 1 [17:57:35]*** CUTSNS_PIN = 0 [17:57:35]*** Brake cut motor [17:57:35]Read from MH i2c: 01 [17:57:35]MH_I2C_Read... [17:57:35]*** Stop cut motor [17:57:35]*** Cut end [17:57:35]Read from MH i2c: 01 07 00 [17:57:35]MH_I2C_Read... [17:57:35]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 FF 0F AD [17:57:35]process_action close_receipt done [17:57:35]requested_data is exist [17:57:35]produce_requested_data [17:57:35]requested_item fm.sn is exist - process it [17:57:35]wFMCommunicate request_size=4 [17:57:35]MH_SAM_APDU [17:57:35]CAPDU: 80 11 00 00 [17:57:35]Write to MH i2c: E2 08 00 8F 0A 80 11 00 00 00 00 00 00 13 [17:57:35]Write i2c OK [17:57:35]MH_I2C_Read... [17:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:35]Read from MH i2c: E2 [17:57:35]MH_I2C_Read... [17:57:35]Read from MH i2c: E2 17 00 [17:57:35]MH_I2C_Read... [17:57:35]Read from MH i2c: E2 17 00 8F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 63 [17:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:57:35]wFMCommunicate OK [17:57:35]requested_item fd.num is exist - process it [17:57:35]SAM_PROTO_GetFieldsCounters [17:57:35]wFMCommunicate request_size=4 [17:57:35]MH_SAM_APDU [17:57:35]CAPDU: 80 13 00 00 [17:57:35]Write to MH i2c: E2 08 00 90 0A 80 13 00 00 00 00 00 00 16 [17:57:35]Write i2c OK [17:57:35]MH_I2C_Read... [17:57:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:35]Read from MH i2c: E2 [17:57:35]MH_I2C_Read... [17:57:35]Read from MH i2c: E2 62 00 [17:57:35]MH_I2C_Read... [17:57:35]Read from MH i2c: E2 62 00 90 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:57:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:35]wFMCommunicate OK [17:57:35]SAM_PROTO_GetFieldsCounters done [17:57:35]requested_item shift.num is exist - process it [17:57:35]requested_item shift.opened is exist - process it [17:57:35]req_shift_opened [17:57:35]FM_GetShiftState [17:57:35]SAM_PROTO_GetShiftState [17:57:35]wFMCommunicate request_size=4 [17:57:35]MH_SAM_APDU [17:57:35]CAPDU: 80 13 01 00 [17:57:35]Write to MH i2c: E2 08 00 91 0A 80 13 01 00 00 00 00 00 18 [17:57:35]Write i2c OK [17:57:35]MH_I2C_Read... [17:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:35]Read from MH i2c: E2 [17:57:35]MH_I2C_Read... [17:57:35]Read from MH i2c: E2 0E 00 [17:57:35]MH_I2C_Read... [17:57:35]Read from MH i2c: E2 0E 00 91 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F4 [17:57:35]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [17:57:35]wFMCommunicate OK [17:57:35]SAM_PROTO_GetShiftState done [17:57:35]FM_GetShiftState done [17:57:35]req_shift_opened done [17:57:35]requested_item shift.open_date is exist - process it [17:57:35]req_shift_open_date [17:57:35]req_shift_open_date done [17:57:35]produce_requested_data done [17:57:35]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76645,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [17:57:35]process_action_free close_receipt [17:57:35]json_value_free [17:57:35]json_value_free done [17:57:35]process_json_proto returns [17:57:35]Send response to host [17:57:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76645,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [17:57:35]free response buf [17:57:35]execute_script done [17:57:35]execute_script returns [17:57:35]free content buf [17:57:35]Sock 9.Close socket [17:57:35]Sock 9.Thread stoped [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:37]accept exits with 7 [18:14:37]New connection [18:14:37]New thread 3066805604 created [18:14:37]Thread 3066948964 joined [18:14:37]Waiting for new connection... [18:14:37] Sock 7.Parse request [18:14:37]Sock 7.Check first char [18:14:37]Sock 7.First char is OK [18:14:37]request: POST /json_proto HTTP/1.0 [18:14:37]Method: POST [18:14:37]URL: /json_proto [18:14:37]Method is POST - this is cgi request [18:14:37]url: /json_proto [18:14:37]query_string will be loaded in cgi processing [18:14:37]execute_cgi json_proto POST (null) [18:14:37]execute_cgi path=json_proto method=POST [18:14:37]POST find Content-Length [18:14:37]Host: 172.17.39.195:8080 [18:14:37]Content-Length: 876 [18:14:37]Content-Type: application/json [18:14:37] [18:14:37]POST finish read [18:14:37]Found Content-Length = 876 [18:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220773", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:37]execute_script... [18:14:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220773", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:37]POST & json_proto [18:14:37]process_json_proto [18:14:37]json parsed OK: [18:14:37]protocol is kg_v1.0 [18:14:37]action value=close_receipt [18:14:37]process_action close_receipt [18:14:37]cmd_close_receipt [18:14:37]MH_GetDate [18:14:37]Write to MH i2c: F0 00 00 92 0A 8B [18:14:37]Write i2c OK [18:14:37]MH_I2C_Read... [18:14:37]Read from MH i2c: F0 [18:14:37]MH_I2C_Read... [18:14:37]Read from MH i2c: F0 09 00 [18:14:37]MH_I2C_Read... [18:14:37]Read from MH i2c: F0 09 00 92 0A 00 8F 71 74 66 99 81 91 64 7D [18:14:37]GetLastDocTimeStamp 1718906254 [18:14:37]current date 1718907279 [18:14:37]FM_GetShiftState [18:14:37]SAM_PROTO_GetShiftState [18:14:37]wFMCommunicate request_size=4 [18:14:37]MH_SAM_APDU [18:14:37]CAPDU: 80 13 01 00 [18:14:37]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [18:14:37]Write i2c OK [18:14:37]MH_I2C_Read... [18:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:37]Read from MH i2c: E2 [18:14:37]MH_I2C_Read... [18:14:37]Read from MH i2c: E2 0E 00 [18:14:37]MH_I2C_Read... [18:14:37]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F6 [18:14:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:14:37]wFMCommunicate OK [18:14:37]SAM_PROTO_GetShiftState done [18:14:37]FM_GetShiftState done [18:14:37]opened in 1718843774 [18:14:37]opened+sec_in_day 1718930174 [18:14:37]quantity*price = 7500 [18:14:37]sum+1 = 7501 [18:14:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741224 Сигареты Winston Super Slims Blue 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.85 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 87 20.06.2024 18:14 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76646 ФПД: 113403812593160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181439&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76646&fm=113403812593160&tin=02508201610067®Number=0000000000095696&sum=21000 0 [18:14:38]StoreToDocumentArchive [18:14:38]shift 393 fd 76646 [18:14:38]save to /storage/0393/doc_00076646 [18:14:38]save last doc name /storage/0393/doc_00076646 to /storage/kkm_last_doc_name [18:14:38]save OK [18:14:38]Clear old archive folders... [18:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=376 [18:14:38]tlvbuf is 00EB8570 [18:14:38]SAM_PROTO_ClearQueue [18:14:38]wFMCommunicate request_size=4 [18:14:38]MH_SAM_APDU [18:14:38]CAPDU: 80 09 00 00 [18:14:38]Write to MH i2c: E2 08 00 A0 0A 80 09 00 00 00 00 00 00 1C [18:14:38]Write i2c OK [18:14:38]MH_I2C_Read... [18:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:38]Read from MH i2c: E2 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [18:14:38]RAPDU: 90 00 [18:14:38]wFMCommunicate OK [18:14:38]SAM_PROTO_ClearQueue done [18:14:38]KKMCreateOFDPacket [18:14:38]OFDProtocolAddRootSTLVToBuf [18:14:38]FM_MakeSignedData [18:14:38]FM_MakeSignedData [18:14:38]SAM_PROTO_SignData [18:14:38]wFMCommunicate request_size=4 [18:14:38]MH_SAM_APDU [18:14:38]CAPDU: 80 0D 01 02 [18:14:38]Write to MH i2c: E2 08 00 A1 0A 80 0D 01 02 00 00 00 00 24 [18:14:38]Write i2c OK [18:14:38]MH_I2C_Read... [18:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:38]Read from MH i2c: E2 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [18:14:38]RAPDU: 90 00 [18:14:38]wFMCommunicate OK [18:14:38]wFMCommunicate request_size=255 [18:14:38]MH_SAM_APDU [18:14:38]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 [18:14:38]Write to MH i2c: E2 02 01 A2 0A 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 00 00 2B [18:14:38]Write i2c OK [18:14:38]MH_I2C_Read... [18:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:38]Read from MH i2c: E2 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [18:14:38]RAPDU: 90 00 [18:14:38]wFMCommunicate OK [18:14:38]wFMCommunicate request_size=135 [18:14:38]MH_SAM_APDU [18:14:38]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F 71 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2B 01 00 35 04 06 00 67 23 E1 F7 3E 08 [18:14:38]Write to MH i2c: E2 8A 00 A3 0A 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F 71 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2B 01 00 35 04 06 00 67 23 E1 F7 3E 08 00 00 7B [18:14:38]Write i2c OK [18:14:38]MH_I2C_Read... [18:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:38]Read from MH i2c: E2 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [18:14:38]RAPDU: 90 00 [18:14:38]wFMCommunicate OK [18:14:38]wFMCommunicate request_size=4 [18:14:38]MH_SAM_APDU [18:14:38]CAPDU: 80 0D 03 02 [18:14:38]Write to MH i2c: E2 08 00 A4 0A 80 0D 03 02 00 00 00 00 29 [18:14:38]Write i2c OK [18:14:38]MH_I2C_Read... [18:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:38]Read from MH i2c: E2 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 0B 00 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 0B 00 A4 0A 00 75 49 AB AD 4B AA D9 71 90 00 7F [18:14:38]RAPDU: 75 49 AB AD 4B AA D9 71 90 00 [18:14:38]wFMCommunicate OK [18:14:38]SAM_PROTO_SignData done [18:14:38]FM_MakeSignedData done [18:14:38]CreateOFDProtocolMessage [18:14:38]wFMCommunicate request_size=4 [18:14:38]MH_SAM_APDU [18:14:38]CAPDU: 80 11 00 00 [18:14:38]Write to MH i2c: E2 08 00 A5 0A 80 11 00 00 00 00 00 00 29 [18:14:38]Write i2c OK [18:14:38]MH_I2C_Read... [18:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:38]Read from MH i2c: E2 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 17 00 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: E2 17 00 A5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 79 [18:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:14:38]wFMCommunicate OK [18:14:38]CreateOFDProtocolMessage done [18:14:38]OFDSenderStorePacket 76646 [18:14:38]StoreOFDPacket docnum=76646 [18:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 8C 01 00 00 94 77 84 01 D5 BF 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F 71 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2B 01 00 35 04 06 00 67 23 E1 F7 3E 08 75 49 AB AD 4B AA D9 71 [18:14:38]CheckFolder [18:14:38]dirname=/storage/ofd_packets [18:14:38]CheckFolder done [18:14:38]ProducePacketName [18:14:38]name=ofd_packets/00076646 [18:14:38]NVStorageSaveData ofd_packets/00076646 [18:14:38]File name is /storage/ofd_packets/00076646 [18:14:38]Write 426 bytes [18:14:38]NVStorageSaveData done [18:14:38]OFDSenderStorePacket done [18:14:38]KKMCreateOFDPacket done [18:14:38]NVStorageSaveData kkm_last_timestamp [18:14:38]File name is /storage/kkm_last_timestamp [18:14:38]Write 4 bytes [18:14:38]NVStorageSaveData done [18:14:38]ExternCall_PrintAddStr [18:14:38]wPrintStart [18:14:38]Write to MH i2c: 01 00 00 A6 0A B0 [18:14:38]Write i2c OK [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: 01 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: 01 07 00 [18:14:38]MH_I2C_Read... [18:14:38]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 FF 0F C5 [18:14:38]RasterBufferAndPrint [18:14:38]line Счет N : (3)220773 [18:14:38]line ИНН: 02508201610067 [18:14:38]line Контрольно-Кассовый Чек [18:14:38]line ПРОДАЖА [18:14:38]line Товар: 40822938 [18:14:38]line Напиток Фанта 0,5л [18:14:38]line 1.000 * 75.00 [18:14:38]line = 75.00 [18:14:38]line НДС 12% НСП 1% [18:14:38]line > о реализуемом товаре [18:14:39]line Товар: 48741224 [18:14:39]line Сигареты Winston Super Slims Blue [18:14:39]line 1.000 * 135.00 [18:14:39]line = 135.00 [18:14:39]line НДС 12% НСП 1% [18:14:39]line > о реализуемом товаре [18:14:39]line ИТОГО: 210.00 [18:14:39]line НСП 1% : 1.85 [18:14:39]line НДС 12% : 22.30 [18:14:39]line Наличными: 210.00 [18:14:39]line Безнал.: 0.00 [18:14:39]line Место: АЗС № 144 "Партнер Нефть" [18:14:39]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [18:14:39]line СНО: Общий режим [18:14:39]line Чек 87 20.06.2024 18:14 [18:14:39]line Смена: 393 ФФД: 1.0 [18:14:39]line ЗНМ: 0300000170 [18:14:39]line РНМ: 0000000000095696 [18:14:39]line Версия ККМ: 001 [18:14:39]line ФМ: 0000000000875009 [18:14:39]line ФД: 76646 [18:14:39]line ФПД: 113403812593160 [18:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181439&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76646&fm=113403812593160&tin=02508201610067®Number=0000000000095696&sum=21000 [18:14:39]OFD Sender: Processing packet 76646 [packets to send 351, broken 350] [18:14:39]ProducePacketName [18:14:39]name=ofd_packets/00076646 [18:14:39]OFD Sender: To server: pG, [18:14:39]CommunicateWithHost lk.salyk.kg:30040 [18:14:39]ConnectInit lk.salyk.kg [18:14:39]line 0 [18:14:39]written 0, free lines is 4095 [18:14:39]Connected sock=10 [18:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 8C 01 00 00 94 77 84 01 D5 BF 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F 71 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2B 01 00 35 04 06 00 67 23 E1 F7 3E 08 75 49 AB AD 4B AA D9 71 [18:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F8 E0 47 00 A2 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2B 01 00 F4 03 04 00 2F 18 74 66 B6 04 01 00 00 DE B3 DF 95 C0 8A 6D 1B [18:14:39]CommunicateWithHost err = 0 [18:14:39]CheckOFDResponse [18:14:39]1017 (14) - 77093643461234 [18:14:39]1041 (16) - 0000000000875009 [18:14:39]1040 (4) - 76646 [18:14:39]1012 (4) - 20.06.2024 11:53 [18:14:39]1206 (1) - 0 [18:14:39]OFD Sender: Remove packet 76646 [18:14:39]ProducePacketName [18:14:39]name=ofd_packets/00076646 [18:14:39]NVStorageDeleteData [18:14:39]Write to MH i2c: 01 00 00 D5 0A DF [18:14:39]Write i2c OK [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: 01 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: 01 07 00 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 8C 0C 7E [18:14:39]RasterBufferAndPrint [18:14:39]line [18:14:39]line [18:14:39]line [18:14:39]line [18:14:39]line [18:14:39]written 0, free lines is 3220 [18:14:39]MH_Cut [18:14:39]Write to MH i2c: D1 01 00 DC 0A 01 B8 [18:14:39]Write i2c OK [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: D1 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: D1 01 00 [18:14:39]MH_I2C_Read... [18:14:39]Read from MH i2c: D1 01 00 DC 0A 00 B7 [18:14:39]Write to MH i2c: 01 00 00 DD 0A E7 [18:14:39]Write i2c OK [18:14:39]MH_I2C_Read... [18:14:40]OFD Sender: No OFD packet to send [18:14:40]*** Cut start [18:14:40]*** Partial cut [18:14:40]*** CUTSNS_PIN = 1 [18:14:40]*** CUTSNS_PIN = 0 [18:14:40]*** Brake cut motor [18:14:41]Read from MH i2c: 01 [18:14:41]MH_I2C_Read... [18:14:41]*** Stop cut motor [18:14:41]*** Cut end [18:14:41]Read from MH i2c: 01 07 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: 01 07 00 DD 0A 00 00 00 00 00 FF 0F FC [18:14:41]process_action close_receipt done [18:14:41]requested_data is exist [18:14:41]produce_requested_data [18:14:41]requested_item fm.sn is exist - process it [18:14:41]wFMCommunicate request_size=4 [18:14:41]MH_SAM_APDU [18:14:41]CAPDU: 80 11 00 00 [18:14:41]Write to MH i2c: E2 08 00 DE 0A 80 11 00 00 00 00 00 00 62 [18:14:41]Write i2c OK [18:14:41]MH_I2C_Read... [18:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:41]Read from MH i2c: E2 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 17 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 17 00 DE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B2 [18:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:14:41]wFMCommunicate OK [18:14:41]requested_item fd.num is exist - process it [18:14:41]SAM_PROTO_GetFieldsCounters [18:14:41]wFMCommunicate request_size=4 [18:14:41]MH_SAM_APDU [18:14:41]CAPDU: 80 13 00 00 [18:14:41]Write to MH i2c: E2 08 00 DF 0A 80 13 00 00 00 00 00 00 65 [18:14:41]Write i2c OK [18:14:41]MH_I2C_Read... [18:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:41]Read from MH i2c: E2 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 62 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 62 00 DF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 66 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [18:14:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 66 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:41]wFMCommunicate OK [18:14:41]SAM_PROTO_GetFieldsCounters done [18:14:41]requested_item shift.num is exist - process it [18:14:41]requested_item shift.opened is exist - process it [18:14:41]req_shift_opened [18:14:41]FM_GetShiftState [18:14:41]SAM_PROTO_GetShiftState [18:14:41]wFMCommunicate request_size=4 [18:14:41]MH_SAM_APDU [18:14:41]CAPDU: 80 13 01 00 [18:14:41]Write to MH i2c: E2 08 00 E0 0A 80 13 01 00 00 00 00 00 67 [18:14:41]Write i2c OK [18:14:41]MH_I2C_Read... [18:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:41]Read from MH i2c: E2 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 0E 00 [18:14:41]MH_I2C_Read... [18:14:41]Read from MH i2c: E2 0E 00 E0 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 43 [18:14:41]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:14:41]wFMCommunicate OK [18:14:41]SAM_PROTO_GetShiftState done [18:14:41]FM_GetShiftState done [18:14:41]req_shift_opened done [18:14:41]requested_item shift.open_date is exist - process it [18:14:41]req_shift_open_date [18:14:41]req_shift_open_date done [18:14:41]produce_requested_data done [18:14:41]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76646,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [18:14:41]process_action_free close_receipt [18:14:41]json_value_free [18:14:41]json_value_free done [18:14:41]process_json_proto returns [18:14:41]Send response to host [18:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76646,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [18:14:41]free response buf [18:14:41]execute_script done [18:14:41]execute_script returns [18:14:41]free content buf [18:14:41]Sock 7.Close socket [18:14:41]Sock 7.Thread stoped [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:51]accept exits with 9 [18:16:51]New connection [18:16:51]New thread 3066948964 created [18:16:51]Thread 3066805604 joined [18:16:51]Waiting for new connection... [18:16:51] Sock 9.Parse request [18:16:51]Sock 9.Check first char [18:16:51]Sock 9.First char is OK [18:16:51]request: POST /json_proto HTTP/1.0 [18:16:51]Method: POST [18:16:51]URL: /json_proto [18:16:51]Method is POST - this is cgi request [18:16:51]url: /json_proto [18:16:51]query_string will be loaded in cgi processing [18:16:51]execute_cgi json_proto POST (null) [18:16:51]execute_cgi path=json_proto method=POST [18:16:51]POST find Content-Length [18:16:51]Host: 172.17.39.195:8080 [18:16:51]Content-Length: 679 [18:16:51]Content-Type: application/json [18:16:51] [18:16:51]POST finish read [18:16:51]Found Content-Length = 679 [18:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220774", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:51]execute_script... [18:16:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220774", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:51]POST & json_proto [18:16:51]process_json_proto [18:16:51]json parsed OK: [18:16:51]protocol is kg_v1.0 [18:16:51]action value=close_receipt [18:16:51]process_action close_receipt [18:16:51]cmd_close_receipt [18:16:51]MH_GetDate [18:16:51]Write to MH i2c: F0 00 00 E1 0A DA [18:16:51]Write i2c OK [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: F0 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: F0 09 00 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: F0 09 00 E1 0A 00 16 72 74 66 99 81 91 64 54 [18:16:51]GetLastDocTimeStamp 1718907279 [18:16:51]current date 1718907414 [18:16:51]FM_GetShiftState [18:16:51]SAM_PROTO_GetShiftState [18:16:51]wFMCommunicate request_size=4 [18:16:51]MH_SAM_APDU [18:16:51]CAPDU: 80 13 01 00 [18:16:51]Write to MH i2c: E2 08 00 E2 0A 80 13 01 00 00 00 00 00 69 [18:16:51]Write i2c OK [18:16:51]MH_I2C_Read... [18:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:51]Read from MH i2c: E2 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: E2 0E 00 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: E2 0E 00 E2 0A 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 45 [18:16:51]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:16:51]wFMCommunicate OK [18:16:51]SAM_PROTO_GetShiftState done [18:16:51]FM_GetShiftState done [18:16:51]opened in 1718843774 [18:16:51]opened+sec_in_day 1718930174 [18:16:51]quantity*price = 8000 [18:16:51]sum+1 = 8001 [18:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 88 20.06.2024 18:16 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76647 ФПД: 264256636550302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181654&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76647&fm=264256636550302&tin=02508201610067®Number=0000000000095696&sum=8000 0 [18:16:53]StoreToDocumentArchive [18:16:53]shift 393 fd 76647 [18:16:53]save to /storage/0393/doc_00076647 [18:16:53]save last doc name /storage/0393/doc_00076647 to /storage/kkm_last_doc_name [18:16:53]save OK [18:16:53]Clear old archive folders... [18:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:16:53]tlvbuf is B6ED98C0 [18:16:53]SAM_PROTO_ClearQueue [18:16:53]wFMCommunicate request_size=4 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 09 00 00 [18:16:53]Write to MH i2c: E2 08 00 EF 0A 80 09 00 00 00 00 00 00 6B [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [18:16:53]RAPDU: 90 00 [18:16:53]wFMCommunicate OK [18:16:53]SAM_PROTO_ClearQueue done [18:16:53]KKMCreateOFDPacket [18:16:53]OFDProtocolAddRootSTLVToBuf [18:16:53]FM_MakeSignedData [18:16:53]FM_MakeSignedData [18:16:53]SAM_PROTO_SignData [18:16:53]wFMCommunicate request_size=4 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 0D 01 02 [18:16:53]Write to MH i2c: E2 08 00 F0 0A 80 0D 01 02 00 00 00 00 73 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [18:16:53]RAPDU: 90 00 [18:16:53]wFMCommunicate OK [18:16:53]wFMCommunicate request_size=255 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 16 72 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:16:53]Write to MH i2c: E2 02 01 F1 0A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 16 72 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 B9 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 F1 0A 00 90 00 6F [18:16:53]RAPDU: 90 00 [18:16:53]wFMCommunicate OK [18:16:53]wFMCommunicate request_size=53 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2B 01 00 35 04 06 00 F0 57 0A F3 7C 9E [18:16:53]Write to MH i2c: E2 38 00 F2 0A 80 0D 02 02 30 00 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2B 01 00 35 04 06 00 F0 57 0A F3 7C 9E 00 00 63 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 F2 0A 00 90 00 70 [18:16:53]RAPDU: 90 00 [18:16:53]wFMCommunicate OK [18:16:53]wFMCommunicate request_size=4 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 0D 03 02 [18:16:53]Write to MH i2c: E2 08 00 F3 0A 80 0D 03 02 00 00 00 00 78 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 0B 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 0B 00 F3 0A 00 D4 1A 9D B8 DE 42 CC 27 90 00 CF [18:16:53]RAPDU: D4 1A 9D B8 DE 42 CC 27 90 00 [18:16:53]wFMCommunicate OK [18:16:53]SAM_PROTO_SignData done [18:16:53]FM_MakeSignedData done [18:16:53]CreateOFDProtocolMessage [18:16:53]wFMCommunicate request_size=4 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 11 00 00 [18:16:53]Write to MH i2c: E2 08 00 F4 0A 80 11 00 00 00 00 00 00 78 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 17 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 17 00 F4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C8 [18:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:16:53]wFMCommunicate OK [18:16:53]CreateOFDProtocolMessage done [18:16:53]OFDSenderStorePacket 76647 [18:16:53]StoreOFDPacket docnum=76647 [18:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 EE 9C 32 01 25 90 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 16 72 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2B 01 00 35 04 06 00 F0 57 0A F3 7C 9E D4 1A 9D B8 DE 42 CC 27 [18:16:53]CheckFolder [18:16:53]dirname=/storage/ofd_packets [18:16:53]CheckFolder done [18:16:53]ProducePacketName [18:16:53]name=ofd_packets/00076647 [18:16:53]NVStorageSaveData ofd_packets/00076647 [18:16:53]File name is /storage/ofd_packets/00076647 [18:16:53]Write 344 bytes [18:16:53]NVStorageSaveData done [18:16:53]OFDSenderStorePacket done [18:16:53]KKMCreateOFDPacket done [18:16:53]NVStorageSaveData kkm_last_timestamp [18:16:53]File name is /storage/kkm_last_timestamp [18:16:53]Write 4 bytes [18:16:53]NVStorageSaveData done [18:16:53]ExternCall_PrintAddStr [18:16:53]wPrintStart [18:16:53]Write to MH i2c: 01 00 00 F5 0A FF [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: 01 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: 01 07 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: 01 07 00 F5 0A 00 00 00 00 00 FF 0F 14 [18:16:53]RasterBufferAndPrint [18:16:53]line Счет N : (3)220774 [18:16:53]line ИНН: 02508201610067 [18:16:53]line Контрольно-Кассовый Чек [18:16:53]line ПРОДАЖА [18:16:53]line Товар: 4700003010353 [18:16:53]line Напиток Let`s Go! с/с груша ПЭТ 1л [18:16:53]line 1.000 * 80.00 [18:16:53]line = 80.00 [18:16:53]line НДС 12% НСП 1% [18:16:53]line > о реализуемом товаре [18:16:53]line ИТОГО: 80.00 [18:16:53]line НСП 1% : 0.71 [18:16:53]line НДС 12% : 8.50 [18:16:53]line Наличными: 80.00 [18:16:53]line Безнал.: 0.00 [18:16:53]line Место: АЗС № 144 "Партнер Нефть" [18:16:53]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [18:16:53]line СНО: Общий режим [18:16:53]line Чек 88 20.06.2024 18:16 [18:16:53]line Смена: 393 ФФД: 1.0 [18:16:53]line ЗНМ: 0300000170 [18:16:53]line РНМ: 0000000000095696 [18:16:53]line Версия ККМ: 001 [18:16:53]line ФМ: 0000000000875009 [18:16:53]line ФД: 76647 [18:16:53]line ФПД: 264256636550302 [18:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181654&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76647&fm=264256636550302&tin=02508201610067®Number=0000000000095696&sum=8000 [18:16:53]line 0 [18:16:53]OFD Sender: Processing packet 76647 [packets to send 351, broken 350] [18:16:53]ProducePacketName [18:16:53]name=ofd_packets/00076647 [18:16:53]OFD Sender: To server: pG, [18:16:53]CommunicateWithHost lk.salyk.kg:30040 [18:16:53]ConnectInit lk.salyk.kg [18:16:53]written 0, free lines is 4095 [18:16:54]Connected sock=10 [18:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 EE 9C 32 01 25 90 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 16 72 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2B 01 00 35 04 06 00 F0 57 0A F3 7C 9E D4 1A 9D B8 DE 42 CC 27 [18:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 32 45 47 00 57 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2B 01 00 F4 03 04 00 B6 18 74 66 B6 04 01 00 00 2F 06 15 9D 03 C6 40 F3 [18:16:54]CommunicateWithHost err = 0 [18:16:54]CheckOFDResponse [18:16:54]1017 (14) - 77093643461234 [18:16:54]1041 (16) - 0000000000875009 [18:16:54]1040 (4) - 76647 [18:16:54]1012 (4) - 20.06.2024 11:55 [18:16:54]1206 (1) - 0 [18:16:54]OFD Sender: Remove packet 76647 [18:16:54]ProducePacketName [18:16:54]name=ofd_packets/00076647 [18:16:54]NVStorageDeleteData [18:16:54]Write to MH i2c: 01 00 00 1E 0B 29 [18:16:54]Write i2c OK [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: 01 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: 01 07 00 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 FC 0C 38 [18:16:54]RasterBufferAndPrint [18:16:54]line [18:16:54]line [18:16:54]line [18:16:54]line [18:16:54]line [18:16:54]written 0, free lines is 3330 [18:16:54]MH_Cut [18:16:54]Write to MH i2c: D1 01 00 25 0B 01 02 [18:16:54]Write i2c OK [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: D1 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: D1 01 00 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: D1 01 00 25 0B 00 01 [18:16:54]Write to MH i2c: 01 00 00 26 0B 31 [18:16:54]Write i2c OK [18:16:54]MH_I2C_Read... [18:16:54]OFD Sender: No OFD packet to send [18:16:55]*** Cut start [18:16:55]*** Partial cut [18:16:55]*** CUTSNS_PIN = 1 [18:16:55]*** CUTSNS_PIN = 0 [18:16:55]*** Brake cut motor [18:16:55]Read from MH i2c: 01 [18:16:55]MH_I2C_Read... [18:16:55]*** Stop cut motor [18:16:55]*** Cut end [18:16:55]Read from MH i2c: 01 07 00 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: 01 07 00 26 0B 00 00 00 00 00 FF 0F 46 [18:16:55]process_action close_receipt done [18:16:55]requested_data is exist [18:16:55]produce_requested_data [18:16:55]requested_item fm.sn is exist - process it [18:16:55]wFMCommunicate request_size=4 [18:16:55]MH_SAM_APDU [18:16:55]CAPDU: 80 11 00 00 [18:16:55]Write to MH i2c: E2 08 00 27 0B 80 11 00 00 00 00 00 00 AC [18:16:55]Write i2c OK [18:16:55]MH_I2C_Read... [18:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:55]Read from MH i2c: E2 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 17 00 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 17 00 27 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FC [18:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:16:55]wFMCommunicate OK [18:16:55]requested_item fd.num is exist - process it [18:16:55]SAM_PROTO_GetFieldsCounters [18:16:55]wFMCommunicate request_size=4 [18:16:55]MH_SAM_APDU [18:16:55]CAPDU: 80 13 00 00 [18:16:55]Write to MH i2c: E2 08 00 28 0B 80 13 00 00 00 00 00 00 AF [18:16:55]Write i2c OK [18:16:55]MH_I2C_Read... [18:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:55]Read from MH i2c: E2 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 62 00 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 62 00 28 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 67 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 67 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:56]wFMCommunicate OK [18:16:56]SAM_PROTO_GetFieldsCounters done [18:16:56]requested_item shift.num is exist - process it [18:16:56]requested_item shift.opened is exist - process it [18:16:56]req_shift_opened [18:16:56]FM_GetShiftState [18:16:56]SAM_PROTO_GetShiftState [18:16:56]wFMCommunicate request_size=4 [18:16:56]MH_SAM_APDU [18:16:56]CAPDU: 80 13 01 00 [18:16:56]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [18:16:56]Write i2c OK [18:16:56]MH_I2C_Read... [18:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:56]Read from MH i2c: E2 [18:16:56]MH_I2C_Read... [18:16:56]Read from MH i2c: E2 0E 00 [18:16:56]MH_I2C_Read... [18:16:56]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 8D [18:16:56]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:16:56]wFMCommunicate OK [18:16:56]SAM_PROTO_GetShiftState done [18:16:56]FM_GetShiftState done [18:16:56]req_shift_opened done [18:16:56]requested_item shift.open_date is exist - process it [18:16:56]req_shift_open_date [18:16:56]req_shift_open_date done [18:16:56]produce_requested_data done [18:16:56]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76647,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [18:16:56]process_action_free close_receipt [18:16:56]json_value_free [18:16:56]json_value_free done [18:16:56]process_json_proto returns [18:16:56]Send response to host [18:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76647,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [18:16:56]free response buf [18:16:56]execute_script done [18:16:56]execute_script returns [18:16:56]free content buf [18:16:56]Sock 9.Close socket [18:16:56]Sock 9.Thread stoped [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]accept exits with 7 [18:22:05]New connection [18:22:05]New thread 3066805604 created [18:22:05]Thread 3066948964 joined [18:22:05]Waiting for new connection... [18:22:05] Sock 7.Parse request [18:22:05]Sock 7.Check first char [18:22:05]Sock 7.First char is OK [18:22:05]request: POST /json_proto HTTP/1.0 [18:22:05]Method: POST [18:22:05]URL: /json_proto [18:22:05]Method is POST - this is cgi request [18:22:05]url: /json_proto [18:22:05]query_string will be loaded in cgi processing [18:22:05]execute_cgi json_proto POST (null) [18:22:05]execute_cgi path=json_proto method=POST [18:22:05]POST find Content-Length [18:22:05]Host: 172.17.39.195:8080 [18:22:05]Content-Length: 689 [18:22:05]Content-Type: application/json [18:22:05] [18:22:05]POST finish read [18:22:05]Found Content-Length = 689 [18:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220775", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:05]execute_script... [18:22: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 : (3)220775", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:05]POST & json_proto [18:22:05]process_json_proto [18:22:05]json parsed OK: [18:22:05]protocol is kg_v1.0 [18:22:05]action value=close_receipt [18:22:05]process_action close_receipt [18:22:05]cmd_close_receipt [18:22:05]MH_GetDate [18:22:05]Write to MH i2c: F0 00 00 2A 0B 24 [18:22:05]Write i2c OK [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 09 00 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 09 00 2A 0B 00 4F 73 74 66 99 81 91 64 D8 [18:22:05]GetLastDocTimeStamp 1718907414 [18:22:05]current date 1718907727 [18:22:05]FM_GetShiftState [18:22:05]SAM_PROTO_GetShiftState [18:22:05]wFMCommunicate request_size=4 [18:22:05]MH_SAM_APDU [18:22:05]CAPDU: 80 13 01 00 [18:22:05]Write to MH i2c: E2 08 00 2B 0B 80 13 01 00 00 00 00 00 B3 [18:22:05]Write i2c OK [18:22:05]MH_I2C_Read... [18:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:05]Read from MH i2c: E2 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: E2 0E 00 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: E2 0E 00 2B 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 8F [18:22:05]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:22:05]wFMCommunicate OK [18:22:05]SAM_PROTO_GetShiftState done [18:22:05]FM_GetShiftState done [18:22:05]opened in 1718843774 [18:22:05]opened+sec_in_day 1718930174 [18:22:05]quantity*price = 10000 [18:22:05]sum+1 = 10001 [18:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 89 20.06.2024 18:22 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76648 ФПД: 144935092719441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182207&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76648&fm=144935092719441&tin=02508201610067®Number=0000000000095696&sum=10000 0 [18:22:06]StoreToDocumentArchive [18:22:06]shift 393 fd 76648 [18:22:06]save to /storage/0393/doc_00076648 [18:22:06]save last doc name /storage/0393/doc_00076648 to /storage/kkm_last_doc_name [18:22:06]save OK [18:22:06]Clear old archive folders... [18:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=293 [18:22:06]tlvbuf is 00EA6420 [18:22:06]SAM_PROTO_ClearQueue [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 09 00 00 [18:22:06]Write to MH i2c: E2 08 00 38 0B 80 09 00 00 00 00 00 00 B5 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]SAM_PROTO_ClearQueue done [18:22:06]KKMCreateOFDPacket [18:22:06]OFDProtocolAddRootSTLVToBuf [18:22:06]FM_MakeSignedData [18:22:06]FM_MakeSignedData [18:22:06]SAM_PROTO_SignData [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 01 02 [18:22:06]Write to MH i2c: E2 08 00 39 0B 80 0D 01 02 00 00 00 00 BD [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]wFMCommunicate request_size=255 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4F 73 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [18:22:06]Write to MH i2c: E2 02 01 3A 0B 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4F 73 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 F5 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]wFMCommunicate request_size=52 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 68 2B 01 00 35 04 06 00 83 D1 54 B7 8F 51 [18:22:06]Write to MH i2c: E2 37 00 3B 0B 80 0D 02 02 2F 00 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 68 2B 01 00 35 04 06 00 83 D1 54 B7 8F 51 00 00 5D [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 03 02 [18:22:06]Write to MH i2c: E2 08 00 3C 0B 80 0D 03 02 00 00 00 00 C2 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 0B 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 0B 00 3C 0B 00 4A 5A 50 04 67 E4 10 52 90 00 68 [18:22:06]RAPDU: 4A 5A 50 04 67 E4 10 52 90 00 [18:22:06]wFMCommunicate OK [18:22:06]SAM_PROTO_SignData done [18:22:06]FM_MakeSignedData done [18:22:06]CreateOFDProtocolMessage [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 11 00 00 [18:22:06]Write to MH i2c: E2 08 00 3D 0B 80 11 00 00 00 00 00 00 C2 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 17 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 17 00 3D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 12 [18:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:22:06]wFMCommunicate OK [18:22:06]CreateOFDProtocolMessage done [18:22:06]OFDSenderStorePacket 76648 [18:22:06]StoreOFDPacket docnum=76648 [18:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 01 00 00 88 DD 31 01 24 29 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4F 73 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 68 2B 01 00 35 04 06 00 83 D1 54 B7 8F 51 4A 5A 50 04 67 E4 10 52 [18:22:06]CheckFolder [18:22:06]dirname=/storage/ofd_packets [18:22:06]CheckFolder done [18:22:06]ProducePacketName [18:22:06]name=ofd_packets/00076648 [18:22:06]NVStorageSaveData ofd_packets/00076648 [18:22:06]File name is /storage/ofd_packets/00076648 [18:22:06]Write 343 bytes [18:22:06]NVStorageSaveData done [18:22:06]OFDSenderStorePacket done [18:22:06]KKMCreateOFDPacket done [18:22:06]NVStorageSaveData kkm_last_timestamp [18:22:06]File name is /storage/kkm_last_timestamp [18:22:06]Write 4 bytes [18:22:06]NVStorageSaveData done [18:22:06]ExternCall_PrintAddStr [18:22:06]wPrintStart [18:22:06]Write to MH i2c: 01 00 00 3E 0B 49 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: 01 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: 01 07 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: 01 07 00 3E 0B 00 00 00 00 00 FF 0F 5E [18:22:06]RasterBufferAndPrint [18:22:06]line Счет N : (3)220775 [18:22:06]line ИНН: 02508201610067 [18:22:06]line Контрольно-Кассовый Чек [18:22:06]line ПРОДАЖА [18:22:06]line Товар: 4870002326172 [18:22:06]line Вода ASU пит н.газ лимон ПЭТ 1л [18:22:06]line 1.000 * 100.00 [18:22:06]line = 100.00 [18:22:06]line НДС 12% НСП 1% [18:22:06]line > о реализуемом товаре [18:22:06]line ИТОГО: 100.00 [18:22:06]line НСП 1% : 0.88 [18:22:06]line НДС 12% : 10.62 [18:22:06]line Наличными: 100.00 [18:22:06]line Безнал.: 0.00 [18:22:06]line Место: АЗС № 144 "Партнер Нефть" [18:22:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [18:22:06]line СНО: Общий режим [18:22:06]line Чек 89 20.06.2024 18:22 [18:22:06]line Смена: 393 ФФД: 1.0 [18:22:06]line ЗНМ: 0300000170 [18:22:06]line РНМ: 0000000000095696 [18:22:06]line Версия ККМ: 001 [18:22:06]line ФМ: 0000000000875009 [18:22:06]line ФД: 76648 [18:22:06]line ФПД: 144935092719441 [18:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182207&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76648&fm=144935092719441&tin=02508201610067®Number=0000000000095696&sum=10000 [18:22:06]line 0 [18:22:06]OFD Sender: Processing packet 76648 [packets to send 351, broken 350] [18:22:06]ProducePacketName [18:22:06]name=ofd_packets/00076648 [18:22:06]OFD Sender: To server: pG, [18:22:06]CommunicateWithHost lk.salyk.kg:30040 [18:22:07]ConnectInit lk.salyk.kg [18:22:07]written 0, free lines is 4095 [18:22:07]Connected sock=10 [18:22:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 01 00 00 88 DD 31 01 24 29 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4F 73 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 68 2B 01 00 35 04 06 00 83 D1 54 B7 8F 51 4A 5A 50 04 67 E4 10 52 [18:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F9 28 47 00 25 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 68 2B 01 00 F4 03 04 00 EF 19 74 66 B6 04 01 00 00 8F 2F D2 05 29 14 08 03 [18:22:07]CommunicateWithHost err = 0 [18:22:07]CheckOFDResponse [18:22:07]1017 (14) - 77093643461234 [18:22:07]1041 (16) - 0000000000875009 [18:22:07]1040 (4) - 76648 [18:22:07]1012 (4) - 20.06.2024 12:00 [18:22:07]1206 (1) - 0 [18:22:07]OFD Sender: Remove packet 76648 [18:22:07]ProducePacketName [18:22:07]name=ofd_packets/00076648 [18:22:07]NVStorageDeleteData [18:22:07]Write to MH i2c: 01 00 00 67 0B 72 [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 F2 0C 77 [18:22:07]RasterBufferAndPrint [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]written 0, free lines is 3320 [18:22:07]MH_Cut [18:22:07]Write to MH i2c: D1 01 00 6E 0B 01 4B [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 01 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 01 00 6E 0B 00 4A [18:22:07]Write to MH i2c: 01 00 00 6F 0B 7A [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:08]OFD Sender: No OFD packet to send [18:22:08]*** Cut start [18:22:08]*** Partial cut [18:22:08]*** CUTSNS_PIN = 1 [18:22:08]*** CUTSNS_PIN = 0 [18:22:08]*** Brake cut motor [18:22:08]Read from MH i2c: 01 [18:22:08]MH_I2C_Read... [18:22:08]*** Stop cut motor [18:22:08]*** Cut end [18:22:08]Read from MH i2c: 01 07 00 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 FF 0F 8F [18:22:08]process_action close_receipt done [18:22:08]requested_data is exist [18:22:08]produce_requested_data [18:22:08]requested_item fm.sn is exist - process it [18:22:08]wFMCommunicate request_size=4 [18:22:08]MH_SAM_APDU [18:22:08]CAPDU: 80 11 00 00 [18:22:08]Write to MH i2c: E2 08 00 70 0B 80 11 00 00 00 00 00 00 F5 [18:22:08]Write i2c OK [18:22:08]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 17 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 17 00 70 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 45 [18:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:22:09]wFMCommunicate OK [18:22:09]requested_item fd.num is exist - process it [18:22:09]SAM_PROTO_GetFieldsCounters [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 13 00 00 [18:22:09]Write to MH i2c: E2 08 00 71 0B 80 13 00 00 00 00 00 00 F8 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 62 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 62 00 71 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 68 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [18:22:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 68 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_GetFieldsCounters done [18:22:09]requested_item shift.num is exist - process it [18:22:09]requested_item shift.opened is exist - process it [18:22:09]req_shift_opened [18:22:09]FM_GetShiftState [18:22:09]SAM_PROTO_GetShiftState [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 13 01 00 [18:22:09]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0E 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D6 [18:22:09]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_GetShiftState done [18:22:09]FM_GetShiftState done [18:22:09]req_shift_opened done [18:22:09]requested_item shift.open_date is exist - process it [18:22:09]req_shift_open_date [18:22:09]req_shift_open_date done [18:22:09]produce_requested_data done [18:22:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76648,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [18:22:09]process_action_free close_receipt [18:22:09]json_value_free [18:22:09]json_value_free done [18:22:09]process_json_proto returns [18:22:09]Send response to host [18:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76648,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [18:22:09]free response buf [18:22:09]execute_script done [18:22:09]execute_script returns [18:22:09]free content buf [18:22:09]Sock 7.Close socket [18:22:09]Sock 7.Thread stoped [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:32]accept exits with 9 [18:31:32]New connection [18:31:32]New thread 3066948964 created [18:31:32]Thread 3066805604 joined [18:31:32]Waiting for new connection... [18:31:32] Sock 9.Parse request [18:31:32]Sock 9.Check first char [18:31:32]Sock 9.First char is OK [18:31:32]request: POST /json_proto HTTP/1.0 [18:31:32]Method: POST [18:31:32]URL: /json_proto [18:31:32]Method is POST - this is cgi request [18:31:32]url: /json_proto [18:31:32]query_string will be loaded in cgi processing [18:31:32]execute_cgi json_proto POST (null) [18:31:32]execute_cgi path=json_proto method=POST [18:31:32]POST find Content-Length [18:31:32]Host: 172.17.39.195:8080 [18:31:32]Content-Length: 700 [18:31:32]Content-Type: application/json [18:31:32] [18:31:32]POST finish read [18:31:32]Found Content-Length = 700 [18:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220776", "tax_sys" : 0, "items" : [ { "code": "4700003010407", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u044F\u0431\u043B \u0448\u0438\u043F\u043E\u0432\u043D\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:32]execute_script... [18:31:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220776", "tax_sys" : 0, "items" : [ { "code": "4700003010407", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u044F\u0431\u043B \u0448\u0438\u043F\u043E\u0432\u043D\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:32]POST & json_proto [18:31:32]process_json_proto [18:31:32]json parsed OK: [18:31:32]protocol is kg_v1.0 [18:31:32]action value=close_receipt [18:31:32]process_action close_receipt [18:31:32]cmd_close_receipt [18:31:32]MH_GetDate [18:31:32]Write to MH i2c: F0 00 00 73 0B 6D [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: F0 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: F0 09 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: F0 09 00 73 0B 00 87 75 74 66 99 81 91 64 5B [18:31:32]GetLastDocTimeStamp 1718907727 [18:31:32]current date 1718908295 [18:31:32]FM_GetShiftState [18:31:32]SAM_PROTO_GetShiftState [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 13 01 00 [18:31:32]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 0E 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D8 [18:31:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:31:32]wFMCommunicate OK [18:31:32]SAM_PROTO_GetShiftState done [18:31:32]FM_GetShiftState done [18:31:32]opened in 1718843774 [18:31:32]opened+sec_in_day 1718930174 [18:31:32]quantity*price = 9500 [18:31:32]sum+1 = 9501 [18:31:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 90 20.06.2024 18:31 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76649 ФПД: 259963113715070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183135&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76649&fm=259963113715070&tin=02508201610067®Number=0000000000095696&sum=9500 0 [18:31:34]StoreToDocumentArchive [18:31:34]shift 393 fd 76649 [18:31:34]save to /storage/0393/doc_00076649 [18:31:34]save last doc name /storage/0393/doc_00076649 to /storage/kkm_last_doc_name [18:31:34]save OK [18:31:34]Clear old archive folders... [18:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=303 [18:31:34]tlvbuf is 00E835E0 [18:31:34]SAM_PROTO_ClearQueue [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 09 00 00 [18:31:34]Write to MH i2c: E2 08 00 81 0B 80 09 00 00 00 00 00 00 FE [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:34]OFD Sender: No OFD packet to send [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [18:31:34]RAPDU: 90 00 [18:31:34]wFMCommunicate OK [18:31:34]SAM_PROTO_ClearQueue done [18:31:34]KKMCreateOFDPacket [18:31:34]OFDProtocolAddRootSTLVToBuf [18:31:34]FM_MakeSignedData [18:31:34]FM_MakeSignedData [18:31:34]SAM_PROTO_SignData [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 0D 01 02 [18:31:34]Write to MH i2c: E2 08 00 82 0B 80 0D 01 02 00 00 00 00 06 [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [18:31:34]RAPDU: 90 00 [18:31:34]wFMCommunicate OK [18:31:34]wFMCommunicate request_size=255 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 87 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D [18:31:34]Write to MH i2c: E2 02 01 83 0B 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 87 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 00 00 C7 [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 83 0B 00 90 00 02 [18:31:34]RAPDU: 90 00 [18:31:34]wFMCommunicate OK [18:31:34]wFMCommunicate request_size=62 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2B 01 00 35 04 06 00 EC 6F 61 0C 35 7E [18:31:34]Write to MH i2c: E2 41 00 84 0B 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2B 01 00 35 04 06 00 EC 6F 61 0C 35 7E 00 00 5B [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 03 00 84 0B 00 90 00 03 [18:31:34]RAPDU: 90 00 [18:31:34]wFMCommunicate OK [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 0D 03 02 [18:31:34]Write to MH i2c: E2 08 00 85 0B 80 0D 03 02 00 00 00 00 0B [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 0B 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 0B 00 85 0B 00 94 04 28 26 90 21 08 A6 90 00 51 [18:31:34]RAPDU: 94 04 28 26 90 21 08 A6 90 00 [18:31:34]wFMCommunicate OK [18:31:34]SAM_PROTO_SignData done [18:31:34]FM_MakeSignedData done [18:31:34]CreateOFDProtocolMessage [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 11 00 00 [18:31:34]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 17 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 17 00 86 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5B [18:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:31:34]wFMCommunicate OK [18:31:34]CreateOFDProtocolMessage done [18:31:34]OFDSenderStorePacket 76649 [18:31:34]StoreOFDPacket docnum=76649 [18:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 43 01 00 00 2A 28 3B 01 2B 90 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 87 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2B 01 00 35 04 06 00 EC 6F 61 0C 35 7E 94 04 28 26 90 21 08 A6 [18:31:34]CheckFolder [18:31:34]dirname=/storage/ofd_packets [18:31:34]CheckFolder done [18:31:34]ProducePacketName [18:31:34]name=ofd_packets/00076649 [18:31:34]NVStorageSaveData ofd_packets/00076649 [18:31:34]File name is /storage/ofd_packets/00076649 [18:31:34]Write 353 bytes [18:31:34]NVStorageSaveData done [18:31:34]OFDSenderStorePacket done [18:31:34]KKMCreateOFDPacket done [18:31:34]NVStorageSaveData kkm_last_timestamp [18:31:34]File name is /storage/kkm_last_timestamp [18:31:34]Write 4 bytes [18:31:34]NVStorageSaveData done [18:31:34]ExternCall_PrintAddStr [18:31:34]wPrintStart [18:31:34]Write to MH i2c: 01 00 00 87 0B 92 [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: 01 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: 01 07 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: 01 07 00 87 0B 00 00 00 00 00 FF 0F A7 [18:31:34]RasterBufferAndPrint [18:31:34]line Счет N : (3)220776 [18:31:34]line ИНН: 02508201610067 [18:31:34]line Контрольно-Кассовый Чек [18:31:34]line ПРОДАЖА [18:31:34]line Товар: 4700003010407 [18:31:34]line Чай хол Let`s Go! ябл шиповник ПЭТ 1,25л [18:31:34]line 1.000 * 95.00 [18:31:34]line = 95.00 [18:31:34]line НДС 12% НСП 1% [18:31:34]line > о реализуемом товаре [18:31:34]line ИТОГО: 95.00 [18:31:34]line НСП 1% : 0.84 [18:31:34]line НДС 12% : 10.09 [18:31:34]line Наличными: 95.00 [18:31:34]line Безнал.: 0.00 [18:31:34]line Место: АЗС № 144 "Партнер Нефть" [18:31:34]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [18:31:34]line СНО: Общий режим [18:31:34]line Чек 90 20.06.2024 18:31 [18:31:34]line Смена: 393 ФФД: 1.0 [18:31:34]line ЗНМ: 0300000170 [18:31:34]line РНМ: 0000000000095696 [18:31:34]line Версия ККМ: 001 [18:31:34]line ФМ: 0000000000875009 [18:31:34]line ФД: 76649 [18:31:34]line ФПД: 259963113715070 [18:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183135&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76649&fm=259963113715070&tin=02508201610067®Number=0000000000095696&sum=9500 [18:31:34]line 0 [18:31:34]OFD Sender: Processing packet 76649 [packets to send 351, broken 350] [18:31:34]ProducePacketName [18:31:34]name=ofd_packets/00076649 [18:31:34]OFD Sender: To server: pG, [18:31:34]CommunicateWithHost lk.salyk.kg:30040 [18:31:34]ConnectInit lk.salyk.kg [18:31:34]written 0, free lines is 4095 [18:31:35]Connected sock=7 [18:31:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 43 01 00 00 2A 28 3B 01 2B 90 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 87 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2B 01 00 35 04 06 00 EC 6F 61 0C 35 7E 94 04 28 26 90 21 08 A6 [18:31:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 96 03 47 00 66 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2B 01 00 F4 03 04 00 27 1C 74 66 B6 04 01 00 00 B0 72 BF 8F DF 20 AA D8 [18:31:35]CommunicateWithHost err = 0 [18:31:35]CheckOFDResponse [18:31:35]1017 (14) - 77093643461234 [18:31:35]1041 (16) - 0000000000875009 [18:31:35]1040 (4) - 76649 [18:31:35]1012 (4) - 20.06.2024 12:10 [18:31:35]1206 (1) - 0 [18:31:35]OFD Sender: Remove packet 76649 [18:31:35]ProducePacketName [18:31:35]name=ofd_packets/00076649 [18:31:35]NVStorageDeleteData [18:31:35]Write to MH i2c: 01 00 00 B0 0B BB [18:31:35]Write i2c OK [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: 01 [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: 01 07 00 [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: 01 07 00 B0 0B 00 00 00 00 00 E5 0C B3 [18:31:35]RasterBufferAndPrint [18:31:35]line [18:31:35]line [18:31:35]line [18:31:35]line [18:31:35]line [18:31:35]written 0, free lines is 3307 [18:31:35]MH_Cut [18:31:35]Write to MH i2c: D1 01 00 B7 0B 01 94 [18:31:35]Write i2c OK [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: D1 [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: D1 01 00 [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: D1 01 00 B7 0B 00 93 [18:31:35]Write to MH i2c: 01 00 00 B8 0B C3 [18:31:35]Write i2c OK [18:31:35]MH_I2C_Read... [18:31:35]OFD Sender: No OFD packet to send [18:31:36]*** Cut start [18:31:36]*** Partial cut [18:31:36]*** CUTSNS_PIN = 1 [18:31:36]*** CUTSNS_PIN = 0 [18:31:36]*** Brake cut motor [18:31:36]Read from MH i2c: 01 [18:31:36]MH_I2C_Read... [18:31:36]*** Stop cut motor [18:31:36]*** Cut end [18:31:36]Read from MH i2c: 01 07 00 [18:31:36]MH_I2C_Read... [18:31:36]Read from MH i2c: 01 07 00 B8 0B 00 00 00 00 00 FF 0F D8 [18:31:36]process_action close_receipt done [18:31:36]requested_data is exist [18:31:36]produce_requested_data [18:31:36]requested_item fm.sn is exist - process it [18:31:36]wFMCommunicate request_size=4 [18:31:36]MH_SAM_APDU [18:31:36]CAPDU: 80 11 00 00 [18:31:36]Write to MH i2c: E2 08 00 B9 0B 80 11 00 00 00 00 00 00 3E [18:31:36]Write i2c OK [18:31:36]MH_I2C_Read... [18:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:36]Read from MH i2c: E2 [18:31:36]MH_I2C_Read... [18:31:36]Read from MH i2c: E2 17 00 [18:31:36]MH_I2C_Read... [18:31:36]Read from MH i2c: E2 17 00 B9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8E [18:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:31:36]wFMCommunicate OK [18:31:36]requested_item fd.num is exist - process it [18:31:36]SAM_PROTO_GetFieldsCounters [18:31:36]wFMCommunicate request_size=4 [18:31:36]MH_SAM_APDU [18:31:36]CAPDU: 80 13 00 00 [18:31:36]Write to MH i2c: E2 08 00 BA 0B 80 13 00 00 00 00 00 00 41 [18:31:36]Write i2c OK [18:31:36]MH_I2C_Read... [18:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:36]Read from MH i2c: E2 [18:31:36]MH_I2C_Read... [18:31:36]Read from MH i2c: E2 62 00 [18:31:36]MH_I2C_Read... [18:31:36]Read from MH i2c: E2 62 00 BA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 69 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [18:31:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 69 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:36]wFMCommunicate OK [18:31:36]SAM_PROTO_GetFieldsCounters done [18:31:36]requested_item shift.num is exist - process it [18:31:36]requested_item shift.opened is exist - process it [18:31:36]req_shift_opened [18:31:36]FM_GetShiftState [18:31:36]SAM_PROTO_GetShiftState [18:31:36]wFMCommunicate request_size=4 [18:31:36]MH_SAM_APDU [18:31:36]CAPDU: 80 13 01 00 [18:31:37]Write to MH i2c: E2 08 00 BB 0B 80 13 01 00 00 00 00 00 43 [18:31:37]Write i2c OK [18:31:37]MH_I2C_Read... [18:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:37]Read from MH i2c: E2 [18:31:37]MH_I2C_Read... [18:31:37]Read from MH i2c: E2 0E 00 [18:31:37]MH_I2C_Read... [18:31:37]Read from MH i2c: E2 0E 00 BB 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 1F [18:31:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:31:37]wFMCommunicate OK [18:31:37]SAM_PROTO_GetShiftState done [18:31:37]FM_GetShiftState done [18:31:37]req_shift_opened done [18:31:37]requested_item shift.open_date is exist - process it [18:31:37]req_shift_open_date [18:31:37]req_shift_open_date done [18:31:37]produce_requested_data done [18:31:37]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76649,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [18:31:37]process_action_free close_receipt [18:31:37]json_value_free [18:31:37]json_value_free done [18:31:37]process_json_proto returns [18:31:37]Send response to host [18:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76649,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [18:31:37]free response buf [18:31:37]execute_script done [18:31:37]execute_script returns [18:31:37]free content buf [18:31:37]Sock 9.Close socket [18:31:37]Sock 9.Thread stoped [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:51]accept exits with 10 [18:32:51]New connection [18:32:51]New thread 3066805604 created [18:32:51]Thread 3066948964 joined [18:32:51]Waiting for new connection... [18:32:51] Sock 10.Parse request [18:32:51]Sock 10.Check first char [18:32:51]Sock 10.First char is OK [18:32:51]request: POST /json_proto HTTP/1.0 [18:32:51]Method: POST [18:32:51]URL: /json_proto [18:32:51]Method is POST - this is cgi request [18:32:51]url: /json_proto [18:32:51]query_string will be loaded in cgi processing [18:32:51]execute_cgi json_proto POST (null) [18:32:51]execute_cgi path=json_proto method=POST [18:32:51]POST find Content-Length [18:32:51]Host: 172.17.39.195:8080 [18:32:51]Content-Length: 1276 [18:32:51]Content-Type: application/json [18:32:51] [18:32:51]POST finish read [18:32:51]Found Content-Length = 1276 [18:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220777", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:51]execute_script... [18:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220777", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:51]POST & json_proto [18:32:51]process_json_proto [18:32:51]json parsed OK: [18:32:51]protocol is kg_v1.0 [18:32:51]action value=close_receipt [18:32:51]process_action close_receipt [18:32:51]cmd_close_receipt [18:32:51]MH_GetDate [18:32:51]Write to MH i2c: F0 00 00 BC 0B B6 [18:32:51]Write i2c OK [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: F0 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: F0 09 00 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: F0 09 00 BC 0B 00 D5 75 74 66 99 81 91 64 F2 [18:32:51]GetLastDocTimeStamp 1718908295 [18:32:51]current date 1718908373 [18:32:51]FM_GetShiftState [18:32:51]SAM_PROTO_GetShiftState [18:32:51]wFMCommunicate request_size=4 [18:32:51]MH_SAM_APDU [18:32:51]CAPDU: 80 13 01 00 [18:32:51]Write to MH i2c: E2 08 00 BD 0B 80 13 01 00 00 00 00 00 45 [18:32:51]Write i2c OK [18:32:51]MH_I2C_Read... [18:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:51]Read from MH i2c: E2 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: E2 0E 00 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: E2 0E 00 BD 0B 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 21 [18:32:51]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:32:51]wFMCommunicate OK [18:32:51]SAM_PROTO_GetShiftState done [18:32:51]FM_GetShiftState done [18:32:51]opened in 1718843774 [18:32:51]opened+sec_in_day 1718930174 [18:32:51]quantity*price = 11000 [18:32:51]sum+1 = 11001 [18:32:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.69 НДС 12% : 32.39 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 91 20.06.2024 18:32 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76650 ФПД: 105186231279775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183254&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76650&fm=105186231279775&tin=02508201610067®Number=0000000000095696&sum=30500 0 [18:32:52]StoreToDocumentArchive [18:32:52]shift 393 fd 76650 [18:32:52]save to /storage/0393/doc_00076650 [18:32:52]save last doc name /storage/0393/doc_00076650 to /storage/kkm_last_doc_name [18:32:52]save OK [18:32:52]Clear old archive folders... [18:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=546 [18:32:52]tlvbuf is B6F54140 [18:32:52]SAM_PROTO_ClearQueue [18:32:52]wFMCommunicate request_size=4 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 09 00 00 [18:32:52]Write to MH i2c: E2 08 00 CA 0B 80 09 00 00 00 00 00 00 47 [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [18:32:52]RAPDU: 90 00 [18:32:52]wFMCommunicate OK [18:32:52]SAM_PROTO_ClearQueue done [18:32:52]KKMCreateOFDPacket [18:32:52]OFDProtocolAddRootSTLVToBuf [18:32:52]FM_MakeSignedData [18:32:52]FM_MakeSignedData [18:32:52]SAM_PROTO_SignData [18:32:52]wFMCommunicate request_size=4 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 0D 01 02 [18:32:52]Write to MH i2c: E2 08 00 CB 0B 80 0D 01 02 00 00 00 00 4F [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [18:32:52]RAPDU: 90 00 [18:32:52]wFMCommunicate OK [18:32:52]wFMCommunicate request_size=255 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 0D 02 02 FA 03 00 22 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [18:32:53]Write to MH i2c: E2 02 01 CC 0B 80 0D 02 02 FA 00 03 00 22 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 43 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:53]Read from MH i2c: E2 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 03 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [18:32:53]RAPDU: 90 00 [18:32:53]wFMCommunicate OK [18:32:53]wFMCommunicate request_size=255 [18:32:53]MH_SAM_APDU [18:32:53]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 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 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D6 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [18:32:53]Write to MH i2c: E2 02 01 CD 0B 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 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 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D6 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 E0 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:53]Read from MH i2c: E2 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 03 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [18:32:53]RAPDU: 90 00 [18:32:53]wFMCommunicate OK [18:32:53]wFMCommunicate request_size=55 [18:32:53]MH_SAM_APDU [18:32:53]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6A 2B 01 00 35 04 06 00 5F AA 93 F3 60 9F [18:32:53]Write to MH i2c: E2 3A 00 CE 0B 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6A 2B 01 00 35 04 06 00 5F AA 93 F3 60 9F 00 00 D7 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:53]Read from MH i2c: E2 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 03 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [18:32:53]RAPDU: 90 00 [18:32:53]wFMCommunicate OK [18:32:53]wFMCommunicate request_size=4 [18:32:53]MH_SAM_APDU [18:32:53]CAPDU: 80 0D 03 02 [18:32:53]Write to MH i2c: E2 08 00 CF 0B 80 0D 03 02 00 00 00 00 55 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:53]Read from MH i2c: E2 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 0B 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 0B 00 CF 0B 00 2F 23 37 3A 88 B7 27 37 90 00 B6 [18:32:53]RAPDU: 2F 23 37 3A 88 B7 27 37 90 00 [18:32:53]wFMCommunicate OK [18:32:53]SAM_PROTO_SignData done [18:32:53]FM_MakeSignedData done [18:32:53]CreateOFDProtocolMessage [18:32:53]wFMCommunicate request_size=4 [18:32:53]MH_SAM_APDU [18:32:53]CAPDU: 80 11 00 00 [18:32:53]Write to MH i2c: E2 08 00 D0 0B 80 11 00 00 00 00 00 00 55 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:53]Read from MH i2c: E2 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 17 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 17 00 D0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A5 [18:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:32:53]wFMCommunicate OK [18:32:53]CreateOFDProtocolMessage done [18:32:53]OFDSenderStorePacket 76650 [18:32:53]StoreOFDPacket docnum=76650 [18:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 36 02 00 00 29 6D 2E 02 E5 07 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 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 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D6 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6A 2B 01 00 35 04 06 00 5F AA 93 F3 60 9F 2F 23 37 3A 88 B7 27 37 [18:32:53]CheckFolder [18:32:53]dirname=/storage/ofd_packets [18:32:53]CheckFolder done [18:32:53]ProducePacketName [18:32:53]name=ofd_packets/00076650 [18:32:53]NVStorageSaveData ofd_packets/00076650 [18:32:53]File name is /storage/ofd_packets/00076650 [18:32:53]Write 596 bytes [18:32:53]NVStorageSaveData done [18:32:53]OFDSenderStorePacket done [18:32:53]KKMCreateOFDPacket done [18:32:53]NVStorageSaveData kkm_last_timestamp [18:32:53]File name is /storage/kkm_last_timestamp [18:32:53]Write 4 bytes [18:32:53]NVStorageSaveData done [18:32:53]ExternCall_PrintAddStr [18:32:53]wPrintStart [18:32:53]Write to MH i2c: 01 00 00 D1 0B DC [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 07 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [18:32:53]RasterBufferAndPrint [18:32:53]line Счет N : (3)220777 [18:32:53]line ИНН: 02508201610067 [18:32:53]line Контрольно-Кассовый Чек [18:32:53]line ПРОДАЖА [18:32:53]line Товар: 4650243871828 [18:32:53]line Gorilla эн нап манго-кокос 0,45 ж/б [18:32:53]line 1.000 * 110.00 [18:32:53]line = 110.00 [18:32:53]line НДС 12% НСП 1% [18:32:53]line > о реализуемом товаре [18:32:53]line Товар: 4870022003305 [18:32:53]line Напиток Gorilla эн нат ж/б 0,5/0,45л [18:32:53]line 1.000 * 110.00 [18:32:53]line = 110.00 [18:32:53]line НДС 12% НСП 1% [18:32:53]line > о реализуемом товаре [18:32:53]line Товар: 4700000480364 [18:32:53]line Напиток энерг Nitro экзотик 0.45 ж/б [18:32:53]line 1.000 * 85.00 [18:32:53]line = 85.00 [18:32:53]line НДС 12% НСП 1% [18:32:53]line > о реализуемом товаре [18:32:53]line ИТОГО: 305.00 [18:32:53]line НСП 1% : 2.69 [18:32:53]line НДС 12% : 32.39 [18:32:53]line Наличными: 305.00 [18:32:53]line Безнал.: 0.00 [18:32:53]line Место: АЗС № 144 "Партнер Нефть" [18:32:53]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [18:32:53]line СНО: Общий режим [18:32:53]line Чек 91 20.06.2024 18:32 [18:32:53]line Смена: 393 ФФД: 1.0 [18:32:53]line ЗНМ: 0300000170 [18:32:53]line РНМ: 0000000000095696 [18:32:53]line Версия ККМ: 001 [18:32:53]line ФМ: 0000000000875009 [18:32:53]line ФД: 76650 [18:32:53]line ФПД: 105186231279775 [18:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183254&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76650&fm=105186231279775&tin=02508201610067®Number=0000000000095696&sum=30500 [18:32:53]line 0 [18:32:53]written 0, free lines is 4095 [18:32:53]OFD Sender: Processing packet 76650 [packets to send 351, broken 350] [18:32:53]ProducePacketName [18:32:53]name=ofd_packets/00076650 [18:32:53]OFD Sender: To server: pG, [18:32:53]CommunicateWithHost lk.salyk.kg:30040 [18:32:53]ConnectInit lk.salyk.kg [18:32:54]Connected sock=9 [18:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 36 02 00 00 29 6D 2E 02 E5 07 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 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 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D6 75 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6A 2B 01 00 35 04 06 00 5F AA 93 F3 60 9F 2F 23 37 3A 88 B7 27 37 [18:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C3 F3 47 00 B5 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6A 2B 01 00 F4 03 04 00 76 1C 74 66 B6 04 01 00 00 DF A8 BA D2 2D CF CF FB [18:32:54]CommunicateWithHost err = 0 [18:32:54]CheckOFDResponse [18:32:54]1017 (14) - 77093643461234 [18:32:54]1041 (16) - 0000000000875009 [18:32:54]1040 (4) - 76650 [18:32:54]1012 (4) - 20.06.2024 12:11 [18:32:54]1206 (1) - 0 [18:32:54]OFD Sender: Remove packet 76650 [18:32:54]ProducePacketName [18:32:54]name=ofd_packets/00076650 [18:32:54]NVStorageDeleteData [18:32:54]Write to MH i2c: 01 00 00 08 0C 14 [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: 01 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: 01 07 00 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 17 0C 3E [18:32:54]RasterBufferAndPrint [18:32:54]line [18:32:54]line [18:32:54]line [18:32:54]line [18:32:54]line [18:32:54]written 0, free lines is 3100 [18:32:54]MH_Cut [18:32:54]Write to MH i2c: D1 01 00 0F 0C 01 ED [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: D1 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: D1 01 00 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: D1 01 00 0F 0C 00 EC [18:32:54]Write to MH i2c: 01 00 00 10 0C 1C [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:54]OFD Sender: No OFD packet to send [18:32:55]*** Cut start [18:32:55]*** Partial cut [18:32:55]*** CUTSNS_PIN = 1 [18:32:55]*** CUTSNS_PIN = 0 [18:32:55]*** Brake cut motor [18:32:55]Read from MH i2c: 01 [18:32:55]MH_I2C_Read... [18:32:55]*** Stop cut motor [18:32:55]*** Cut end [18:32:55]Read from MH i2c: 01 07 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 FF 0F 31 [18:32:55]process_action close_receipt done [18:32:55]requested_data is exist [18:32:55]produce_requested_data [18:32:55]requested_item fm.sn is exist - process it [18:32:55]wFMCommunicate request_size=4 [18:32:55]MH_SAM_APDU [18:32:55]CAPDU: 80 11 00 00 [18:32:55]Write to MH i2c: E2 08 00 11 0C 80 11 00 00 00 00 00 00 97 [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 17 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 17 00 11 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E7 [18:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:32:55]wFMCommunicate OK [18:32:55]requested_item fd.num is exist - process it [18:32:55]SAM_PROTO_GetFieldsCounters [18:32:55]wFMCommunicate request_size=4 [18:32:55]MH_SAM_APDU [18:32:55]CAPDU: 80 13 00 00 [18:32:55]Write to MH i2c: E2 08 00 12 0C 80 13 00 00 00 00 00 00 9A [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:56]Read from MH i2c: E2 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 62 00 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 62 00 12 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:56]wFMCommunicate OK [18:32:56]SAM_PROTO_GetFieldsCounters done [18:32:56]requested_item shift.num is exist - process it [18:32:56]requested_item shift.opened is exist - process it [18:32:56]req_shift_opened [18:32:56]FM_GetShiftState [18:32:56]SAM_PROTO_GetShiftState [18:32:56]wFMCommunicate request_size=4 [18:32:56]MH_SAM_APDU [18:32:56]CAPDU: 80 13 01 00 [18:32:56]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:56]Read from MH i2c: E2 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 0E 00 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 78 [18:32:56]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [18:32:56]wFMCommunicate OK [18:32:56]SAM_PROTO_GetShiftState done [18:32:56]FM_GetShiftState done [18:32:56]req_shift_opened done [18:32:56]requested_item shift.open_date is exist - process it [18:32:56]req_shift_open_date [18:32:56]req_shift_open_date done [18:32:56]produce_requested_data done [18:32:56]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76650,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [18:32:56]process_action_free close_receipt [18:32:56]json_value_free [18:32:56]json_value_free done [18:32:56]process_json_proto returns [18:32:56]Send response to host [18:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76650,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [18:32:56]free response buf [18:32:56]execute_script done [18:32:56]execute_script returns [18:32:56]free content buf [18:32:56]Sock 10.Close socket [18:32:56]Sock 10.Thread stoped [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]accept exits with 7 [19:04:23]New connection [19:04:23]New thread 3066948964 created [19:04:23]Thread 3066805604 joined [19:04:23]Waiting for new connection... [19:04:23]OFD Sender: No OFD packet to send [19:04:23] Sock 7.Parse request [19:04:23]Sock 7.Check first char [19:04:23]Sock 7.First char is OK [19:04:23]request: POST /json_proto HTTP/1.0 [19:04:23]Method: POST [19:04:23]URL: /json_proto [19:04:23]Method is POST - this is cgi request [19:04:23]url: /json_proto [19:04:23]query_string will be loaded in cgi processing [19:04:23]execute_cgi json_proto POST (null) [19:04:23]execute_cgi path=json_proto method=POST [19:04:23]POST find Content-Length [19:04:23]Host: 172.17.39.195:8080 [19:04:23]Content-Length: 1318 [19:04:23]Content-Type: application/json [19:04:23] [19:04:23]POST finish read [19:04:23]Found Content-Length = 1318 [19:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220778", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:23]execute_script... [19:04: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 : (3)220778", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:23]POST & json_proto [19:04:23]process_json_proto [19:04:23]json parsed OK: [19:04:23]protocol is kg_v1.0 [19:04:23]action value=close_receipt [19:04:23]process_action close_receipt [19:04:23]cmd_close_receipt [19:04:23]MH_GetDate [19:04:23]Write to MH i2c: F0 00 00 14 0C 0F [19:04:23]Write i2c OK [19:04:23]MH_I2C_Read... [19:04:23]Read from MH i2c: F0 [19:04:23]MH_I2C_Read... [19:04:23]Read from MH i2c: F0 09 00 [19:04:23]MH_I2C_Read... [19:04:23]Read from MH i2c: F0 09 00 14 0C 00 39 7D 74 66 99 81 91 64 B7 [19:04:23]GetLastDocTimeStamp 1718908374 [19:04:23]current date 1718910265 [19:04:23]FM_GetShiftState [19:04:23]SAM_PROTO_GetShiftState [19:04:23]wFMCommunicate request_size=4 [19:04:23]MH_SAM_APDU [19:04:23]CAPDU: 80 13 01 00 [19:04:23]Write to MH i2c: E2 08 00 15 0C 80 13 01 00 00 00 00 00 9E [19:04:23]Write i2c OK [19:04:23]MH_I2C_Read... [19:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:23]Read from MH i2c: E2 [19:04:23]MH_I2C_Read... [19:04:23]Read from MH i2c: E2 0E 00 [19:04:23]MH_I2C_Read... [19:04:23]Read from MH i2c: E2 0E 00 15 0C 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 7A [19:04:23]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:04:23]wFMCommunicate OK [19:04:23]SAM_PROTO_GetShiftState done [19:04:23]FM_GetShiftState done [19:04:23]opened in 1718843774 [19:04:23]opened+sec_in_day 1718930174 [19:04:23]quantity*price = 8000 [19:04:23]sum+1 = 8001 [19:04:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607015232868 Вафли Яшкино в шоколадной глазури 200г 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681079 Grizzly волнистые Сладкий чили 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 283.00 НСП 1% : 2.51 НДС 12% : 30.06 Наличными: 283.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 92 20.06.2024 19:04 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76651 ФПД: 260951189619771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190426&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76651&fm=260951189619771&tin=02508201610067®Number=0000000000095696&sum=28300 0 [19:04:24]StoreToDocumentArchive [19:04:24]shift 393 fd 76651 [19:04:24]save to /storage/0393/doc_00076651 [19:04:24]save last doc name /storage/0393/doc_00076651 to /storage/kkm_last_doc_name [19:04:24]save OK [19:04:24]Clear old archive folders... [19:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=558 [19:04:24]tlvbuf is 00E83740 [19:04:24]SAM_PROTO_ClearQueue [19:04:24]wFMCommunicate request_size=4 [19:04:24]MH_SAM_APDU [19:04:24]CAPDU: 80 09 00 00 [19:04:24]Write to MH i2c: E2 08 00 22 0C 80 09 00 00 00 00 00 00 A0 [19:04:24]Write i2c OK [19:04:24]MH_I2C_Read... [19:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:24]Read from MH i2c: E2 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 03 00 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [19:04:24]RAPDU: 90 00 [19:04:24]wFMCommunicate OK [19:04:24]SAM_PROTO_ClearQueue done [19:04:24]KKMCreateOFDPacket [19:04:24]OFDProtocolAddRootSTLVToBuf [19:04:24]FM_MakeSignedData [19:04:24]FM_MakeSignedData [19:04:24]SAM_PROTO_SignData [19:04:24]wFMCommunicate request_size=4 [19:04:24]MH_SAM_APDU [19:04:24]CAPDU: 80 0D 01 02 [19:04:24]Write to MH i2c: E2 08 00 23 0C 80 0D 01 02 00 00 00 00 A8 [19:04:24]Write i2c OK [19:04:24]MH_I2C_Read... [19:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:24]Read from MH i2c: E2 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 03 00 [19:04:24]MH_I2C_Read... [19:04:24]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [19:04:24]RAPDU: 90 00 [19:04:24]wFMCommunicate OK [19:04:24]wFMCommunicate request_size=255 [19:04:24]MH_SAM_APDU [19:04:24]CAPDU: 80 0D 02 02 FA 03 00 2E 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 [19:04:25]Write to MH i2c: E2 02 01 24 0C 80 0D 02 02 FA 00 03 00 2E 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 FD [19:04:25]Write i2c OK [19:04:25]MH_I2C_Read... [19:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:25]Read from MH i2c: E2 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 03 00 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [19:04:25]RAPDU: 90 00 [19:04:25]wFMCommunicate OK [19:04:25]wFMCommunicate request_size=255 [19:04:25]MH_SAM_APDU [19:04:25]CAPDU: 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3A 7D 74 66 0E 04 04 00 89 01 00 00 B9 [19:04:25]Write to MH i2c: E2 02 01 25 0C 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3A 7D 74 66 0E 04 04 00 89 01 00 00 B9 00 00 56 [19:04:25]Write i2c OK [19:04:25]MH_I2C_Read... [19:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:25]Read from MH i2c: E2 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 03 00 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [19:04:25]RAPDU: 90 00 [19:04:25]wFMCommunicate OK [19:04:25]wFMCommunicate request_size=67 [19:04:25]MH_SAM_APDU [19:04:25]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2B 01 00 35 04 06 00 ED 55 6E F6 04 3B [19:04:25]Write to MH i2c: E2 46 00 26 0C 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2B 01 00 35 04 06 00 ED 55 6E F6 04 3B 00 00 87 [19:04:25]Write i2c OK [19:04:25]MH_I2C_Read... [19:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:25]Read from MH i2c: E2 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 03 00 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 03 00 26 0C 00 90 00 A6 [19:04:25]RAPDU: 90 00 [19:04:25]wFMCommunicate OK [19:04:25]wFMCommunicate request_size=4 [19:04:25]MH_SAM_APDU [19:04:25]CAPDU: 80 0D 03 02 [19:04:25]Write to MH i2c: E2 08 00 27 0C 80 0D 03 02 00 00 00 00 AE [19:04:25]Write i2c OK [19:04:25]MH_I2C_Read... [19:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:25]Read from MH i2c: E2 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 0B 00 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 0B 00 27 0C 00 BF B1 89 0E D6 EF 6A A9 90 00 8E [19:04:25]RAPDU: BF B1 89 0E D6 EF 6A A9 90 00 [19:04:25]wFMCommunicate OK [19:04:25]SAM_PROTO_SignData done [19:04:25]FM_MakeSignedData done [19:04:25]CreateOFDProtocolMessage [19:04:25]wFMCommunicate request_size=4 [19:04:25]MH_SAM_APDU [19:04:25]CAPDU: 80 11 00 00 [19:04:25]Write to MH i2c: E2 08 00 28 0C 80 11 00 00 00 00 00 00 AE [19:04:25]Write i2c OK [19:04:25]MH_I2C_Read... [19:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:25]Read from MH i2c: E2 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 17 00 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: E2 17 00 28 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FE [19:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:04:25]wFMCommunicate OK [19:04:25]CreateOFDProtocolMessage done [19:04:25]OFDSenderStorePacket 76651 [19:04:25]StoreOFDPacket docnum=76651 [19:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 42 02 00 00 1A 62 3A 02 8C AD 5A 03 01 00 03 00 2E 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3A 7D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2B 01 00 35 04 06 00 ED 55 6E F6 04 3B BF B1 89 0E D6 EF 6A A9 [19:04:25]CheckFolder [19:04:25]dirname=/storage/ofd_packets [19:04:25]CheckFolder done [19:04:25]ProducePacketName [19:04:25]name=ofd_packets/00076651 [19:04:25]NVStorageSaveData ofd_packets/00076651 [19:04:25]File name is /storage/ofd_packets/00076651 [19:04:25]Write 608 bytes [19:04:25]NVStorageSaveData done [19:04:25]OFDSenderStorePacket done [19:04:25]KKMCreateOFDPacket done [19:04:25]NVStorageSaveData kkm_last_timestamp [19:04:25]File name is /storage/kkm_last_timestamp [19:04:25]Write 4 bytes [19:04:25]NVStorageSaveData done [19:04:25]ExternCall_PrintAddStr [19:04:25]wPrintStart [19:04:25]Write to MH i2c: 01 00 00 29 0C 35 [19:04:25]Write i2c OK [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: 01 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: 01 07 00 [19:04:25]MH_I2C_Read... [19:04:25]Read from MH i2c: 01 07 00 29 0C 00 00 00 00 00 FF 0F 4A [19:04:25]RasterBufferAndPrint [19:04:25]line Счет N : (3)220778 [19:04:25]line ИНН: 02508201610067 [19:04:25]line Контрольно-Кассовый Чек [19:04:25]line ПРОДАЖА [19:04:25]line Товар: 3800020453407 [19:04:25]line Nestle KIT-KAT батончик chunky 36x40г [19:04:25]line 1.000 * 80.00 [19:04:25]line = 80.00 [19:04:25]line НДС 12% НСП 1% [19:04:25]line > о реализуемом товаре [19:04:25]line Товар: 4607015232868 [19:04:25]line Вафли Яшкино в шоколадной глазури 200г [19:04:25]line 1.000 * 113.00 [19:04:25]line = 113.00 [19:04:25]line НДС 12% НСП 1% [19:04:25]line > о реализуемом товаре [19:04:25]line Товар: 4870235681079 [19:04:25]line Grizzly волнистые Сладкий чили 55 гр [19:04:25]line 1.000 * 90.00 [19:04:25]line = 90.00 [19:04:25]line НДС 12% НСП 1% [19:04:25]line > о реализуемом товаре [19:04:25]line ИТОГО: 283.00 [19:04:25]line НСП 1% : 2.51 [19:04:25]line НДС 12% : 30.06 [19:04:25]line Наличными: 283.00 [19:04:25]line Безнал.: 0.00 [19:04:25]line Место: АЗС № 144 "Партнер Нефть" [19:04:25]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:04:25]line СНО: Общий режим [19:04:25]line Чек 92 20.06.2024 19:04 [19:04:25]line Смена: 393 ФФД: 1.0 [19:04:25]line ЗНМ: 0300000170 [19:04:25]line РНМ: 0000000000095696 [19:04:25]line Версия ККМ: 001 [19:04:25]line ФМ: 0000000000875009 [19:04:25]line ФД: 76651 [19:04:25]line ФПД: 260951189619771 [19:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190426&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76651&fm=260951189619771&tin=02508201610067®Number=0000000000095696&sum=28300 [19:04:25]line 0 [19:04:25]written 0, free lines is 4095 [19:04:25]OFD Sender: Processing packet 76651 [packets to send 351, broken 350] [19:04:25]ProducePacketName [19:04:25]name=ofd_packets/00076651 [19:04:25]OFD Sender: To server: pG, [19:04:25]CommunicateWithHost lk.salyk.kg:30040 [19:04:25]ConnectInit lk.salyk.kg [19:04:26]Connected sock=9 [19:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 42 02 00 00 1A 62 3A 02 8C AD 5A 03 01 00 03 00 2E 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 3A 7D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2B 01 00 35 04 06 00 ED 55 6E F6 04 3B BF B1 89 0E D6 EF 6A A9 [19:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 6E AE 47 00 5E 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2B 01 00 F4 03 04 00 DA 23 74 66 B6 04 01 00 00 70 AD 79 6A 9E 51 2B 98 [19:04:26]CommunicateWithHost err = 0 [19:04:26]CheckOFDResponse [19:04:26]1017 (14) - 77093643461234 [19:04:26]1041 (16) - 0000000000875009 [19:04:26]1040 (4) - 76651 [19:04:26]1012 (4) - 20.06.2024 12:43 [19:04:26]1206 (1) - 0 [19:04:26]OFD Sender: Remove packet 76651 [19:04:26]ProducePacketName [19:04:26]name=ofd_packets/00076651 [19:04:26]NVStorageDeleteData [19:04:26]Write to MH i2c: 01 00 00 60 0C 6C [19:04:26]Write i2c OK [19:04:26]MH_I2C_Read... [19:04:26]Read from MH i2c: 01 [19:04:26]MH_I2C_Read... [19:04:26]Read from MH i2c: 01 07 00 [19:04:26]MH_I2C_Read... [19:04:26]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 28 0C A7 [19:04:26]RasterBufferAndPrint [19:04:26]line [19:04:26]line [19:04:26]line [19:04:26]line [19:04:26]line [19:04:26]written 0, free lines is 3117 [19:04:26]MH_Cut [19:04:26]Write to MH i2c: D1 01 00 67 0C 01 45 [19:04:26]Write i2c OK [19:04:26]MH_I2C_Read... [19:04:26]Read from MH i2c: D1 [19:04:26]MH_I2C_Read... [19:04:26]Read from MH i2c: D1 01 00 [19:04:26]MH_I2C_Read... [19:04:26]Read from MH i2c: D1 01 00 67 0C 00 44 [19:04:26]Write to MH i2c: 01 00 00 68 0C 74 [19:04:26]Write i2c OK [19:04:26]MH_I2C_Read... [19:04:26]OFD Sender: No OFD packet to send [19:04:27]*** Cut start [19:04:27]*** Partial cut [19:04:27]*** CUTSNS_PIN = 1 [19:04:27]*** CUTSNS_PIN = 0 [19:04:27]*** Brake cut motor [19:04:27]Read from MH i2c: 01 [19:04:27]MH_I2C_Read... [19:04:27]*** Stop cut motor [19:04:27]*** Cut end [19:04:27]Read from MH i2c: 01 07 00 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [19:04:27]process_action close_receipt done [19:04:27]requested_data is exist [19:04:27]produce_requested_data [19:04:27]requested_item fm.sn is exist - process it [19:04:27]wFMCommunicate request_size=4 [19:04:27]MH_SAM_APDU [19:04:27]CAPDU: 80 11 00 00 [19:04:27]Write to MH i2c: E2 08 00 69 0C 80 11 00 00 00 00 00 00 EF [19:04:27]Write i2c OK [19:04:27]MH_I2C_Read... [19:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:27]Read from MH i2c: E2 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: E2 17 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 17 00 69 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3F [19:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:04:28]wFMCommunicate OK [19:04:28]requested_item fd.num is exist - process it [19:04:28]SAM_PROTO_GetFieldsCounters [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 13 00 00 [19:04:28]Write to MH i2c: E2 08 00 6A 0C 80 13 00 00 00 00 00 00 F2 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 62 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 62 00 6A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [19:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:28]wFMCommunicate OK [19:04:28]SAM_PROTO_GetFieldsCounters done [19:04:28]requested_item shift.num is exist - process it [19:04:28]requested_item shift.opened is exist - process it [19:04:28]req_shift_opened [19:04:28]FM_GetShiftState [19:04:28]SAM_PROTO_GetShiftState [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 13 01 00 [19:04:28]Write to MH i2c: E2 08 00 6B 0C 80 13 01 00 00 00 00 00 F4 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0E 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0E 00 6B 0C 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D0 [19:04:28]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:04:28]wFMCommunicate OK [19:04:28]SAM_PROTO_GetShiftState done [19:04:28]FM_GetShiftState done [19:04:28]req_shift_opened done [19:04:28]requested_item shift.open_date is exist - process it [19:04:28]req_shift_open_date [19:04:28]req_shift_open_date done [19:04:28]produce_requested_data done [19:04:28]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76651,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:04:28]process_action_free close_receipt [19:04:28]json_value_free [19:04:28]json_value_free done [19:04:28]process_json_proto returns [19:04:28]Send response to host [19:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76651,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:04:28]free response buf [19:04:28]execute_script done [19:04:28]execute_script returns [19:04:28]free content buf [19:04:28]Sock 7.Close socket [19:04:28]Sock 7.Thread stoped [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:29]accept exits with 10 [19:14:29]New connection [19:14:29]New thread 3066805604 created [19:14:29]Thread 3066948964 joined [19:14:29]Waiting for new connection... [19:14:29] Sock 10.Parse request [19:14:29]Sock 10.Check first char [19:14:29]Sock 10.First char is OK [19:14:29]request: POST /json_proto HTTP/1.0 [19:14:29]Method: POST [19:14:29]URL: /json_proto [19:14:29]Method is POST - this is cgi request [19:14:29]url: /json_proto [19:14:29]query_string will be loaded in cgi processing [19:14:29]execute_cgi json_proto POST (null) [19:14:29]execute_cgi path=json_proto method=POST [19:14:29]POST find Content-Length [19:14:29]Host: 172.17.39.195:8080 [19:14:29]Content-Length: 700 [19:14:29]Content-Type: application/json [19:14:29] [19:14:29]POST finish read [19:14:29]Found Content-Length = 700 [19:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220779", "tax_sys" : 0, "items" : [ { "code": "4700003010407", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u044F\u0431\u043B \u0448\u0438\u043F\u043E\u0432\u043D\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:29]execute_script... [19: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 : (3)220779", "tax_sys" : 0, "items" : [ { "code": "4700003010407", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u044F\u0431\u043B \u0448\u0438\u043F\u043E\u0432\u043D\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:29]POST & json_proto [19:14:29]process_json_proto [19:14:29]json parsed OK: [19:14:29]protocol is kg_v1.0 [19:14:29]action value=close_receipt [19:14:29]process_action close_receipt [19:14:29]cmd_close_receipt [19:14:29]MH_GetDate [19:14:29]Write to MH i2c: F0 00 00 6C 0C 67 [19:14:29]Write i2c OK [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: F0 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: F0 09 00 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: F0 09 00 6C 0C 00 98 7F 74 66 99 81 91 64 70 [19:14:29]GetLastDocTimeStamp 1718910266 [19:14:29]current date 1718910872 [19:14:29]FM_GetShiftState [19:14:29]SAM_PROTO_GetShiftState [19:14:29]wFMCommunicate request_size=4 [19:14:29]MH_SAM_APDU [19:14:29]CAPDU: 80 13 01 00 [19:14:29]Write to MH i2c: E2 08 00 6D 0C 80 13 01 00 00 00 00 00 F6 [19:14:29]Write i2c OK [19:14:29]MH_I2C_Read... [19:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:29]Read from MH i2c: E2 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 0E 00 [19:14:29]MH_I2C_Read... [19:14:29]Read from MH i2c: E2 0E 00 6D 0C 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D2 [19:14:29]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:14:29]wFMCommunicate OK [19:14:29]SAM_PROTO_GetShiftState done [19:14:29]FM_GetShiftState done [19:14:29]opened in 1718843774 [19:14:29]opened+sec_in_day 1718930174 [19:14:29]quantity*price = 9500 [19:14:29]sum+1 = 9501 [19:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 93 20.06.2024 19:14 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76652 ФПД: 129098927413142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191432&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76652&fm=129098927413142&tin=02508201610067®Number=0000000000095696&sum=9500 0 [19:14:31]StoreToDocumentArchive [19:14:31]shift 393 fd 76652 [19:14:31]save to /storage/0393/doc_00076652 [19:14:31]save last doc name /storage/0393/doc_00076652 to /storage/kkm_last_doc_name [19:14:31]save OK [19:14:31]Clear old archive folders... [19:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=303 [19:14:31]tlvbuf is 00EB86A0 [19:14:31]SAM_PROTO_ClearQueue [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 09 00 00 [19:14:31]Write to MH i2c: E2 08 00 7A 0C 80 09 00 00 00 00 00 00 F8 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]SAM_PROTO_ClearQueue done [19:14:31]KKMCreateOFDPacket [19:14:31]OFDProtocolAddRootSTLVToBuf [19:14:31]FM_MakeSignedData [19:14:31]FM_MakeSignedData [19:14:31]SAM_PROTO_SignData [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 0D 01 02 [19:14:31]Write to MH i2c: E2 08 00 7B 0C 80 0D 01 02 00 00 00 00 00 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]wFMCommunicate request_size=255 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 98 7F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D [19:14:31]Write to MH i2c: E2 02 01 7C 0C 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 98 7F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 00 00 DF [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]wFMCommunicate request_size=62 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2B 01 00 35 04 06 00 75 6A 2F B5 97 96 [19:14:31]Write to MH i2c: E2 41 00 7D 0C 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2B 01 00 35 04 06 00 75 6A 2F B5 97 96 00 00 CD [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [19:14:31]RAPDU: 90 00 [19:14:31]wFMCommunicate OK [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 0D 03 02 [19:14:31]Write to MH i2c: E2 08 00 7E 0C 80 0D 03 02 00 00 00 00 05 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 0B 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 0B 00 7E 0C 00 A2 63 D1 15 4E 9A D0 FE 90 00 A7 [19:14:31]RAPDU: A2 63 D1 15 4E 9A D0 FE 90 00 [19:14:31]wFMCommunicate OK [19:14:31]SAM_PROTO_SignData done [19:14:31]FM_MakeSignedData done [19:14:31]CreateOFDProtocolMessage [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 11 00 00 [19:14:31]Write to MH i2c: E2 08 00 7F 0C 80 11 00 00 00 00 00 00 05 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 17 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 17 00 7F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 55 [19:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:14:31]wFMCommunicate OK [19:14:31]CreateOFDProtocolMessage done [19:14:31]OFDSenderStorePacket 76652 [19:14:31]StoreOFDPacket docnum=76652 [19:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 43 01 00 00 D9 1B 3B 01 D1 81 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 98 7F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2B 01 00 35 04 06 00 75 6A 2F B5 97 96 A2 63 D1 15 4E 9A D0 FE [19:14:31]CheckFolder [19:14:31]dirname=/storage/ofd_packets [19:14:31]CheckFolder done [19:14:31]ProducePacketName [19:14:31]name=ofd_packets/00076652 [19:14:31]NVStorageSaveData ofd_packets/00076652 [19:14:31]File name is /storage/ofd_packets/00076652 [19:14:31]Write 353 bytes [19:14:31]NVStorageSaveData done [19:14:31]OFDSenderStorePacket done [19:14:31]KKMCreateOFDPacket done [19:14:31]NVStorageSaveData kkm_last_timestamp [19:14:31]File name is /storage/kkm_last_timestamp [19:14:31]Write 4 bytes [19:14:31]NVStorageSaveData done [19:14:31]ExternCall_PrintAddStr [19:14:31]wPrintStart [19:14:31]Write to MH i2c: 01 00 00 80 0C 8C [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: 01 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: 01 07 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 FF 0F A1 [19:14:31]RasterBufferAndPrint [19:14:31]line Счет N : (3)220779 [19:14:31]line ИНН: 02508201610067 [19:14:31]line Контрольно-Кассовый Чек [19:14:31]line ПРОДАЖА [19:14:31]line Товар: 4700003010407 [19:14:31]line Чай хол Let`s Go! ябл шиповник ПЭТ 1,25л [19:14:31]line 1.000 * 95.00 [19:14:31]line = 95.00 [19:14:31]line НДС 12% НСП 1% [19:14:31]line > о реализуемом товаре [19:14:31]line ИТОГО: 95.00 [19:14:31]line НСП 1% : 0.84 [19:14:31]line НДС 12% : 10.09 [19:14:31]line Наличными: 95.00 [19:14:31]line Безнал.: 0.00 [19:14:31]line Место: АЗС № 144 "Партнер Нефть" [19:14:31]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:14:31]line СНО: Общий режим [19:14:31]line Чек 93 20.06.2024 19:14 [19:14:31]line Смена: 393 ФФД: 1.0 [19:14:31]line ЗНМ: 0300000170 [19:14:31]line РНМ: 0000000000095696 [19:14:31]line Версия ККМ: 001 [19:14:31]line ФМ: 0000000000875009 [19:14:31]line ФД: 76652 [19:14:31]line ФПД: 129098927413142 [19:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191432&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76652&fm=129098927413142&tin=02508201610067®Number=0000000000095696&sum=9500 [19:14:32]line 0 [19:14:32]OFD Sender: Processing packet 76652 [packets to send 351, broken 350] [19:14:32]ProducePacketName [19:14:32]name=ofd_packets/00076652 [19:14:32]OFD Sender: To server: pG, [19:14:32]CommunicateWithHost lk.salyk.kg:30040 [19:14:32]ConnectInit lk.salyk.kg [19:14:32]written 0, free lines is 4095 [19:14:32]Write to MH i2c: 01 00 00 A9 0C B5 [19:14:32]Write i2c OK [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: 01 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: 01 07 00 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 E3 0C AB [19:14:32]RasterBufferAndPrint [19:14:32]line [19:14:32]line [19:14:32]line [19:14:32]line [19:14:32]line [19:14:32]written 0, free lines is 3305 [19:14:32]MH_Cut [19:14:32]Write to MH i2c: D1 01 00 B0 0C 01 8E [19:14:32]Write i2c OK [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: D1 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: D1 01 00 [19:14:32]MH_I2C_Read... [19:14:32]Read from MH i2c: D1 01 00 B0 0C 00 8D [19:14:32]Write to MH i2c: 01 00 00 B1 0C BD [19:14:32]Write i2c OK [19:14:32]MH_I2C_Read... [19:14:33]*** Cut start [19:14:33]*** Partial cut [19:14:33]*** CUTSNS_PIN = 1 [19:14:33]*** CUTSNS_PIN = 0 [19:14:33]Connected sock=11 [19:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 43 01 00 00 D9 1B 3B 01 D1 81 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 30 37 06 04 3D 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 8F D0 B1 D0 BB 20 D1 88 D0 B8 D0 BF D0 BE D0 B2 D0 BD D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 98 7F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2B 01 00 35 04 06 00 75 6A 2F B5 97 96 A2 63 D1 15 4E 9A D0 FE [19:14:33]*** Brake cut motor [19:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 CB 08 47 00 91 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2B 01 00 F4 03 04 00 39 26 74 66 B6 04 01 00 00 BA 88 87 EC 40 86 C1 78 [19:14:33]CommunicateWithHost err = 0 [19:14:33]CheckOFDResponse [19:14:33]1017 (14) - 77093643461234 [19:14:33]1041 (16) - 0000000000875009 [19:14:33]1040 (4) - 76652 [19:14:33]1012 (4) - 20.06.2024 12:53 [19:14:33]1206 (1) - 0 [19:14:33]OFD Sender: Remove packet 76652 [19:14:33]ProducePacketName [19:14:33]name=ofd_packets/00076652 [19:14:33]NVStorageDeleteData [19:14:33]Read from MH i2c: 01 [19:14:33]MH_I2C_Read... [19:14:33]*** Stop cut motor [19:14:33]*** Cut end [19:14:33]Read from MH i2c: 01 07 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 B1 0C 00 00 00 00 00 FF 0F D2 [19:14:33]process_action close_receipt done [19:14:33]requested_data is exist [19:14:33]produce_requested_data [19:14:33]requested_item fm.sn is exist - process it [19:14:33]wFMCommunicate request_size=4 [19:14:33]MH_SAM_APDU [19:14:33]CAPDU: 80 11 00 00 [19:14:33]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:33]Read from MH i2c: E2 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 17 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 88 [19:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:14:33]wFMCommunicate OK [19:14:33]requested_item fd.num is exist - process it [19:14:33]SAM_PROTO_GetFieldsCounters [19:14:33]wFMCommunicate request_size=4 [19:14:33]MH_SAM_APDU [19:14:33]CAPDU: 80 13 00 00 [19:14:33]Write to MH i2c: E2 08 00 B3 0C 80 13 00 00 00 00 00 00 3B [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:34]OFD Sender: No OFD packet to send [19:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 62 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 62 00 B3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [19:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:34]wFMCommunicate OK [19:14:34]SAM_PROTO_GetFieldsCounters done [19:14:34]requested_item shift.num is exist - process it [19:14:34]requested_item shift.opened is exist - process it [19:14:34]req_shift_opened [19:14:34]FM_GetShiftState [19:14:34]SAM_PROTO_GetShiftState [19:14:34]wFMCommunicate request_size=4 [19:14:34]MH_SAM_APDU [19:14:34]CAPDU: 80 13 01 00 [19:14:34]Write to MH i2c: E2 08 00 B4 0C 80 13 01 00 00 00 00 00 3D [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:34]Read from MH i2c: E2 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 0E 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: E2 0E 00 B4 0C 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 19 [19:14:34]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:14:34]wFMCommunicate OK [19:14:34]SAM_PROTO_GetShiftState done [19:14:34]FM_GetShiftState done [19:14:34]req_shift_opened done [19:14:34]requested_item shift.open_date is exist - process it [19:14:34]req_shift_open_date [19:14:34]req_shift_open_date done [19:14:34]produce_requested_data done [19:14:34]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76652,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:14:34]process_action_free close_receipt [19:14:34]json_value_free [19:14:34]json_value_free done [19:14:34]process_json_proto returns [19:14:34]Send response to host [19:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76652,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:14:34]free response buf [19:14:34]execute_script done [19:14:34]execute_script returns [19:14:34]free content buf [19:14:34]Sock 10.Close socket [19:14:34]Sock 10.Thread stoped [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:21]accept exits with 7 [19:16:21]New connection [19:16:21]New thread 3066948964 created [19:16:21]Thread 3066805604 joined [19:16:21]Waiting for new connection... [19:16:21] Sock 7.Parse request [19:16:21]Sock 7.Check first char [19:16:21]Sock 7.First char is OK [19:16:21]request: POST /json_proto HTTP/1.0 [19:16:21]Method: POST [19:16:21]URL: /json_proto [19:16:21]Method is POST - this is cgi request [19:16:21]url: /json_proto [19:16:21]query_string will be loaded in cgi processing [19:16:21]execute_cgi json_proto POST (null) [19:16:21]execute_cgi path=json_proto method=POST [19:16:21]POST find Content-Length [19:16:21]Host: 172.17.39.195:8080 [19:16:21]Content-Length: 844 [19:16:21]Content-Type: application/json [19:16:21] [19:16:21]POST finish read [19:16:21]Found Content-Length = 844 [19:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693359", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:21]execute_script... [19:16: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)1693359", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:21]POST & json_proto [19:16:21]process_json_proto [19:16:21]json parsed OK: [19:16:21]protocol is kg_v1.0 [19:16:21]action value=close_receipt [19:16:21]process_action close_receipt [19:16:21]cmd_close_receipt [19:16:21]MH_GetDate [19:16:21]Write to MH i2c: F0 00 00 B5 0C B0 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: F0 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: F0 09 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: F0 09 00 B5 0C 00 07 80 74 66 99 81 91 64 29 [19:16:21]GetLastDocTimeStamp 1718910872 [19:16:21]current date 1718910983 [19:16:21]FM_GetShiftState [19:16:21]SAM_PROTO_GetShiftState [19:16:21]wFMCommunicate request_size=4 [19:16:21]MH_SAM_APDU [19:16:21]CAPDU: 80 13 01 00 [19:16:21]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 0E 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 1B [19:16:21]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:16:21]wFMCommunicate OK [19:16:21]SAM_PROTO_GetShiftState done [19:16:21]FM_GetShiftState done [19:16:21]opened in 1718843774 [19:16:21]opened+sec_in_day 1718930174 [19:16:21]quantity*price = 100064 [19:16:21]sum+1 = 100066 [19:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 94 20.06.2024 19:16 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875009 ФД: 76653 ФПД: 168885764482303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191623&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76653&fm=168885764482303&tin=02508201610067®Number=0000000000095696&sum=100065 [19:16:22]StoreToDocumentArchive [19:16:22]shift 393 fd 76653 [19:16:22]save to /storage/0393/doc_00076653 [19:16:22]save last doc name /storage/0393/doc_00076653 to /storage/kkm_last_doc_name [19:16:22]save OK [19:16:22]Clear old archive folders... [19:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:22]tlvbuf is 00EC17C0 [19:16:22]SAM_PROTO_ClearQueue [19:16:22]wFMCommunicate request_size=4 [19:16:22]MH_SAM_APDU [19:16:22]CAPDU: 80 09 00 00 [19:16:22]Write to MH i2c: E2 08 00 C3 0C 80 09 00 00 00 00 00 00 41 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:22]Read from MH i2c: E2 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [19:16:22]RAPDU: 90 00 [19:16:22]wFMCommunicate OK [19:16:22]SAM_PROTO_ClearQueue done [19:16:22]KKMCreateOFDPacket [19:16:22]OFDProtocolAddRootSTLVToBuf [19:16:22]FM_MakeSignedData [19:16:22]FM_MakeSignedData [19:16:22]SAM_PROTO_SignData [19:16:22]wFMCommunicate request_size=4 [19:16:22]MH_SAM_APDU [19:16:22]CAPDU: 80 0D 01 02 [19:16:22]Write to MH i2c: E2 08 00 C4 0C 80 0D 01 02 00 00 00 00 49 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:22]Read from MH i2c: E2 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [19:16:22]RAPDU: 90 00 [19:16:22]wFMCommunicate OK [19:16:22]wFMCommunicate request_size=255 [19:16:22]MH_SAM_APDU [19:16: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2B 01 00 35 04 06 00 99 [19:16:22]Write to MH i2c: E2 02 01 C5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2B 01 00 35 04 06 00 99 00 00 51 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:22]Read from MH i2c: E2 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [19:16:22]RAPDU: 90 00 [19:16:22]wFMCommunicate OK [19:16:22]wFMCommunicate request_size=10 [19:16:22]MH_SAM_APDU [19:16:22]CAPDU: 80 0D 02 02 05 99 C7 FF E4 FF [19:16:22]Write to MH i2c: E2 0D 00 C6 0C 80 0D 02 02 05 00 99 C7 FF E4 FF 00 00 98 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:22]Read from MH i2c: E2 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [19:16:22]RAPDU: 90 00 [19:16:22]wFMCommunicate OK [19:16:22]wFMCommunicate request_size=4 [19:16:22]MH_SAM_APDU [19:16:22]CAPDU: 80 0D 03 02 [19:16:22]Write to MH i2c: E2 08 00 C7 0C 80 0D 03 02 00 00 00 00 4E [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:22]Read from MH i2c: E2 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 0B 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 0B 00 C7 0C 00 B6 A3 B9 25 1E 4A B4 8A 90 00 2C [19:16:22]RAPDU: B6 A3 B9 25 1E 4A B4 8A 90 00 [19:16:22]wFMCommunicate OK [19:16:22]SAM_PROTO_SignData done [19:16:22]FM_MakeSignedData done [19:16:22]CreateOFDProtocolMessage [19:16:22]wFMCommunicate request_size=4 [19:16:22]MH_SAM_APDU [19:16:22]CAPDU: 80 11 00 00 [19:16:22]Write to MH i2c: E2 08 00 C8 0C 80 11 00 00 00 00 00 00 4E [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:22]Read from MH i2c: E2 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 17 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: E2 17 00 C8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9E [19:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:16:22]wFMCommunicate OK [19:16:22]CreateOFDProtocolMessage done [19:16:22]OFDSenderStorePacket 76653 [19:16:22]StoreOFDPacket docnum=76653 [19:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F8 3E 07 01 DD BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2B 01 00 35 04 06 00 99 99 C7 FF E4 FF B6 A3 B9 25 1E 4A B4 8A [19:16:22]CheckFolder [19:16:22]dirname=/storage/ofd_packets [19:16:22]CheckFolder done [19:16:22]ProducePacketName [19:16:22]name=ofd_packets/00076653 [19:16:22]NVStorageSaveData ofd_packets/00076653 [19:16:22]File name is /storage/ofd_packets/00076653 [19:16:22]Write 301 bytes [19:16:22]NVStorageSaveData done [19:16:22]OFDSenderStorePacket done [19:16:22]KKMCreateOFDPacket done [19:16:22]NVStorageSaveData kkm_last_timestamp [19:16:22]File name is /storage/kkm_last_timestamp [19:16:22]Write 4 bytes [19:16:22]NVStorageSaveData done [19:16:22]ExternCall_PrintAddStr [19:16:22]wPrintStart [19:16:22]Write to MH i2c: 01 00 00 C9 0C D5 [19:16:22]Write i2c OK [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: 01 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: 01 07 00 [19:16:22]MH_I2C_Read... [19:16:22]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 FF 0F EA [19:16:22]RasterBufferAndPrint [19:16:22]line Счет N : (1)1693359 [19:16:22]line ИНН: 02508201610067 [19:16:22]line Контрольно-Кассовый Чек [19:16:22]line ПРОДАЖА [19:16:22]line ТРК (МРК, ГНК) : 63 [19:16:22]line Товар: 2710124130 [19:16:22]line Аи-92-К-5 [19:16:22]line 15.070 * 66.40 [19:16:22]line = 1000.65 [19:16:22]line НДС 12% НСП 1% [19:16:22]line > о реализуемом товаре [19:16:22]line ИТОГО: 1000.65 [19:16:22]line НСП 1% : 8.85 [19:16:22]line НДС 12% : 106.26 [19:16:22]line Наличными: 0.00 [19:16:22]line Безнал.: 1000.65 [19:16:22]line Место: АЗС № 144 "Партнер Нефть" [19:16:22]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:16:22]line СНО: Общий режим [19:16:22]line Чек 94 20.06.2024 19:16 [19:16:22]line Смена: 393 ФФД: 1.0 [19:16:22]line ЗНМ: 0300000170 [19:16:22]line РНМ: 0000000000095696 [19:16:22]line Версия ККМ: 001 [19:16:22]line Платежная система: АКБ Кыргызстан [19:16:22]line ФМ: 0000000000875009 [19:16:22]line ФД: 76653 [19:16:22]line ФПД: 168885764482303 [19:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191623&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76653&fm=168885764482303&tin=02508201610067®Number=0000000000095696&sum=100065 [19:16:23]OFD Sender: Processing packet 76653 [packets to send 351, broken 350] [19:16:23]ProducePacketName [19:16:23]name=ofd_packets/00076653 [19:16:23]OFD Sender: To server: pG, [19:16:23]CommunicateWithHost lk.salyk.kg:30040 [19:16:23]ConnectInit lk.salyk.kg [19:16:23]written 0, free lines is 4095 [19:16:23]Connected sock=10 [19:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F8 3E 07 01 DD BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 07 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2B 01 00 35 04 06 00 99 99 C7 FF E4 FF B6 A3 B9 25 1E 4A B4 8A [19:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 AB 46 47 00 65 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2B 01 00 F4 03 04 00 A7 26 74 66 B6 04 01 00 00 D2 54 DB 8A 31 84 35 8F [19:16:23]CommunicateWithHost err = 0 [19:16:23]CheckOFDResponse [19:16:23]1017 (14) - 77093643461234 [19:16:23]1041 (16) - 0000000000875009 [19:16:23]1040 (4) - 76653 [19:16:23]1012 (4) - 20.06.2024 12:55 [19:16:23]1206 (1) - 0 [19:16:23]OFD Sender: Remove packet 76653 [19:16:23]ProducePacketName [19:16:23]name=ofd_packets/00076653 [19:16:23]NVStorageDeleteData [19:16:23]Write to MH i2c: 01 00 00 F3 0C FF [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: 01 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: 01 07 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 09 0D 1C [19:16:23]RasterBufferAndPrint [19:16:23]line [19:16:23]line [19:16:23]line [19:16:23]line [19:16:23]line [19:16:23]written 0, free lines is 3341 [19:16:23]MH_Cut [19:16:23]Write to MH i2c: D1 01 00 FA 0C 01 D8 [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: D1 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: D1 01 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: D1 01 00 FA 0C 00 D7 [19:16:23]Write to MH i2c: 01 00 00 FB 0C 07 [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:24]OFD Sender: No OFD packet to send [19:16:24]*** Cut start [19:16:24]*** Partial cut [19:16:24]*** CUTSNS_PIN = 1 [19:16:24]*** CUTSNS_PIN = 0 [19:16:24]*** Brake cut motor [19:16:25]Read from MH i2c: 01 [19:16:25]MH_I2C_Read... [19:16:25]*** Stop cut motor [19:16:25]*** Cut end [19:16:25]Read from MH i2c: 01 07 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 FF 0F 1C [19:16:25]process_action close_receipt done [19:16:25]requested_data is exist [19:16:25]produce_requested_data [19:16:25]requested_item fm.sn is exist - process it [19:16:25]wFMCommunicate request_size=4 [19:16:25]MH_SAM_APDU [19:16:25]CAPDU: 80 11 00 00 [19:16:25]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [19:16:25]Write i2c OK [19:16:25]MH_I2C_Read... [19:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:25]Read from MH i2c: E2 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 17 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D2 [19:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:16:25]wFMCommunicate OK [19:16:25]requested_item fd.num is exist - process it [19:16:25]SAM_PROTO_GetFieldsCounters [19:16:25]wFMCommunicate request_size=4 [19:16:25]MH_SAM_APDU [19:16:25]CAPDU: 80 13 00 00 [19:16:25]Write to MH i2c: E2 08 00 FD 0C 80 13 00 00 00 00 00 00 85 [19:16:25]Write i2c OK [19:16:25]MH_I2C_Read... [19:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:25]Read from MH i2c: E2 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 62 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 62 00 FD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [19:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:25]wFMCommunicate OK [19:16:25]SAM_PROTO_GetFieldsCounters done [19:16:25]requested_item shift.num is exist - process it [19:16:25]requested_item shift.opened is exist - process it [19:16:25]req_shift_opened [19:16:25]FM_GetShiftState [19:16:25]SAM_PROTO_GetShiftState [19:16:25]wFMCommunicate request_size=4 [19:16:25]MH_SAM_APDU [19:16:25]CAPDU: 80 13 01 00 [19:16:25]Write to MH i2c: E2 08 00 FE 0C 80 13 01 00 00 00 00 00 87 [19:16:25]Write i2c OK [19:16:25]MH_I2C_Read... [19:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:25]Read from MH i2c: E2 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 0E 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 0E 00 FE 0C 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 63 [19:16:25]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:16:25]wFMCommunicate OK [19:16:25]SAM_PROTO_GetShiftState done [19:16:25]FM_GetShiftState done [19:16:25]req_shift_opened done [19:16:25]requested_item shift.open_date is exist - process it [19:16:25]req_shift_open_date [19:16:25]req_shift_open_date done [19:16:25]produce_requested_data done [19:16:25]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76653,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:16:25]process_action_free close_receipt [19:16:25]json_value_free [19:16:25]json_value_free done [19:16:25]process_json_proto returns [19:16:25]Send response to host [19:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76653,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:16:25]free response buf [19:16:25]execute_script done [19:16:25]execute_script returns [19:16:25]free content buf [19:16:25]Sock 7.Close socket [19:16:25]Sock 7.Thread stoped [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:58]accept exits with 9 [19:17:58]New connection [19:17:58]New thread 3066805604 created [19:17:58]Thread 3066948964 joined [19:17:58]Waiting for new connection... [19:17:58] Sock 9.Parse request [19:17:58]Sock 9.Check first char [19:17:58]Sock 9.First char is OK [19:17:58]request: POST /json_proto HTTP/1.0 [19:17:58]Method: POST [19:17:58]URL: /json_proto [19:17:58]Method is POST - this is cgi request [19:17:58]url: /json_proto [19:17:58]query_string will be loaded in cgi processing [19:17:58]execute_cgi json_proto POST (null) [19:17:58]execute_cgi path=json_proto method=POST [19:17:58]POST find Content-Length [19:17:58]Host: 172.17.39.195:8080 [19:17:58]Content-Length: 671 [19:17:58]Content-Type: application/json [19:17:58] [19:17:58]POST finish read [19:17:58]Found Content-Length = 671 [19:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220780", "tax_sys" : 0, "items" : [ { "code": "6950068402398", "name": "\u0413\u0430\u0437 \u0443\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u044B\u0439 RISMI 220\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:58]execute_script... [19:17: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 : (3)220780", "tax_sys" : 0, "items" : [ { "code": "6950068402398", "name": "\u0413\u0430\u0437 \u0443\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u044B\u0439 RISMI 220\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:58]POST & json_proto [19:17:58]process_json_proto [19:17:58]json parsed OK: [19:17:58]protocol is kg_v1.0 [19:17:58]action value=close_receipt [19:17:58]process_action close_receipt [19:17:58]cmd_close_receipt [19:17:58]MH_GetDate [19:17:58]Write to MH i2c: F0 00 00 FF 0C FA [19:17:58]Write i2c OK [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: F0 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: F0 09 00 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: F0 09 00 FF 0C 00 69 80 74 66 99 81 91 64 D5 [19:17:58]GetLastDocTimeStamp 1718910983 [19:17:58]current date 1718911081 [19:17:58]FM_GetShiftState [19:17:58]SAM_PROTO_GetShiftState [19:17:58]wFMCommunicate request_size=4 [19:17:58]MH_SAM_APDU [19:17:58]CAPDU: 80 13 01 00 [19:17:58]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [19:17:58]Write i2c OK [19:17:58]MH_I2C_Read... [19:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:58]Read from MH i2c: E2 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: E2 0E 00 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 66 [19:17:58]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:17:58]wFMCommunicate OK [19:17:58]SAM_PROTO_GetShiftState done [19:17:58]FM_GetShiftState done [19:17:58]opened in 1718843774 [19:17:58]opened+sec_in_day 1718930174 [19:17:58]quantity*price = 16500 [19:17:58]sum+1 = 16501 [19:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 95 20.06.2024 19:18 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76654 ФПД: 139100314789186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191801&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76654&fm=139100314789186&tin=02508201610067®Number=0000000000095696&sum=16500 0 [19:18:00]StoreToDocumentArchive [19:18:00]shift 393 fd 76654 [19:18:00]save to /storage/0393/doc_00076654 [19:18:00]save last doc name /storage/0393/doc_00076654 to /storage/kkm_last_doc_name [19:18:00]save OK [19:18:00]Clear old archive folders... [19:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=287 [19:18:00]tlvbuf is 00E84450 [19:18:00]SAM_PROTO_ClearQueue [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 09 00 00 [19:18:00]Write to MH i2c: E2 08 00 0D 0D 80 09 00 00 00 00 00 00 8C [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_ClearQueue done [19:18:00]KKMCreateOFDPacket [19:18:00]OFDProtocolAddRootSTLVToBuf [19:18:00]FM_MakeSignedData [19:18:00]FM_MakeSignedData [19:18:00]SAM_PROTO_SignData [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 01 02 [19:18:00]Write to MH i2c: E2 08 00 0E 0D 80 0D 01 02 00 00 00 00 94 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=255 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 36 39 35 30 30 36 38 34 30 32 33 39 38 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 69 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 [19:18:00]Write to MH i2c: E2 02 01 0F 0D 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 36 39 35 30 30 36 38 34 30 32 33 39 38 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 69 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 00 00 3B [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=46 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 02 02 29 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2B 01 00 35 04 06 00 7E 82 D0 D9 E5 42 [19:18:00]Write to MH i2c: E2 31 00 10 0D 80 0D 02 02 29 00 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2B 01 00 35 04 06 00 7E 82 D0 D9 E5 42 00 00 91 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 03 02 [19:18:00]Write to MH i2c: E2 08 00 11 0D 80 0D 03 02 00 00 00 00 99 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 11 0D 00 5B 95 EF 23 AF E6 A3 16 90 00 EA [19:18:00]RAPDU: 5B 95 EF 23 AF E6 A3 16 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_SignData done [19:18:00]FM_MakeSignedData done [19:18:00]CreateOFDProtocolMessage [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 11 00 00 [19:18:00]Write to MH i2c: E2 08 00 12 0D 80 11 00 00 00 00 00 00 99 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 12 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E9 [19:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:18:00]wFMCommunicate OK [19:18:00]CreateOFDProtocolMessage done [19:18:00]OFDSenderStorePacket 76654 [19:18:00]StoreOFDPacket docnum=76654 [19:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 33 01 00 00 29 7F 2B 01 44 0F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 36 39 35 30 30 36 38 34 30 32 33 39 38 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 69 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2B 01 00 35 04 06 00 7E 82 D0 D9 E5 42 5B 95 EF 23 AF E6 A3 16 [19:18:00]CheckFolder [19:18:00]dirname=/storage/ofd_packets [19:18:00]CheckFolder done [19:18:00]ProducePacketName [19:18:00]name=ofd_packets/00076654 [19:18:00]NVStorageSaveData ofd_packets/00076654 [19:18:00]File name is /storage/ofd_packets/00076654 [19:18:00]Write 337 bytes [19:18:00]NVStorageSaveData done [19:18:00]OFDSenderStorePacket done [19:18:00]KKMCreateOFDPacket done [19:18:00]NVStorageSaveData kkm_last_timestamp [19:18:00]File name is /storage/kkm_last_timestamp [19:18:00]Write 4 bytes [19:18:00]NVStorageSaveData done [19:18:00]ExternCall_PrintAddStr [19:18:00]wPrintStart [19:18:00]Write to MH i2c: 01 00 00 13 0D 20 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 FF 0F 35 [19:18:00]RasterBufferAndPrint [19:18:00]line Счет N : (3)220780 [19:18:00]line ИНН: 02508201610067 [19:18:00]line Контрольно-Кассовый Чек [19:18:00]line ПРОДАЖА [19:18:00]line Товар: 6950068402398 [19:18:00]line Газ универсальный RISMI 220г [19:18:00]line 1.000 * 165.00 [19:18:00]line = 165.00 [19:18:00]line НДС 12% НСП 1% [19:18:00]line > о реализуемом товаре [19:18:00]line ИТОГО: 165.00 [19:18:00]line НСП 1% : 1.46 [19:18:00]line НДС 12% : 17.52 [19:18:00]line Наличными: 165.00 [19:18:00]line Безнал.: 0.00 [19:18:00]line Место: АЗС № 144 "Партнер Нефть" [19:18:00]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:18:00]line СНО: Общий режим [19:18:00]line Чек 95 20.06.2024 19:18 [19:18:00]line Смена: 393 ФФД: 1.0 [19:18:00]line ЗНМ: 0300000170 [19:18:00]line РНМ: 0000000000095696 [19:18:00]line Версия ККМ: 001 [19:18:00]line ФМ: 0000000000875009 [19:18:00]line ФД: 76654 [19:18:00]line ФПД: 139100314789186 [19:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191801&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76654&fm=139100314789186&tin=02508201610067®Number=0000000000095696&sum=16500 [19:18:01]line 0 [19:18:01]OFD Sender: Processing packet 76654 [packets to send 351, broken 350] [19:18:01]ProducePacketName [19:18:01]name=ofd_packets/00076654 [19:18:01]OFD Sender: To server: pG, [19:18:01]CommunicateWithHost lk.salyk.kg:30040 [19:18:01]ConnectInit lk.salyk.kg [19:18:01]written 0, free lines is 4095 [19:18:01]Connected sock=10 [19:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 33 01 00 00 29 7F 2B 01 44 0F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 36 39 35 30 30 36 38 34 30 32 33 39 38 06 04 2D 00 D0 93 D0 B0 D0 B7 20 D1 83 D0 BD D0 B8 D0 B2 D0 B5 D1 80 D1 81 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 20 52 49 53 4D 49 20 32 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 69 80 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2B 01 00 35 04 06 00 7E 82 D0 D9 E5 42 5B 95 EF 23 AF E6 A3 16 [19:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 00 F0 47 00 9E E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2B 01 00 F4 03 04 00 09 27 74 66 B6 04 01 00 00 E8 61 F8 C1 A3 59 99 24 [19:18:01]CommunicateWithHost err = 0 [19:18:01]CheckOFDResponse [19:18:01]1017 (14) - 77093643461234 [19:18:01]1041 (16) - 0000000000875009 [19:18:01]1040 (4) - 76654 [19:18:01]1012 (4) - 20.06.2024 12:56 [19:18:01]1206 (1) - 0 [19:18:01]OFD Sender: Remove packet 76654 [19:18:01]ProducePacketName [19:18:01]name=ofd_packets/00076654 [19:18:01]NVStorageDeleteData [19:18:01]Write to MH i2c: 01 00 00 3B 0D 48 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 3B 0D 00 00 00 00 00 EF 0C 4A [19:18:01]RasterBufferAndPrint [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]written 0, free lines is 3320 [19:18:01]MH_Cut [19:18:01]Write to MH i2c: D1 01 00 42 0D 01 21 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 42 0D 00 20 [19:18:01]Write to MH i2c: 01 00 00 43 0D 50 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]OFD Sender: No OFD packet to send [19:18:02]*** Cut start [19:18:02]*** Partial cut [19:18:02]*** CUTSNS_PIN = 1 [19:18:02]*** CUTSNS_PIN = 0 [19:18:02]*** Brake cut motor [19:18:02]Read from MH i2c: 01 [19:18:02]MH_I2C_Read... [19:18:02]*** Stop cut motor [19:18:02]*** Cut end [19:18:02]Read from MH i2c: 01 07 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 43 0D 00 00 00 00 00 FF 0F 65 [19:18:02]process_action close_receipt done [19:18:02]requested_data is exist [19:18:02]produce_requested_data [19:18:02]requested_item fm.sn is exist - process it [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 11 00 00 [19:18:02]Write to MH i2c: E2 08 00 44 0D 80 11 00 00 00 00 00 00 CB [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 44 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1B [19:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:18:02]wFMCommunicate OK [19:18:02]requested_item fd.num is exist - process it [19:18:02]SAM_PROTO_GetFieldsCounters [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 13 00 00 [19:18:02]Write to MH i2c: E2 08 00 45 0D 80 13 00 00 00 00 00 00 CE [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 62 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 62 00 45 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [19:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:02]wFMCommunicate OK [19:18:02]SAM_PROTO_GetFieldsCounters done [19:18:02]requested_item shift.num is exist - process it [19:18:02]requested_item shift.opened is exist - process it [19:18:02]req_shift_opened [19:18:02]FM_GetShiftState [19:18:02]SAM_PROTO_GetShiftState [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 13 01 00 [19:18:02]Write to MH i2c: E2 08 00 46 0D 80 13 01 00 00 00 00 00 D0 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 46 0D 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 AC [19:18:03]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:18:03]wFMCommunicate OK [19:18:03]SAM_PROTO_GetShiftState done [19:18:03]FM_GetShiftState done [19:18:03]req_shift_opened done [19:18:03]requested_item shift.open_date is exist - process it [19:18:03]req_shift_open_date [19:18:03]req_shift_open_date done [19:18:03]produce_requested_data done [19:18:03]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76654,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:18:03]process_action_free close_receipt [19:18:03]json_value_free [19:18:03]json_value_free done [19:18:03]process_json_proto returns [19:18:03]Send response to host [19:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76654,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:18:03]free response buf [19:18:03]execute_script done [19:18:03]execute_script returns [19:18:03]free content buf [19:18:03]Sock 9.Close socket [19:18:03]Sock 9.Thread stoped [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27: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: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:56]accept exits with 7 [19:29:56]New connection [19:29:56]New thread 3066948964 created [19:29:56]Thread 3066805604 joined [19:29:56]Waiting for new connection... [19:29:56] Sock 7.Parse request [19:29:56]Sock 7.Check first char [19:29:56]Sock 7.First char is OK [19:29:56]request: POST /json_proto HTTP/1.0 [19:29:56]Method: POST [19:29:56]URL: /json_proto [19:29:56]Method is POST - this is cgi request [19:29:56]url: /json_proto [19:29:56]query_string will be loaded in cgi processing [19:29:56]execute_cgi json_proto POST (null) [19:29:56]execute_cgi path=json_proto method=POST [19:29:56]POST find Content-Length [19:29:56]Host: 172.17.39.195:8080 [19:29:56]Content-Length: 621 [19:29:56]Content-Type: application/json [19:29:56] [19:29:56]POST finish read [19:29:56]Found Content-Length = 621 [19:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220781", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:56]execute_script... [19:29: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 : (3)220781", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:56]POST & json_proto [19:29:56]process_json_proto [19:29:56]json parsed OK: [19:29:56]protocol is kg_v1.0 [19:29:56]action value=close_receipt [19:29:56]process_action close_receipt [19:29:56]cmd_close_receipt [19:29:56]MH_GetDate [19:29:56]Write to MH i2c: F0 00 00 47 0D 43 [19:29:56]Write i2c OK [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 09 00 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 09 00 47 0D 00 37 83 74 66 99 81 91 64 EF [19:29:56]GetLastDocTimeStamp 1718911081 [19:29:56]current date 1718911799 [19:29:56]FM_GetShiftState [19:29:56]SAM_PROTO_GetShiftState [19:29:56]wFMCommunicate request_size=4 [19:29:56]MH_SAM_APDU [19:29:56]CAPDU: 80 13 01 00 [19:29:56]Write to MH i2c: E2 08 00 48 0D 80 13 01 00 00 00 00 00 D2 [19:29:56]Write i2c OK [19:29:56]MH_I2C_Read... [19:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:56]Read from MH i2c: E2 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: E2 0E 00 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: E2 0E 00 48 0D 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 AE [19:29:56]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:29:56]wFMCommunicate OK [19:29:56]SAM_PROTO_GetShiftState done [19:29:56]FM_GetShiftState done [19:29:56]opened in 1718843774 [19:29:56]opened+sec_in_day 1718930174 [19:29:56]quantity*price = 14000 [19:29:56]sum+1 = 14001 [19:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 96 20.06.2024 19:29 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76655 ФПД: 107288165491090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T192959&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76655&fm=107288165491090&tin=02508201610067®Number=0000000000095696&sum=14000 0 [19:29:58]StoreToDocumentArchive [19:29:58]shift 393 fd 76655 [19:29:58]save to /storage/0393/doc_00076655 [19:29:58]save last doc name /storage/0393/doc_00076655 to /storage/kkm_last_doc_name [19:29:58]save OK [19:29:58]Clear old archive folders... [19:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:29:58]tlvbuf is 00EB9080 [19:29:58]SAM_PROTO_ClearQueue [19:29:58]wFMCommunicate request_size=4 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 09 00 00 [19:29:58]Write to MH i2c: E2 08 00 55 0D 80 09 00 00 00 00 00 00 D4 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [19:29:58]RAPDU: 90 00 [19:29:58]wFMCommunicate OK [19:29:58]SAM_PROTO_ClearQueue done [19:29:58]KKMCreateOFDPacket [19:29:58]OFDProtocolAddRootSTLVToBuf [19:29:58]FM_MakeSignedData [19:29:58]FM_MakeSignedData [19:29:58]SAM_PROTO_SignData [19:29:58]wFMCommunicate request_size=4 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 0D 01 02 [19:29:58]Write to MH i2c: E2 08 00 56 0D 80 0D 01 02 00 00 00 00 DC [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [19:29:58]RAPDU: 90 00 [19:29:58]wFMCommunicate OK [19:29:58]wFMCommunicate request_size=255 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 37 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [19:29:58]Write to MH i2c: E2 02 01 57 0D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 37 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 45 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]OFD Sender: No OFD packet to send [19:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [19:29:58]RAPDU: 90 00 [19:29:58]wFMCommunicate OK [19:29:58]wFMCommunicate request_size=32 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2B 01 00 35 04 06 00 61 93 F8 FE 21 92 [19:29:58]Write to MH i2c: E2 23 00 58 0D 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2B 01 00 35 04 06 00 61 93 F8 FE 21 92 00 00 71 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [19:29:58]RAPDU: 90 00 [19:29:58]wFMCommunicate OK [19:29:58]wFMCommunicate request_size=4 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 0D 03 02 [19:29:58]Write to MH i2c: E2 08 00 59 0D 80 0D 03 02 00 00 00 00 E1 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 0B 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 0B 00 59 0D 00 19 AD AC 49 42 15 0B 7A 90 00 79 [19:29:58]RAPDU: 19 AD AC 49 42 15 0B 7A 90 00 [19:29:58]wFMCommunicate OK [19:29:58]SAM_PROTO_SignData done [19:29:58]FM_MakeSignedData done [19:29:58]CreateOFDProtocolMessage [19:29:58]wFMCommunicate request_size=4 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 11 00 00 [19:29:58]Write to MH i2c: E2 08 00 5A 0D 80 11 00 00 00 00 00 00 E1 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 17 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 17 00 5A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 31 [19:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:29:58]wFMCommunicate OK [19:29:58]CreateOFDProtocolMessage done [19:29:58]OFDSenderStorePacket 76655 [19:29:58]StoreOFDPacket docnum=76655 [19:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 AF 5D 1D 01 50 BE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 37 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2B 01 00 35 04 06 00 61 93 F8 FE 21 92 19 AD AC 49 42 15 0B 7A [19:29:58]CheckFolder [19:29:58]dirname=/storage/ofd_packets [19:29:58]CheckFolder done [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00076655 [19:29:58]NVStorageSaveData ofd_packets/00076655 [19:29:58]File name is /storage/ofd_packets/00076655 [19:29:58]Write 323 bytes [19:29:58]NVStorageSaveData done [19:29:58]OFDSenderStorePacket done [19:29:58]KKMCreateOFDPacket done [19:29:58]NVStorageSaveData kkm_last_timestamp [19:29:58]File name is /storage/kkm_last_timestamp [19:29:58]Write 4 bytes [19:29:58]NVStorageSaveData done [19:29:58]ExternCall_PrintAddStr [19:29:58]wPrintStart [19:29:58]Write to MH i2c: 01 00 00 5B 0D 68 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 5B 0D 00 00 00 00 00 FF 0F 7D [19:29:58]RasterBufferAndPrint [19:29:58]line Счет N : (3)220781 [19:29:58]line ИНН: 02508201610067 [19:29:58]line Контрольно-Кассовый Чек [19:29:58]line ПРОДАЖА [19:29:58]line Товар: 48747059 [19:29:58]line Сигареты Winston Legend Blue [19:29:58]line 1.000 * 140.00 [19:29:58]line = 140.00 [19:29:58]line НДС 12% НСП 1% [19:29:58]line > о реализуемом товаре [19:29:58]line ИТОГО: 140.00 [19:29:58]line НСП 1% : 1.24 [19:29:58]line НДС 12% : 14.87 [19:29:58]line Наличными: 140.00 [19:29:58]line Безнал.: 0.00 [19:29:58]line Место: АЗС № 144 "Партнер Нефть" [19:29:58]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:29:58]line СНО: Общий режим [19:29:58]line Чек 96 20.06.2024 19:29 [19:29:58]line Смена: 393 ФФД: 1.0 [19:29:58]line ЗНМ: 0300000170 [19:29:58]line РНМ: 0000000000095696 [19:29:58]line Версия ККМ: 001 [19:29:58]line ФМ: 0000000000875009 [19:29:58]line ФД: 76655 [19:29:58]line ФПД: 107288165491090 [19:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T192959&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76655&fm=107288165491090&tin=02508201610067®Number=0000000000095696&sum=14000 [19:29:58]line 0 [19:29:58]written 0, free lines is 4095 [19:29:58]OFD Sender: Processing packet 76655 [packets to send 351, broken 350] [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00076655 [19:29:58]OFD Sender: To server: pG, [19:29:58]CommunicateWithHost lk.salyk.kg:30040 [19:29:58]ConnectInit lk.salyk.kg [19:29:58]Connected sock=10 [19:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 AF 5D 1D 01 50 BE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 37 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2B 01 00 35 04 06 00 61 93 F8 FE 21 92 19 AD AC 49 42 15 0B 7A [19:29:59]Write to MH i2c: 01 00 00 84 0D 91 [19:29:59]Write i2c OK [19:29:59]MH_I2C_Read... [19:29:59]Read from MH i2c: 01 [19:29:59]MH_I2C_Read... [19:29:59]Read from MH i2c: 01 07 00 [19:29:59]MH_I2C_Read... [19:29:59]Read from MH i2c: 01 07 00 84 0D 00 00 00 00 00 CD 0C 71 [19:29:59]RasterBufferAndPrint [19:29:59]line [19:29:59]line [19:29:59]line [19:29:59]line [19:29:59]line [19:29:59]written 0, free lines is 3284 [19:29:59]MH_Cut [19:29:59]Write to MH i2c: D1 01 00 8B 0D 01 6A [19:29:59]Write i2c OK [19:29:59]MH_I2C_Read... [19:29:59]Read from MH i2c: D1 [19:29:59]MH_I2C_Read... [19:29:59]Read from MH i2c: D1 01 00 [19:29:59]MH_I2C_Read... [19:29:59]Read from MH i2c: D1 01 00 8B 0D 00 69 [19:29:59]Write to MH i2c: 01 00 00 8C 0D 99 [19:29:59]Write i2c OK [19:29:59]MH_I2C_Read... [19:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 BF 54 47 00 9E 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2B 01 00 F4 03 04 00 D7 29 74 66 B6 04 01 00 00 B7 F6 52 25 4C ED 10 8E [19:29:59]CommunicateWithHost err = 0 [19:29:59]CheckOFDResponse [19:29:59]1017 (14) - 77093643461234 [19:29:59]1041 (16) - 0000000000875009 [19:29:59]1040 (4) - 76655 [19:29:59]1012 (4) - 20.06.2024 13:08 [19:29:59]1206 (1) - 0 [19:29:59]OFD Sender: Remove packet 76655 [19:29:59]ProducePacketName [19:29:59]name=ofd_packets/00076655 [19:29:59]NVStorageDeleteData [19:29:59]OFD Sender: No OFD packet to send [19:29:59]*** Cut start [19:29:59]*** Partial cut [19:29:59]*** CUTSNS_PIN = 1 [19:29:59]*** CUTSNS_PIN = 0 [19:30:00]*** Brake cut motor [19:30:00]Read from MH i2c: 01 [19:30:00]MH_I2C_Read... [19:30:00]*** Stop cut motor [19:30:00]*** Cut end [19:30:00]Read from MH i2c: 01 07 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: 01 07 00 8C 0D 00 00 00 00 00 FF 0F AE [19:30:00]process_action close_receipt done [19:30:00]requested_data is exist [19:30:00]produce_requested_data [19:30:00]requested_item fm.sn is exist - process it [19:30:00]wFMCommunicate request_size=4 [19:30:00]MH_SAM_APDU [19:30:00]CAPDU: 80 11 00 00 [19:30:00]Write to MH i2c: E2 08 00 8D 0D 80 11 00 00 00 00 00 00 14 [19:30:00]Write i2c OK [19:30:00]MH_I2C_Read... [19:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:00]Read from MH i2c: E2 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 17 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 17 00 8D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 64 [19:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:30:00]wFMCommunicate OK [19:30:00]requested_item fd.num is exist - process it [19:30:00]SAM_PROTO_GetFieldsCounters [19:30:00]wFMCommunicate request_size=4 [19:30:00]MH_SAM_APDU [19:30:00]CAPDU: 80 13 00 00 [19:30:00]Write to MH i2c: E2 08 00 8E 0D 80 13 00 00 00 00 00 00 17 [19:30:00]Write i2c OK [19:30:00]MH_I2C_Read... [19:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:00]Read from MH i2c: E2 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 62 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 62 00 8E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [19:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:00]wFMCommunicate OK [19:30:00]SAM_PROTO_GetFieldsCounters done [19:30:00]requested_item shift.num is exist - process it [19:30:00]requested_item shift.opened is exist - process it [19:30:00]req_shift_opened [19:30:00]FM_GetShiftState [19:30:00]SAM_PROTO_GetShiftState [19:30:00]wFMCommunicate request_size=4 [19:30:00]MH_SAM_APDU [19:30:00]CAPDU: 80 13 01 00 [19:30:00]Write to MH i2c: E2 08 00 8F 0D 80 13 01 00 00 00 00 00 19 [19:30:00]Write i2c OK [19:30:00]MH_I2C_Read... [19:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:00]Read from MH i2c: E2 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 0E 00 [19:30:00]MH_I2C_Read... [19:30:00]Read from MH i2c: E2 0E 00 8F 0D 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F5 [19:30:00]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:30:00]wFMCommunicate OK [19:30:00]SAM_PROTO_GetShiftState done [19:30:00]FM_GetShiftState done [19:30:00]req_shift_opened done [19:30:00]requested_item shift.open_date is exist - process it [19:30:00]req_shift_open_date [19:30:00]req_shift_open_date done [19:30:00]produce_requested_data done [19:30:00]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76655,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:30:00]process_action_free close_receipt [19:30:00]json_value_free [19:30:00]json_value_free done [19:30:00]process_json_proto returns [19:30:00]Send response to host [19:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76655,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:30:00]free response buf [19:30:00]execute_script done [19:30:00]execute_script returns [19:30:00]free content buf [19:30:00]Sock 7.Close socket [19:30:00]Sock 7.Thread stoped [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]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:31]accept exits with 9 [19:32:31]New connection [19:32:31]New thread 3066805604 created [19:32:31]Thread 3066948964 joined [19:32:31]Waiting for new connection... [19:32:31] Sock 9.Parse request [19:32:31]Sock 9.Check first char [19:32:31]Sock 9.First char is OK [19:32:31]request: POST /json_proto HTTP/1.0 [19:32:31]Method: POST [19:32:31]URL: /json_proto [19:32:31]Method is POST - this is cgi request [19:32:31]url: /json_proto [19:32:31]query_string will be loaded in cgi processing [19:32:31]execute_cgi json_proto POST (null) [19:32:31]execute_cgi path=json_proto method=POST [19:32:31]POST find Content-Length [19:32:31]Host: 172.17.39.195:8080 [19:32:31]Content-Length: 612 [19:32:31]Content-Type: application/json [19:32:31] [19:32:31]POST finish read [19:32:31]Found Content-Length = 612 [19:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220782", "tax_sys" : 0, "items" : [ { "code": "46193742", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Kiss Jolly", "price" : 118.00, "quantity" : 2.000, "sum" : 236.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:31]execute_script... [19:32:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220782", "tax_sys" : 0, "items" : [ { "code": "46193742", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Kiss Jolly", "price" : 118.00, "quantity" : 2.000, "sum" : 236.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:31]POST & json_proto [19:32:31]process_json_proto [19:32:31]json parsed OK: [19:32:31]protocol is kg_v1.0 [19:32:31]action value=close_receipt [19:32:31]process_action close_receipt [19:32:31]cmd_close_receipt [19:32:31]MH_GetDate [19:32:31]Write to MH i2c: F0 00 00 90 0D 8C [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: F0 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: F0 09 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: F0 09 00 90 0D 00 D2 83 74 66 99 81 91 64 D3 [19:32:31]GetLastDocTimeStamp 1718911799 [19:32:31]current date 1718911954 [19:32:31]FM_GetShiftState [19:32:31]SAM_PROTO_GetShiftState [19:32:31]wFMCommunicate request_size=4 [19:32:31]MH_SAM_APDU [19:32:31]CAPDU: 80 13 01 00 [19:32:31]Write to MH i2c: E2 08 00 91 0D 80 13 01 00 00 00 00 00 1B [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:31]Read from MH i2c: E2 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 0E 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 0E 00 91 0D 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F7 [19:32:31]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:32:31]wFMCommunicate OK [19:32:31]SAM_PROTO_GetShiftState done [19:32:31]FM_GetShiftState done [19:32:31]opened in 1718843774 [19:32:31]opened+sec_in_day 1718930174 [19:32:31]quantity*price = 23600 [19:32:31]sum+1 = 23601 [19:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 236.00 НСП 1% : 2.09 НДС 12% : 25.06 Наличными: 236.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 97 20.06.2024 19:32 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76656 ФПД: 16289491002625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T193234&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76656&fm=16289491002625&tin=02508201610067®Number=0000000000095696&sum=23600 0 [19:32:33]StoreToDocumentArchive [19:32:33]shift 393 fd 76656 [19:32:33]save to /storage/0393/doc_00076656 [19:32:33]save last doc name /storage/0393/doc_00076656 to /storage/kkm_last_doc_name [19:32:33]save OK [19:32:33]Clear old archive folders... [19:32:33]ProcessDocumentItem done err = 0, tmpTLVsize=264 [19:32:33]tlvbuf is 00EB56C0 [19:32:33]SAM_PROTO_ClearQueue [19:32:33]wFMCommunicate request_size=4 [19:32:33]MH_SAM_APDU [19:32:33]CAPDU: 80 09 00 00 [19:32:33]Write to MH i2c: E2 08 00 9E 0D 80 09 00 00 00 00 00 00 1D [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:33]Read from MH i2c: E2 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [19:32:33]RAPDU: 90 00 [19:32:33]wFMCommunicate OK [19:32:33]SAM_PROTO_ClearQueue done [19:32:33]KKMCreateOFDPacket [19:32:33]OFDProtocolAddRootSTLVToBuf [19:32:33]FM_MakeSignedData [19:32:33]FM_MakeSignedData [19:32:33]SAM_PROTO_SignData [19:32:33]wFMCommunicate request_size=4 [19:32:33]MH_SAM_APDU [19:32:33]CAPDU: 80 0D 01 02 [19:32:33]Write to MH i2c: E2 08 00 9F 0D 80 0D 01 02 00 00 00 00 25 [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:33]Read from MH i2c: E2 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [19:32:33]RAPDU: 90 00 [19:32:33]wFMCommunicate OK [19:32:33]wFMCommunicate request_size=255 [19:32:33]MH_SAM_APDU [19:32:33]CAPDU: 80 0D 02 02 FA 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 31 39 33 37 34 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 D2 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 [19:32:33]Write to MH i2c: E2 02 01 A0 0D 80 0D 02 02 FA 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 31 39 33 37 34 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 D2 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 00 00 21 [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:33]Read from MH i2c: E2 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [19:32:33]RAPDU: 90 00 [19:32:33]wFMCommunicate OK [19:32:33]wFMCommunicate request_size=23 [19:32:33]MH_SAM_APDU [19:32:33]CAPDU: 80 0D 02 02 12 10 04 04 00 70 2B 01 00 35 04 06 00 0E D0 B1 53 25 01 [19:32:33]Write to MH i2c: E2 1A 00 A1 0D 80 0D 02 02 12 00 10 04 04 00 70 2B 01 00 35 04 06 00 0E D0 B1 53 25 01 00 00 47 [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:33]Read from MH i2c: E2 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [19:32:33]RAPDU: 90 00 [19:32:33]wFMCommunicate OK [19:32:33]wFMCommunicate request_size=4 [19:32:33]MH_SAM_APDU [19:32:33]CAPDU: 80 0D 03 02 [19:32:33]Write to MH i2c: E2 08 00 A2 0D 80 0D 03 02 00 00 00 00 2A [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:33]Read from MH i2c: E2 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 0B 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 0B 00 A2 0D 00 6C 95 17 23 B0 48 E1 67 90 00 A6 [19:32:33]RAPDU: 6C 95 17 23 B0 48 E1 67 90 00 [19:32:33]wFMCommunicate OK [19:32:33]SAM_PROTO_SignData done [19:32:33]FM_MakeSignedData done [19:32:33]CreateOFDProtocolMessage [19:32:33]wFMCommunicate request_size=4 [19:32:33]MH_SAM_APDU [19:32:33]CAPDU: 80 11 00 00 [19:32:33]Write to MH i2c: E2 08 00 A3 0D 80 11 00 00 00 00 00 00 2A [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:33]Read from MH i2c: E2 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 17 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: E2 17 00 A3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7A [19:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:32:33]wFMCommunicate OK [19:32:33]CreateOFDProtocolMessage done [19:32:33]OFDSenderStorePacket 76656 [19:32:33]StoreOFDPacket docnum=76656 [19:32:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 66 10 14 01 DF 2A 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 31 39 33 37 34 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 D2 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 70 2B 01 00 35 04 06 00 0E D0 B1 53 25 01 6C 95 17 23 B0 48 E1 67 [19:32:33]CheckFolder [19:32:33]dirname=/storage/ofd_packets [19:32:33]CheckFolder done [19:32:33]ProducePacketName [19:32:33]name=ofd_packets/00076656 [19:32:33]NVStorageSaveData ofd_packets/00076656 [19:32:33]File name is /storage/ofd_packets/00076656 [19:32:33]Write 314 bytes [19:32:33]NVStorageSaveData done [19:32:33]OFDSenderStorePacket done [19:32:33]KKMCreateOFDPacket done [19:32:33]NVStorageSaveData kkm_last_timestamp [19:32:33]File name is /storage/kkm_last_timestamp [19:32:33]Write 4 bytes [19:32:33]NVStorageSaveData done [19:32:33]ExternCall_PrintAddStr [19:32:33]wPrintStart [19:32:33]Write to MH i2c: 01 00 00 A4 0D B1 [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: 01 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: 01 07 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: 01 07 00 A4 0D 00 00 00 00 00 FF 0F C6 [19:32:33]RasterBufferAndPrint [19:32:33]line Счет N : (3)220782 [19:32:33]line ИНН: 02508201610067 [19:32:33]line Контрольно-Кассовый Чек [19:32:33]line ПРОДАЖА [19:32:33]line Товар: 46193742 [19:32:33]line Сигареты Kiss Jolly [19:32:33]line 2.000 * 118.00 [19:32:33]line = 236.00 [19:32:33]line НДС 12% НСП 1% [19:32:33]line > о реализуемом товаре [19:32:33]line ИТОГО: 236.00 [19:32:33]line НСП 1% : 2.09 [19:32:33]line НДС 12% : 25.06 [19:32:33]line Наличными: 236.00 [19:32:33]line Безнал.: 0.00 [19:32:33]line Место: АЗС № 144 "Партнер Нефть" [19:32:33]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:32:33]line СНО: Общий режим [19:32:33]line Чек 97 20.06.2024 19:32 [19:32:33]line Смена: 393 ФФД: 1.0 [19:32:33]line ЗНМ: 0300000170 [19:32:33]line РНМ: 0000000000095696 [19:32:33]line Версия ККМ: 001 [19:32:33]line ФМ: 0000000000875009 [19:32:33]line ФД: 76656 [19:32:33]line ФПД: 16289491002625 [19:32:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T193234&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76656&fm=16289491002625&tin=02508201610067®Number=0000000000095696&sum=23600 [19:32:33]line 0 [19:32:33]written 0, free lines is 4095 [19:32:33]OFD Sender: Processing packet 76656 [packets to send 351, broken 350] [19:32:33]ProducePacketName [19:32:33]name=ofd_packets/00076656 [19:32:33]OFD Sender: To server: pG, [19:32:33]CommunicateWithHost lk.salyk.kg:30040 [19:32:33]ConnectInit lk.salyk.kg [19:32:33]Connected sock=10 [19:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 66 10 14 01 DF 2A 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 31 39 33 37 34 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 30 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 D2 83 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 70 2B 01 00 35 04 06 00 0E D0 B1 53 25 01 6C 95 17 23 B0 48 E1 67 [19:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 41 D8 47 00 90 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 70 2B 01 00 F4 03 04 00 72 2A 74 66 B6 04 01 00 00 1A 91 BF 1A F0 12 B4 83 [19:32:33]CommunicateWithHost err = 0 [19:32:33]CheckOFDResponse [19:32:33]1017 (14) - 77093643461234 [19:32:33]1041 (16) - 0000000000875009 [19:32:33]1040 (4) - 76656 [19:32:33]1012 (4) - 20.06.2024 13:11 [19:32:33]1206 (1) - 0 [19:32:33]OFD Sender: Remove packet 76656 [19:32:33]ProducePacketName [19:32:33]name=ofd_packets/00076656 [19:32:33]NVStorageDeleteData [19:32:34]Write to MH i2c: 01 00 00 CC 0D D9 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 05 0D F2 [19:32:34]RasterBufferAndPrint [19:32:34]line [19:32:34]line [19:32:34]line [19:32:34]line [19:32:34]line [19:32:34]written 0, free lines is 3340 [19:32:34]MH_Cut [19:32:34]Write to MH i2c: D1 01 00 D3 0D 01 B2 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: D1 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: D1 01 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: D1 01 00 D3 0D 00 B1 [19:32:34]Write to MH i2c: 01 00 00 D4 0D E1 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]OFD Sender: No OFD packet to send [19:32:34]*** Cut start [19:32:34]*** Partial cut [19:32:34]*** CUTSNS_PIN = 1 [19:32:34]*** CUTSNS_PIN = 0 [19:32:35]*** Brake cut motor [19:32:35]Read from MH i2c: 01 [19:32:35]MH_I2C_Read... [19:32:35]*** Stop cut motor [19:32:35]*** Cut end [19:32:35]Read from MH i2c: 01 07 00 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: 01 07 00 D4 0D 00 00 00 00 00 FF 0F F6 [19:32:35]process_action close_receipt done [19:32:35]requested_data is exist [19:32:35]produce_requested_data [19:32:35]requested_item fm.sn is exist - process it [19:32:35]wFMCommunicate request_size=4 [19:32:35]MH_SAM_APDU [19:32:35]CAPDU: 80 11 00 00 [19:32:35]Write to MH i2c: E2 08 00 D5 0D 80 11 00 00 00 00 00 00 5C [19:32:35]Write i2c OK [19:32:35]MH_I2C_Read... [19:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:35]Read from MH i2c: E2 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 17 00 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 17 00 D5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 AC [19:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:32:35]wFMCommunicate OK [19:32:35]requested_item fd.num is exist - process it [19:32:35]SAM_PROTO_GetFieldsCounters [19:32:35]wFMCommunicate request_size=4 [19:32:35]MH_SAM_APDU [19:32:35]CAPDU: 80 13 00 00 [19:32:35]Write to MH i2c: E2 08 00 D6 0D 80 13 00 00 00 00 00 00 5F [19:32:35]Write i2c OK [19:32:35]MH_I2C_Read... [19:32:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:35]Read from MH i2c: E2 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 62 00 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 62 00 D6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 70 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [19:32:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 70 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:35]wFMCommunicate OK [19:32:35]SAM_PROTO_GetFieldsCounters done [19:32:35]requested_item shift.num is exist - process it [19:32:35]requested_item shift.opened is exist - process it [19:32:35]req_shift_opened [19:32:35]FM_GetShiftState [19:32:35]SAM_PROTO_GetShiftState [19:32:35]wFMCommunicate request_size=4 [19:32:35]MH_SAM_APDU [19:32:35]CAPDU: 80 13 01 00 [19:32:35]Write to MH i2c: E2 08 00 D7 0D 80 13 01 00 00 00 00 00 61 [19:32:35]Write i2c OK [19:32:35]MH_I2C_Read... [19:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:35]Read from MH i2c: E2 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 0E 00 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 0E 00 D7 0D 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3D [19:32:35]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:32:35]wFMCommunicate OK [19:32:35]SAM_PROTO_GetShiftState done [19:32:35]FM_GetShiftState done [19:32:35]req_shift_opened done [19:32:35]requested_item shift.open_date is exist - process it [19:32:35]req_shift_open_date [19:32:35]req_shift_open_date done [19:32:35]produce_requested_data done [19:32:35]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76656,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:32:35]process_action_free close_receipt [19:32:35]json_value_free [19:32:35]json_value_free done [19:32:35]process_json_proto returns [19:32:35]Send response to host [19:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76656,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:32:35]free response buf [19:32:35]execute_script done [19:32:35]execute_script returns [19:32:35]free content buf [19:32:35]Sock 9.Close socket [19:32:35]Sock 9.Thread stoped [19:32:39]OFD Sender: No OFD packet to send [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: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:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34: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:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:24]accept exits with 7 [19:42:24]New connection [19:42:24]New thread 3066948964 created [19:42:24]Thread 3066805604 joined [19:42:24]Waiting for new connection... [19:42:24] Sock 7.Parse request [19:42:24]Sock 7.Check first char [19:42:24]Sock 7.First char is OK [19:42:24]request: POST /json_proto HTTP/1.0 [19:42:24]Method: POST [19:42:24]URL: /json_proto [19:42:24]Method is POST - this is cgi request [19:42:24]url: /json_proto [19:42:24]query_string will be loaded in cgi processing [19:42:24]execute_cgi json_proto POST (null) [19:42:24]execute_cgi path=json_proto method=POST [19:42:24]POST find Content-Length [19:42:24]Host: 172.17.39.195:8080 [19:42:24]Content-Length: 661 [19:42:24]Content-Type: application/json [19:42:24] [19:42:24]POST finish read [19:42:24]Found Content-Length = 661 [19:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220783", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:24]execute_script... [19:42: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 : (3)220783", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:24]POST & json_proto [19:42:24]process_json_proto [19:42:24]json parsed OK: [19:42:24]protocol is kg_v1.0 [19:42:24]action value=close_receipt [19:42:24]process_action close_receipt [19:42:24]cmd_close_receipt [19:42:24]MH_GetDate [19:42:24]Write to MH i2c: F0 00 00 D8 0D D4 [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: F0 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: F0 09 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: F0 09 00 D8 0D 00 23 86 74 66 99 81 91 64 6F [19:42:24]GetLastDocTimeStamp 1718911954 [19:42:24]current date 1718912547 [19:42:24]FM_GetShiftState [19:42:24]SAM_PROTO_GetShiftState [19:42:24]wFMCommunicate request_size=4 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 13 01 00 [19:42:24]Write to MH i2c: E2 08 00 D9 0D 80 13 01 00 00 00 00 00 63 [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 0E 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 0E 00 D9 0D 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3F [19:42:24]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:42:24]wFMCommunicate OK [19:42:24]SAM_PROTO_GetShiftState done [19:42:24]FM_GetShiftState done [19:42:24]opened in 1718843774 [19:42:24]opened+sec_in_day 1718930174 [19:42:24]quantity*price = 6700 [19:42:24]sum+1 = 6701 [19:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 98 20.06.2024 19:42 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76657 ФПД: 204548645938098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194227&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76657&fm=204548645938098&tin=02508201610067®Number=0000000000095696&sum=6700 0 [19:42:25]StoreToDocumentArchive [19:42:25]shift 393 fd 76657 [19:42:25]save to /storage/0393/doc_00076657 [19:42:25]save last doc name /storage/0393/doc_00076657 to /storage/kkm_last_doc_name [19:42:25]save OK [19:42:25]Clear old archive folders... [19:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=284 [19:42:25]tlvbuf is 00EA6FB0 [19:42:25]SAM_PROTO_ClearQueue [19:42:25]wFMCommunicate request_size=4 [19:42:25]MH_SAM_APDU [19:42:25]CAPDU: 80 09 00 00 [19:42:25]Write to MH i2c: E2 08 00 E6 0D 80 09 00 00 00 00 00 00 65 [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:26]Read from MH i2c: E2 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [19:42:26]RAPDU: 90 00 [19:42:26]wFMCommunicate OK [19:42:26]SAM_PROTO_ClearQueue done [19:42:26]KKMCreateOFDPacket [19:42:26]OFDProtocolAddRootSTLVToBuf [19:42:26]FM_MakeSignedData [19:42:26]FM_MakeSignedData [19:42:26]SAM_PROTO_SignData [19:42:26]wFMCommunicate request_size=4 [19:42:26]MH_SAM_APDU [19:42:26]CAPDU: 80 0D 01 02 [19:42:26]Write to MH i2c: E2 08 00 E7 0D 80 0D 01 02 00 00 00 00 6D [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:26]Read from MH i2c: E2 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [19:42:26]RAPDU: 90 00 [19:42:26]wFMCommunicate OK [19:42:26]wFMCommunicate request_size=255 [19:42:26]MH_SAM_APDU [19:42:26]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 23 86 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 [19:42:26]Write to MH i2c: E2 02 01 E8 0D 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 23 86 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 00 00 07 [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:26]Read from MH i2c: E2 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [19:42:26]RAPDU: 90 00 [19:42:26]wFMCommunicate OK [19:42:26]wFMCommunicate request_size=43 [19:42:26]MH_SAM_APDU [19:42:26]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 71 2B 01 00 35 04 06 00 BA 09 31 61 63 B2 [19:42:26]Write to MH i2c: E2 2E 00 E9 0D 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 71 2B 01 00 35 04 06 00 BA 09 31 61 63 B2 00 00 5C [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:26]Read from MH i2c: E2 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [19:42:26]RAPDU: 90 00 [19:42:26]wFMCommunicate OK [19:42:26]wFMCommunicate request_size=4 [19:42:26]MH_SAM_APDU [19:42:26]CAPDU: 80 0D 03 02 [19:42:26]Write to MH i2c: E2 08 00 EA 0D 80 0D 03 02 00 00 00 00 72 [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:26]Read from MH i2c: E2 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 0B 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 0B 00 EA 0D 00 F5 88 7A D3 C7 1C 90 B4 90 00 64 [19:42:26]RAPDU: F5 88 7A D3 C7 1C 90 B4 90 00 [19:42:26]wFMCommunicate OK [19:42:26]SAM_PROTO_SignData done [19:42:26]FM_MakeSignedData done [19:42:26]CreateOFDProtocolMessage [19:42:26]wFMCommunicate request_size=4 [19:42:26]MH_SAM_APDU [19:42:26]CAPDU: 80 11 00 00 [19:42:26]Write to MH i2c: E2 08 00 EB 0D 80 11 00 00 00 00 00 00 72 [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:26]Read from MH i2c: E2 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 17 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: E2 17 00 EB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C2 [19:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:42:26]wFMCommunicate OK [19:42:26]CreateOFDProtocolMessage done [19:42:26]OFDSenderStorePacket 76657 [19:42:26]StoreOFDPacket docnum=76657 [19:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 30 01 00 00 75 02 28 01 70 48 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 23 86 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 71 2B 01 00 35 04 06 00 BA 09 31 61 63 B2 F5 88 7A D3 C7 1C 90 B4 [19:42:26]CheckFolder [19:42:26]dirname=/storage/ofd_packets [19:42:26]CheckFolder done [19:42:26]ProducePacketName [19:42:26]name=ofd_packets/00076657 [19:42:26]NVStorageSaveData ofd_packets/00076657 [19:42:26]File name is /storage/ofd_packets/00076657 [19:42:26]Write 334 bytes [19:42:26]NVStorageSaveData done [19:42:26]OFDSenderStorePacket done [19:42:26]KKMCreateOFDPacket done [19:42:26]NVStorageSaveData kkm_last_timestamp [19:42:26]File name is /storage/kkm_last_timestamp [19:42:26]Write 4 bytes [19:42:26]NVStorageSaveData done [19:42:26]ExternCall_PrintAddStr [19:42:26]wPrintStart [19:42:26]Write to MH i2c: 01 00 00 EC 0D F9 [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: 01 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: 01 07 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: 01 07 00 EC 0D 00 00 00 00 00 FF 0F 0E [19:42:26]RasterBufferAndPrint [19:42:26]line Счет N : (3)220783 [19:42:26]line ИНН: 02508201610067 [19:42:26]line Контрольно-Кассовый Чек [19:42:26]line ПРОДАЖА [19:42:26]line Товар: 6931280300549 [19:42:26]line Зажигалка Cricket ПН пьезо [19:42:26]line 1.000 * 67.00 [19:42:26]line = 67.00 [19:42:26]line НДС 12% НСП 1% [19:42:26]line > о реализуемом товаре [19:42:26]line ИТОГО: 67.00 [19:42:26]line НСП 1% : 0.59 [19:42:26]line НДС 12% : 7.11 [19:42:26]line Наличными: 67.00 [19:42:26]line Безнал.: 0.00 [19:42:26]line Место: АЗС № 144 "Партнер Нефть" [19:42:26]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:42:26]line СНО: Общий режим [19:42:26]line Чек 98 20.06.2024 19:42 [19:42:26]line Смена: 393 ФФД: 1.0 [19:42:26]line ЗНМ: 0300000170 [19:42:26]line РНМ: 0000000000095696 [19:42:26]line Версия ККМ: 001 [19:42:26]line ФМ: 0000000000875009 [19:42:26]line ФД: 76657 [19:42:26]line ФПД: 204548645938098 [19:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194227&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76657&fm=204548645938098&tin=02508201610067®Number=0000000000095696&sum=6700 [19:42:26]line 0 [19:42:26]written 0, free lines is 4095 [19:42:26]OFD Sender: Processing packet 76657 [packets to send 351, broken 350] [19:42:26]ProducePacketName [19:42:26]name=ofd_packets/00076657 [19:42:26]OFD Sender: To server: pG, [19:42:26]CommunicateWithHost lk.salyk.kg:30040 [19:42:26]ConnectInit lk.salyk.kg [19:42:26]Connected sock=10 [19:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 30 01 00 00 75 02 28 01 70 48 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 23 86 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 71 2B 01 00 35 04 06 00 BA 09 31 61 63 B2 F5 88 7A D3 C7 1C 90 B4 [19:42:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 1D BD 47 00 60 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 71 2B 01 00 F4 03 04 00 C3 2C 74 66 B6 04 01 00 00 72 88 63 C1 EA CB 09 7D [19:42:26]CommunicateWithHost err = 0 [19:42:26]CheckOFDResponse [19:42:26]1017 (14) - 77093643461234 [19:42:26]1041 (16) - 0000000000875009 [19:42:26]1040 (4) - 76657 [19:42:26]1012 (4) - 20.06.2024 13:21 [19:42:26]1206 (1) - 0 [19:42:26]OFD Sender: Remove packet 76657 [19:42:26]ProducePacketName [19:42:26]name=ofd_packets/00076657 [19:42:26]NVStorageDeleteData [19:42:26]Write to MH i2c: 01 00 00 14 0E 22 [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: 01 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: 01 07 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: 01 07 00 14 0E 00 00 00 00 00 FC 0C 31 [19:42:26]RasterBufferAndPrint [19:42:26]line [19:42:26]line [19:42:26]line [19:42:26]line [19:42:26]line [19:42:26]written 0, free lines is 3330 [19:42:26]MH_Cut [19:42:26]Write to MH i2c: D1 01 00 1B 0E 01 FB [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: D1 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: D1 01 00 [19:42:26]MH_I2C_Read... [19:42:26]Read from MH i2c: D1 01 00 1B 0E 00 FA [19:42:26]Write to MH i2c: 01 00 00 1C 0E 2A [19:42:26]Write i2c OK [19:42:26]MH_I2C_Read... [19:42:27]OFD Sender: No OFD packet to send [19:42:27]*** Cut start [19:42:27]*** Partial cut [19:42:27]*** CUTSNS_PIN = 1 [19:42:27]*** CUTSNS_PIN = 0 [19:42:27]*** Brake cut motor [19:42:28]Read from MH i2c: 01 [19:42:28]MH_I2C_Read... [19:42:28]*** Stop cut motor [19:42:28]*** Cut end [19:42:28]Read from MH i2c: 01 07 00 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: 01 07 00 1C 0E 00 00 00 00 00 FF 0F 3F [19:42:28]process_action close_receipt done [19:42:28]requested_data is exist [19:42:28]produce_requested_data [19:42:28]requested_item fm.sn is exist - process it [19:42:28]wFMCommunicate request_size=4 [19:42:28]MH_SAM_APDU [19:42:28]CAPDU: 80 11 00 00 [19:42:28]Write to MH i2c: E2 08 00 1D 0E 80 11 00 00 00 00 00 00 A5 [19:42:28]Write i2c OK [19:42:28]MH_I2C_Read... [19:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:28]Read from MH i2c: E2 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 17 00 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 17 00 1D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F5 [19:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:42:28]wFMCommunicate OK [19:42:28]requested_item fd.num is exist - process it [19:42:28]SAM_PROTO_GetFieldsCounters [19:42:28]wFMCommunicate request_size=4 [19:42:28]MH_SAM_APDU [19:42:28]CAPDU: 80 13 00 00 [19:42:28]Write to MH i2c: E2 08 00 1E 0E 80 13 00 00 00 00 00 00 A8 [19:42:28]Write i2c OK [19:42:28]MH_I2C_Read... [19:42:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:28]Read from MH i2c: E2 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 62 00 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 62 00 1E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 71 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [19:42:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 71 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:28]wFMCommunicate OK [19:42:28]SAM_PROTO_GetFieldsCounters done [19:42:28]requested_item shift.num is exist - process it [19:42:28]requested_item shift.opened is exist - process it [19:42:28]req_shift_opened [19:42:28]FM_GetShiftState [19:42:28]SAM_PROTO_GetShiftState [19:42:28]wFMCommunicate request_size=4 [19:42:28]MH_SAM_APDU [19:42:28]CAPDU: 80 13 01 00 [19:42:28]Write to MH i2c: E2 08 00 1F 0E 80 13 01 00 00 00 00 00 AA [19:42:28]Write i2c OK [19:42:28]MH_I2C_Read... [19:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:28]Read from MH i2c: E2 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 0E 00 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 0E 00 1F 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 86 [19:42:28]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:42:28]wFMCommunicate OK [19:42:28]SAM_PROTO_GetShiftState done [19:42:28]FM_GetShiftState done [19:42:28]req_shift_opened done [19:42:28]requested_item shift.open_date is exist - process it [19:42:28]req_shift_open_date [19:42:28]req_shift_open_date done [19:42:28]produce_requested_data done [19:42:28]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76657,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:42:28]process_action_free close_receipt [19:42:28]json_value_free [19:42:28]json_value_free done [19:42:28]process_json_proto returns [19:42:28]Send response to host [19:42:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76657,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:42:28]free response buf [19:42:28]execute_script done [19:42:28]execute_script returns [19:42:28]free content buf [19:42:28]Sock 7.Close socket [19:42:28]Sock 7.Thread stoped [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:50]accept exits with 9 [19:48:50]New connection [19:48:50]New thread 3066805604 created [19:48:50]Thread 3066948964 joined [19:48:50]Waiting for new connection... [19:48:50] Sock 9.Parse request [19:48:50]Sock 9.Check first char [19:48:50]Sock 9.First char is OK [19:48:50]request: POST /json_proto HTTP/1.0 [19:48:50]Method: POST [19:48:50]URL: /json_proto [19:48:50]Method is POST - this is cgi request [19:48:50]url: /json_proto [19:48:50]query_string will be loaded in cgi processing [19:48:50]execute_cgi json_proto POST (null) [19:48:50]execute_cgi path=json_proto method=POST [19:48:50]POST find Content-Length [19:48:50]Host: 172.17.39.195:8080 [19:48:50]Content-Length: 621 [19:48:50]Content-Type: application/json [19:48:50] [19:48:50]POST finish read [19:48:50]Found Content-Length = 621 [19:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220784", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:50]execute_script... [19:48: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 : (3)220784", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:50]POST & json_proto [19:48:50]process_json_proto [19:48:50]json parsed OK: [19:48:50]protocol is kg_v1.0 [19:48:50]action value=close_receipt [19:48:50]process_action close_receipt [19:48:50]cmd_close_receipt [19:48:50]MH_GetDate [19:48:50]Write to MH i2c: F0 00 00 20 0E 1D [19:48:50]Write i2c OK [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: F0 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: F0 09 00 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: F0 09 00 20 0E 00 A5 87 74 66 99 81 91 64 3B [19:48:50]GetLastDocTimeStamp 1718912547 [19:48:50]current date 1718912933 [19:48:50]FM_GetShiftState [19:48:50]SAM_PROTO_GetShiftState [19:48:50]wFMCommunicate request_size=4 [19:48:50]MH_SAM_APDU [19:48:50]CAPDU: 80 13 01 00 [19:48:50]Write to MH i2c: E2 08 00 21 0E 80 13 01 00 00 00 00 00 AC [19:48:50]Write i2c OK [19:48:50]MH_I2C_Read... [19:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:50]Read from MH i2c: E2 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: E2 0E 00 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: E2 0E 00 21 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 88 [19:48:50]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:48:50]wFMCommunicate OK [19:48:50]SAM_PROTO_GetShiftState done [19:48:50]FM_GetShiftState done [19:48:50]opened in 1718843774 [19:48:50]opened+sec_in_day 1718930174 [19:48:50]quantity*price = 28000 [19:48:50]sum+1 = 28001 [19:48:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 99 20.06.2024 19:48 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76658 ФПД: 265694560540468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194853&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76658&fm=265694560540468&tin=02508201610067®Number=0000000000095696&sum=28000 0 [19:48:51]StoreToDocumentArchive [19:48:51]shift 393 fd 76658 [19:48:51]save to /storage/0393/doc_00076658 [19:48:51]save last doc name /storage/0393/doc_00076658 to /storage/kkm_last_doc_name [19:48:51]save OK [19:48:51]Clear old archive folders... [19:48:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:48:51]tlvbuf is 00EA6E90 [19:48:51]SAM_PROTO_ClearQueue [19:48:51]wFMCommunicate request_size=4 [19:48:51]MH_SAM_APDU [19:48:51]CAPDU: 80 09 00 00 [19:48:51]Write to MH i2c: E2 08 00 2E 0E 80 09 00 00 00 00 00 00 AE [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:51]Read from MH i2c: E2 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 03 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [19:48:51]RAPDU: 90 00 [19:48:51]wFMCommunicate OK [19:48:51]SAM_PROTO_ClearQueue done [19:48:51]KKMCreateOFDPacket [19:48:51]OFDProtocolAddRootSTLVToBuf [19:48:51]FM_MakeSignedData [19:48:51]FM_MakeSignedData [19:48:51]SAM_PROTO_SignData [19:48:51]wFMCommunicate request_size=4 [19:48:51]MH_SAM_APDU [19:48:51]CAPDU: 80 0D 01 02 [19:48:51]Write to MH i2c: E2 08 00 2F 0E 80 0D 01 02 00 00 00 00 B6 [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 2F 0E 00 90 00 B1 [19:48:52]RAPDU: 90 00 [19:48:52]wFMCommunicate OK [19:48:52]wFMCommunicate request_size=255 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A5 87 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [19:48:52]Write to MH i2c: E2 02 01 30 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A5 87 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 85 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [19:48:52]RAPDU: 90 00 [19:48:52]wFMCommunicate OK [19:48:52]wFMCommunicate request_size=32 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 72 2B 01 00 35 04 06 00 F1 A5 D5 E6 57 34 [19:48:52]Write to MH i2c: E2 23 00 31 0E 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 72 2B 01 00 35 04 06 00 F1 A5 D5 E6 57 34 00 00 8D [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [19:48:52]RAPDU: 90 00 [19:48:52]wFMCommunicate OK [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 0D 03 02 [19:48:52]Write to MH i2c: E2 08 00 32 0E 80 0D 03 02 00 00 00 00 BB [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0B 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0B 00 32 0E 00 6B F0 91 6B 83 3A 3A 07 90 00 11 [19:48:52]RAPDU: 6B F0 91 6B 83 3A 3A 07 90 00 [19:48:52]wFMCommunicate OK [19:48:52]SAM_PROTO_SignData done [19:48:52]FM_MakeSignedData done [19:48:52]CreateOFDProtocolMessage [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 11 00 00 [19:48:52]Write to MH i2c: E2 08 00 33 0E 80 11 00 00 00 00 00 00 BB [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 17 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 17 00 33 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0B [19:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:48:52]wFMCommunicate OK [19:48:52]CreateOFDProtocolMessage done [19:48:52]OFDSenderStorePacket 76658 [19:48:52]StoreOFDPacket docnum=76658 [19:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 96 6D 1D 01 2C CB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A5 87 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 72 2B 01 00 35 04 06 00 F1 A5 D5 E6 57 34 6B F0 91 6B 83 3A 3A 07 [19:48:52]CheckFolder [19:48:52]dirname=/storage/ofd_packets [19:48:52]CheckFolder done [19:48:52]ProducePacketName [19:48:52]name=ofd_packets/00076658 [19:48:52]NVStorageSaveData ofd_packets/00076658 [19:48:52]File name is /storage/ofd_packets/00076658 [19:48:52]Write 323 bytes [19:48:52]NVStorageSaveData done [19:48:52]OFDSenderStorePacket done [19:48:52]KKMCreateOFDPacket done [19:48:52]NVStorageSaveData kkm_last_timestamp [19:48:52]File name is /storage/kkm_last_timestamp [19:48:52]Write 4 bytes [19:48:52]NVStorageSaveData done [19:48:52]ExternCall_PrintAddStr [19:48:52]wPrintStart [19:48:52]Write to MH i2c: 01 00 00 34 0E 42 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: 01 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: 01 07 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 FF 0F 57 [19:48:52]RasterBufferAndPrint [19:48:52]line Счет N : (3)220784 [19:48:52]line ИНН: 02508201610067 [19:48:52]line Контрольно-Кассовый Чек [19:48:52]line ПРОДАЖА [19:48:52]line Товар: 48747059 [19:48:52]line Сигареты Winston Legend Blue [19:48:52]line 2.000 * 140.00 [19:48:52]line = 280.00 [19:48:52]line НДС 12% НСП 1% [19:48:52]line > о реализуемом товаре [19:48:52]line ИТОГО: 280.00 [19:48:52]line НСП 1% : 2.48 [19:48:52]line НДС 12% : 29.73 [19:48:52]line Наличными: 280.00 [19:48:52]line Безнал.: 0.00 [19:48:52]line Место: АЗС № 144 "Партнер Нефть" [19:48:52]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:48:52]line СНО: Общий режим [19:48:52]line Чек 99 20.06.2024 19:48 [19:48:52]line Смена: 393 ФФД: 1.0 [19:48:52]line ЗНМ: 0300000170 [19:48:52]line РНМ: 0000000000095696 [19:48:52]line Версия ККМ: 001 [19:48:52]line ФМ: 0000000000875009 [19:48:52]line ФД: 76658 [19:48:52]line ФПД: 265694560540468 [19:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194853&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76658&fm=265694560540468&tin=02508201610067®Number=0000000000095696&sum=28000 [19:48:52]line 0 [19:48:52]written 0, free lines is 4095 [19:48:52]OFD Sender: Processing packet 76658 [packets to send 351, broken 350] [19:48:52]ProducePacketName [19:48:52]name=ofd_packets/00076658 [19:48:52]OFD Sender: To server: pG, [19:48:52]CommunicateWithHost lk.salyk.kg:30040 [19:48:52]ConnectInit lk.salyk.kg [19:48:52]Write to MH i2c: 01 00 00 5D 0E 6B [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: 01 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: 01 07 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 E0 0C 5E [19:48:52]RasterBufferAndPrint [19:48:52]line [19:48:52]line [19:48:52]line [19:48:52]line [19:48:52]line [19:48:52]written 0, free lines is 3302 [19:48:52]MH_Cut [19:48:52]Write to MH i2c: D1 01 00 64 0E 01 44 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: D1 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: D1 01 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: D1 01 00 64 0E 00 43 [19:48:52]Write to MH i2c: 01 00 00 65 0E 73 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:53]Connected sock=10 [19:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 96 6D 1D 01 2C CB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A5 87 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 72 2B 01 00 35 04 06 00 F1 A5 D5 E6 57 34 6B F0 91 6B 83 3A 3A 07 [19:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 25 0B 47 00 84 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 72 2B 01 00 F4 03 04 00 45 2E 74 66 B6 04 01 00 00 13 44 B5 F2 49 D7 7C BC [19:48:53]CommunicateWithHost err = 0 [19:48:53]CheckOFDResponse [19:48:53]1017 (14) - 77093643461234 [19:48:53]1041 (16) - 0000000000875009 [19:48:53]1040 (4) - 76658 [19:48:53]1012 (4) - 20.06.2024 13:27 [19:48:53]1206 (1) - 0 [19:48:53]OFD Sender: Remove packet 76658 [19:48:53]ProducePacketName [19:48:53]name=ofd_packets/00076658 [19:48:53]NVStorageDeleteData [19:48:53]*** Cut start [19:48:53]*** Partial cut [19:48:53]*** CUTSNS_PIN = 1 [19:48:53]OFD Sender: No OFD packet to send [19:48:53]*** CUTSNS_PIN = 0 [19:48:53]*** Brake cut motor [19:48:54]Read from MH i2c: 01 [19:48:54]MH_I2C_Read... [19:48:54]*** Stop cut motor [19:48:54]*** Cut end [19:48:54]Read from MH i2c: 01 07 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 FF 0F 88 [19:48:54]process_action close_receipt done [19:48:54]requested_data is exist [19:48:54]produce_requested_data [19:48:54]requested_item fm.sn is exist - process it [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 11 00 00 [19:48:54]Write to MH i2c: E2 08 00 66 0E 80 11 00 00 00 00 00 00 EE [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 66 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3E [19:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:48:54]wFMCommunicate OK [19:48:54]requested_item fd.num is exist - process it [19:48:54]SAM_PROTO_GetFieldsCounters [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 13 00 00 [19:48:54]Write to MH i2c: E2 08 00 67 0E 80 13 00 00 00 00 00 00 F1 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 62 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 62 00 67 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 72 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [19:48:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 72 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:54]wFMCommunicate OK [19:48:54]SAM_PROTO_GetFieldsCounters done [19:48:54]requested_item shift.num is exist - process it [19:48:54]requested_item shift.opened is exist - process it [19:48:54]req_shift_opened [19:48:54]FM_GetShiftState [19:48:54]SAM_PROTO_GetShiftState [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 13 01 00 [19:48:54]Write to MH i2c: E2 08 00 68 0E 80 13 01 00 00 00 00 00 F3 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0E 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0E 00 68 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 CF [19:48:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:48:54]wFMCommunicate OK [19:48:54]SAM_PROTO_GetShiftState done [19:48:54]FM_GetShiftState done [19:48:54]req_shift_opened done [19:48:54]requested_item shift.open_date is exist - process it [19:48:54]req_shift_open_date [19:48:54]req_shift_open_date done [19:48:54]produce_requested_data done [19:48:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76658,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:48:54]process_action_free close_receipt [19:48:54]json_value_free [19:48:54]json_value_free done [19:48:54]process_json_proto returns [19:48:54]Send response to host [19:48:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76658,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:48:54]free response buf [19:48:54]execute_script done [19:48:54]execute_script returns [19:48:54]free content buf [19:48:54]Sock 9.Close socket [19:48:54]Sock 9.Thread stoped [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:30]accept exits with 7 [19:54:30]New connection [19:54:30]New thread 3066948964 created [19:54:30]Thread 3066805604 joined [19:54:30]Waiting for new connection... [19:54:30] Sock 7.Parse request [19:54:30]Sock 7.Check first char [19:54:30]Sock 7.First char is OK [19:54:30]request: POST /json_proto HTTP/1.0 [19:54:30]Method: POST [19:54:30]URL: /json_proto [19:54:30]Method is POST - this is cgi request [19:54:30]url: /json_proto [19:54:30]query_string will be loaded in cgi processing [19:54:30]execute_cgi json_proto POST (null) [19:54:30]execute_cgi path=json_proto method=POST [19:54:30]POST find Content-Length [19:54:30]Host: 172.17.39.195:8080 [19:54:30]Content-Length: 621 [19:54:30]Content-Type: application/json [19:54:30] [19:54:30]POST finish read [19:54:30]Found Content-Length = 621 [19:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220785", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:30]execute_script... [19:54: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 : (3)220785", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:30]POST & json_proto [19:54:30]process_json_proto [19:54:30]json parsed OK: [19:54:30]protocol is kg_v1.0 [19:54:30]action value=close_receipt [19:54:30]process_action close_receipt [19:54:30]cmd_close_receipt [19:54:30]MH_GetDate [19:54:30]Write to MH i2c: F0 00 00 69 0E 66 [19:54:30]Write i2c OK [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: F0 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: F0 09 00 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: F0 09 00 69 0E 00 F9 88 74 66 99 81 91 64 D9 [19:54:30]GetLastDocTimeStamp 1718912933 [19:54:30]current date 1718913273 [19:54:30]FM_GetShiftState [19:54:30]SAM_PROTO_GetShiftState [19:54:30]wFMCommunicate request_size=4 [19:54:30]MH_SAM_APDU [19:54:30]CAPDU: 80 13 01 00 [19:54:30]Write to MH i2c: E2 08 00 6A 0E 80 13 01 00 00 00 00 00 F5 [19:54:30]Write i2c OK [19:54:30]MH_I2C_Read... [19:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:30]Read from MH i2c: E2 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: E2 0E 00 [19:54:30]MH_I2C_Read... [19:54:30]Read from MH i2c: E2 0E 00 6A 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 D1 [19:54:30]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:54:30]wFMCommunicate OK [19:54:30]SAM_PROTO_GetShiftState done [19:54:30]FM_GetShiftState done [19:54:30]opened in 1718843774 [19:54:30]opened+sec_in_day 1718930174 [19:54:30]quantity*price = 14000 [19:54:30]sum+1 = 14001 [19:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 100 20.06.2024 19:54 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76659 ФПД: 262811143525185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195433&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76659&fm=262811143525185&tin=02508201610067®Number=0000000000095696&sum=14000 0 [19:54:31]StoreToDocumentArchive [19:54:31]shift 393 fd 76659 [19:54:31]save to /storage/0393/doc_00076659 [19:54:31]save last doc name /storage/0393/doc_00076659 to /storage/kkm_last_doc_name [19:54:31]save OK [19:54:31]Clear old archive folders... [19:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:54:31]tlvbuf is 00ECD900 [19:54:31]SAM_PROTO_ClearQueue [19:54:31]wFMCommunicate request_size=4 [19:54:31]MH_SAM_APDU [19:54:31]CAPDU: 80 09 00 00 [19:54:31]Write to MH i2c: E2 08 00 77 0E 80 09 00 00 00 00 00 00 F7 [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:31]Read from MH i2c: E2 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 03 00 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [19:54:31]RAPDU: 90 00 [19:54:31]wFMCommunicate OK [19:54:31]SAM_PROTO_ClearQueue done [19:54:31]KKMCreateOFDPacket [19:54:31]OFDProtocolAddRootSTLVToBuf [19:54:31]FM_MakeSignedData [19:54:31]FM_MakeSignedData [19:54:31]SAM_PROTO_SignData [19:54:31]wFMCommunicate request_size=4 [19:54:31]MH_SAM_APDU [19:54:31]CAPDU: 80 0D 01 02 [19:54:31]Write to MH i2c: E2 08 00 78 0E 80 0D 01 02 00 00 00 00 FF [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 78 0E 00 90 00 FA [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]wFMCommunicate request_size=255 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 F9 88 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [19:54:32]Write to MH i2c: E2 02 01 79 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 F9 88 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 33 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 79 0E 00 90 00 FB [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]wFMCommunicate request_size=32 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 73 2B 01 00 35 04 06 00 EF 06 7C DA 53 41 [19:54:32]Write to MH i2c: E2 23 00 7A 0E 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 73 2B 01 00 35 04 06 00 EF 06 7C DA 53 41 00 00 DA [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 7A 0E 00 90 00 FC [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 0D 03 02 [19:54:32]Write to MH i2c: E2 08 00 7B 0E 80 0D 03 02 00 00 00 00 04 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 0B 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 0B 00 7B 0E 00 16 94 B7 1A C2 8D E6 ED 90 00 A2 [19:54:32]RAPDU: 16 94 B7 1A C2 8D E6 ED 90 00 [19:54:32]wFMCommunicate OK [19:54:32]SAM_PROTO_SignData done [19:54:32]FM_MakeSignedData done [19:54:32]CreateOFDProtocolMessage [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 11 00 00 [19:54:32]Write to MH i2c: E2 08 00 7C 0E 80 11 00 00 00 00 00 00 04 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 17 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 17 00 7C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 54 [19:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:54:32]wFMCommunicate OK [19:54:32]CreateOFDProtocolMessage done [19:54:32]OFDSenderStorePacket 76659 [19:54:32]StoreOFDPacket docnum=76659 [19:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 CD C0 1D 01 0D D3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 F9 88 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 73 2B 01 00 35 04 06 00 EF 06 7C DA 53 41 16 94 B7 1A C2 8D E6 ED [19:54:32]CheckFolder [19:54:32]dirname=/storage/ofd_packets [19:54:32]CheckFolder done [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00076659 [19:54:32]NVStorageSaveData ofd_packets/00076659 [19:54:32]File name is /storage/ofd_packets/00076659 [19:54:32]Write 323 bytes [19:54:32]NVStorageSaveData done [19:54:32]OFDSenderStorePacket done [19:54:32]KKMCreateOFDPacket done [19:54:32]NVStorageSaveData kkm_last_timestamp [19:54:32]File name is /storage/kkm_last_timestamp [19:54:32]Write 4 bytes [19:54:32]NVStorageSaveData done [19:54:32]ExternCall_PrintAddStr [19:54:32]wPrintStart [19:54:32]Write to MH i2c: 01 00 00 7D 0E 8B [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 7D 0E 00 00 00 00 00 FF 0F A0 [19:54:32]RasterBufferAndPrint [19:54:32]line Счет N : (3)220785 [19:54:32]line ИНН: 02508201610067 [19:54:32]line Контрольно-Кассовый Чек [19:54:32]line ПРОДАЖА [19:54:32]line Товар: 48747059 [19:54:32]line Сигареты Winston Legend Blue [19:54:32]line 1.000 * 140.00 [19:54:32]line = 140.00 [19:54:32]line НДС 12% НСП 1% [19:54:32]line > о реализуемом товаре [19:54:32]line ИТОГО: 140.00 [19:54:32]line НСП 1% : 1.24 [19:54:32]line НДС 12% : 14.87 [19:54:32]line Наличными: 140.00 [19:54:32]line Безнал.: 0.00 [19:54:32]line Место: АЗС № 144 "Партнер Нефть" [19:54:32]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:54:32]line СНО: Общий режим [19:54:32]line Чек 100 20.06.2024 19:54 [19:54:32]line Смена: 393 ФФД: 1.0 [19:54:32]line ЗНМ: 0300000170 [19:54:32]line РНМ: 0000000000095696 [19:54:32]line Версия ККМ: 001 [19:54:32]line ФМ: 0000000000875009 [19:54:32]line ФД: 76659 [19:54:32]line ФПД: 262811143525185 [19:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195433&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76659&fm=262811143525185&tin=02508201610067®Number=0000000000095696&sum=14000 [19:54:32]line 0 [19:54:32]written 0, free lines is 4095 [19:54:32]OFD Sender: Processing packet 76659 [packets to send 351, broken 350] [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00076659 [19:54:32]OFD Sender: To server: pG, [19:54:32]CommunicateWithHost lk.salyk.kg:30040 [19:54:32]ConnectInit lk.salyk.kg [19:54:32]Connected sock=11 [19:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 CD C0 1D 01 0D D3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 F9 88 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 73 2B 01 00 35 04 06 00 EF 06 7C DA 53 41 16 94 B7 1A C2 8D E6 ED [19:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 32 C7 47 00 F3 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 73 2B 01 00 F4 03 04 00 99 2F 74 66 B6 04 01 00 00 0B 56 FE 4B A2 94 30 C6 [19:54:32]CommunicateWithHost err = 0 [19:54:32]CheckOFDResponse [19:54:32]1017 (14) - 77093643461234 [19:54:32]1041 (16) - 0000000000875009 [19:54:32]1040 (4) - 76659 [19:54:32]1012 (4) - 20.06.2024 13:33 [19:54:32]1206 (1) - 0 [19:54:32]OFD Sender: Remove packet 76659 [19:54:32]ProducePacketName [19:54:32]name=ofd_packets/00076659 [19:54:32]NVStorageDeleteData [19:54:32]Write to MH i2c: 01 00 00 A6 0E B4 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 CE 0C 95 [19:54:32]RasterBufferAndPrint [19:54:32]line [19:54:32]line [19:54:32]line [19:54:32]line [19:54:32]line [19:54:32]written 0, free lines is 3285 [19:54:32]MH_Cut [19:54:32]Write to MH i2c: D1 01 00 AD 0E 01 8D [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: D1 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: D1 01 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: D1 01 00 AD 0E 00 8C [19:54:32]Write to MH i2c: 01 00 00 AE 0E BC [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:33]OFD Sender: No OFD packet to send [19:54:33]*** Cut start [19:54:33]*** Partial cut [19:54:33]*** CUTSNS_PIN = 1 [19:54:33]*** CUTSNS_PIN = 0 [19:54:33]*** Brake cut motor [19:54:34]Read from MH i2c: 01 [19:54:34]MH_I2C_Read... [19:54:34]*** Stop cut motor [19:54:34]*** Cut end [19:54:34]Read from MH i2c: 01 07 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 FF 0F D1 [19:54:34]process_action close_receipt done [19:54:34]requested_data is exist [19:54:34]produce_requested_data [19:54:34]requested_item fm.sn is exist - process it [19:54:34]wFMCommunicate request_size=4 [19:54:34]MH_SAM_APDU [19:54:34]CAPDU: 80 11 00 00 [19:54:34]Write to MH i2c: E2 08 00 AF 0E 80 11 00 00 00 00 00 00 37 [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:34]Read from MH i2c: E2 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 17 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 17 00 AF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 87 [19:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:54:34]wFMCommunicate OK [19:54:34]requested_item fd.num is exist - process it [19:54:34]SAM_PROTO_GetFieldsCounters [19:54:34]wFMCommunicate request_size=4 [19:54:34]MH_SAM_APDU [19:54:34]CAPDU: 80 13 00 00 [19:54:34]Write to MH i2c: E2 08 00 B0 0E 80 13 00 00 00 00 00 00 3A [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:34]Read from MH i2c: E2 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 62 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 62 00 B0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 73 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [19:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 73 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:34]wFMCommunicate OK [19:54:34]SAM_PROTO_GetFieldsCounters done [19:54:34]requested_item shift.num is exist - process it [19:54:34]requested_item shift.opened is exist - process it [19:54:34]req_shift_opened [19:54:34]FM_GetShiftState [19:54:34]SAM_PROTO_GetShiftState [19:54:34]wFMCommunicate request_size=4 [19:54:34]MH_SAM_APDU [19:54:34]CAPDU: 80 13 01 00 [19:54:34]Write to MH i2c: E2 08 00 B1 0E 80 13 01 00 00 00 00 00 3C [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:34]Read from MH i2c: E2 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 0E 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: E2 0E 00 B1 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 18 [19:54:34]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:54:34]wFMCommunicate OK [19:54:34]SAM_PROTO_GetShiftState done [19:54:34]FM_GetShiftState done [19:54:34]req_shift_opened done [19:54:34]requested_item shift.open_date is exist - process it [19:54:34]req_shift_open_date [19:54:34]req_shift_open_date done [19:54:34]produce_requested_data done [19:54:34]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76659,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:54:34]process_action_free close_receipt [19:54:34]json_value_free [19:54:34]json_value_free done [19:54:34]process_json_proto returns [19:54:34]Send response to host [19:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76659,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:54:34]free response buf [19:54:34]execute_script done [19:54:34]execute_script returns [19:54:34]free content buf [19:54:34]Sock 7.Close socket [19:54:34]Sock 7.Thread stoped [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:22]accept exits with 10 [19:55:22]New connection [19:55:22]New thread 3066805604 created [19:55:22]Thread 3066948964 joined [19:55:22]Waiting for new connection... [19:55:22] Sock 10.Parse request [19:55:22]Sock 10.Check first char [19:55:22]Sock 10.First char is OK [19:55:22]request: POST /json_proto HTTP/1.0 [19:55:22]Method: POST [19:55:22]URL: /json_proto [19:55:22]Method is POST - this is cgi request [19:55:22]url: /json_proto [19:55:22]query_string will be loaded in cgi processing [19:55:22]execute_cgi json_proto POST (null) [19:55:22]execute_cgi path=json_proto method=POST [19:55:22]POST find Content-Length [19:55:22]Host: 172.17.39.195:8080 [19:55:22]Content-Length: 660 [19:55:22]Content-Type: application/json [19:55:22] [19:55:22]POST finish read [19:55:22]Found Content-Length = 660 [19:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220786", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:22]execute_script... [19:55: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 : (3)220786", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:22]POST & json_proto [19:55:22]process_json_proto [19:55:22]json parsed OK: [19:55:22]protocol is kg_v1.0 [19:55:22]action value=close_receipt [19:55:22]process_action close_receipt [19:55:22]cmd_close_receipt [19:55:22]MH_GetDate [19:55:22]Write to MH i2c: F0 00 00 B2 0E AF [19:55:22]Write i2c OK [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: F0 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: F0 09 00 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: F0 09 00 B2 0E 00 2D 89 74 66 99 81 91 64 57 [19:55:22]GetLastDocTimeStamp 1718913273 [19:55:22]current date 1718913325 [19:55:22]FM_GetShiftState [19:55:22]SAM_PROTO_GetShiftState [19:55:22]wFMCommunicate request_size=4 [19:55:22]MH_SAM_APDU [19:55:22]CAPDU: 80 13 01 00 [19:55:22]Write to MH i2c: E2 08 00 B3 0E 80 13 01 00 00 00 00 00 3E [19:55:22]Write i2c OK [19:55:22]MH_I2C_Read... [19:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:22]Read from MH i2c: E2 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: E2 0E 00 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: E2 0E 00 B3 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 1A [19:55:22]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:55:22]wFMCommunicate OK [19:55:22]SAM_PROTO_GetShiftState done [19:55:22]FM_GetShiftState done [19:55:22]opened in 1718843774 [19:55:22]opened+sec_in_day 1718930174 [19:55:22]quantity*price = 15500 [19:55:22]sum+1 = 15501 [19:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 101 20.06.2024 19:55 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76660 ФПД: 173076891962701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195525&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76660&fm=173076891962701&tin=02508201610067®Number=0000000000095696&sum=15500 0 [19:55:24]StoreToDocumentArchive [19:55:24]shift 393 fd 76660 [19:55:24]save to /storage/0393/doc_00076660 [19:55:24]save last doc name /storage/0393/doc_00076660 to /storage/kkm_last_doc_name [19:55:24]save OK [19:55:24]Clear old archive folders... [19:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=280 [19:55:24]tlvbuf is 00E61B00 [19:55:24]SAM_PROTO_ClearQueue [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 09 00 00 [19:55:24]Write to MH i2c: E2 08 00 C0 0E 80 09 00 00 00 00 00 00 40 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]SAM_PROTO_ClearQueue done [19:55:24]KKMCreateOFDPacket [19:55:24]OFDProtocolAddRootSTLVToBuf [19:55:24]FM_MakeSignedData [19:55:24]FM_MakeSignedData [19:55:24]SAM_PROTO_SignData [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 01 02 [19:55:24]Write to MH i2c: E2 08 00 C1 0E 80 0D 01 02 00 00 00 00 48 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]wFMCommunicate request_size=255 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 2D 89 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 [19:55:24]Write to MH i2c: E2 02 01 C2 0E 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 2D 89 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 00 00 EA [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]wFMCommunicate request_size=39 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 74 2B 01 00 35 04 06 00 9D 69 9A AA 0D 4D [19:55:24]Write to MH i2c: E2 2A 00 C3 0E 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 74 2B 01 00 35 04 06 00 9D 69 9A AA 0D 4D 00 00 47 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 03 02 [19:55:24]Write to MH i2c: E2 08 00 C4 0E 80 0D 03 02 00 00 00 00 4D [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 0B 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 0B 00 C4 0E 00 2A B7 AE D6 65 0C A7 FF 90 00 CA [19:55:24]RAPDU: 2A B7 AE D6 65 0C A7 FF 90 00 [19:55:24]wFMCommunicate OK [19:55:24]SAM_PROTO_SignData done [19:55:24]FM_MakeSignedData done [19:55:24]CreateOFDProtocolMessage [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 11 00 00 [19:55:24]Write to MH i2c: E2 08 00 C5 0E 80 11 00 00 00 00 00 00 4D [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 17 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 17 00 C5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9D [19:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:55:24]wFMCommunicate OK [19:55:24]CreateOFDProtocolMessage done [19:55:24]OFDSenderStorePacket 76660 [19:55:24]StoreOFDPacket docnum=76660 [19:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2C 01 00 00 F7 53 24 01 68 A6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 2D 89 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 74 2B 01 00 35 04 06 00 9D 69 9A AA 0D 4D 2A B7 AE D6 65 0C A7 FF [19:55:24]CheckFolder [19:55:24]dirname=/storage/ofd_packets [19:55:24]CheckFolder done [19:55:24]ProducePacketName [19:55:24]name=ofd_packets/00076660 [19:55:24]NVStorageSaveData ofd_packets/00076660 [19:55:24]File name is /storage/ofd_packets/00076660 [19:55:24]Write 330 bytes [19:55:24]NVStorageSaveData done [19:55:24]OFDSenderStorePacket done [19:55:24]KKMCreateOFDPacket done [19:55:24]NVStorageSaveData kkm_last_timestamp [19:55:24]File name is /storage/kkm_last_timestamp [19:55:24]Write 4 bytes [19:55:24]NVStorageSaveData done [19:55:24]ExternCall_PrintAddStr [19:55:24]wPrintStart [19:55:24]Write to MH i2c: 01 00 00 C6 0E D4 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 07 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 07 00 C6 0E 00 00 00 00 00 FF 0F E9 [19:55:24]RasterBufferAndPrint [19:55:24]line Счет N : (3)220786 [19:55:24]line ИНН: 02508201610067 [19:55:24]line Контрольно-Кассовый Чек [19:55:24]line ПРОДАЖА [19:55:24]line Товар: 5449000000439 [19:55:24]line Напиток Кока-Кола 1,5л [19:55:24]line 1.000 * 155.00 [19:55:24]line = 155.00 [19:55:24]line НДС 12% НСП 1% [19:55:24]line > о реализуемом товаре [19:55:24]line ИТОГО: 155.00 [19:55:24]line НСП 1% : 1.37 [19:55:24]line НДС 12% : 16.46 [19:55:24]line Наличными: 155.00 [19:55:24]line Безнал.: 0.00 [19:55:24]line Место: АЗС № 144 "Партнер Нефть" [19:55:24]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:55:24]line СНО: Общий режим [19:55:24]line Чек 101 20.06.2024 19:55 [19:55:24]line Смена: 393 ФФД: 1.0 [19:55:24]line ЗНМ: 0300000170 [19:55:24]line РНМ: 0000000000095696 [19:55:24]line Версия ККМ: 001 [19:55:24]line ФМ: 0000000000875009 [19:55:24]line ФД: 76660 [19:55:24]line ФПД: 173076891962701 [19:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195525&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76660&fm=173076891962701&tin=02508201610067®Number=0000000000095696&sum=15500 [19:55:24]line 0 [19:55:24]written 0, free lines is 4095 [19:55:24]OFD Sender: Processing packet 76660 [packets to send 351, broken 350] [19:55:24]ProducePacketName [19:55:24]name=ofd_packets/00076660 [19:55:24]OFD Sender: To server: pG, [19:55:24]CommunicateWithHost lk.salyk.kg:30040 [19:55:24]ConnectInit lk.salyk.kg [19:55:24]Connected sock=9 [19:55:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2C 01 00 00 F7 53 24 01 68 A6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 2D 89 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 74 2B 01 00 35 04 06 00 9D 69 9A AA 0D 4D 2A B7 AE D6 65 0C A7 FF [19:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 EF FD 47 00 31 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 74 2B 01 00 F4 03 04 00 CD 2F 74 66 B6 04 01 00 00 E2 D3 61 FA A2 4F 7E E6 [19:55:25]CommunicateWithHost err = 0 [19:55:25]CheckOFDResponse [19:55:25]1017 (14) - 77093643461234 [19:55:25]1041 (16) - 0000000000875009 [19:55:25]1040 (4) - 76660 [19:55:25]1012 (4) - 20.06.2024 13:34 [19:55:25]1206 (1) - 0 [19:55:25]OFD Sender: Remove packet 76660 [19:55:25]ProducePacketName [19:55:25]name=ofd_packets/00076660 [19:55:25]NVStorageDeleteData [19:55:25]Write to MH i2c: 01 00 00 EE 0E FC [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: 01 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: 01 07 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 00 0D 10 [19:55:25]RasterBufferAndPrint [19:55:25]line [19:55:25]line [19:55:25]line [19:55:25]line [19:55:25]line [19:55:25]written 0, free lines is 3337 [19:55:25]MH_Cut [19:55:25]Write to MH i2c: D1 01 00 F5 0E 01 D5 [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: D1 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: D1 01 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: D1 01 00 F5 0E 00 D4 [19:55:25]Write to MH i2c: 01 00 00 F6 0E 04 [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]OFD Sender: No OFD packet to send [19:55:25]*** Cut start [19:55:25]*** Partial cut [19:55:25]*** CUTSNS_PIN = 1 [19:55:25]*** CUTSNS_PIN = 0 [19:55:26]*** Brake cut motor [19:55:26]Read from MH i2c: 01 [19:55:26]MH_I2C_Read... [19:55:26]*** Stop cut motor [19:55:26]*** Cut end [19:55:26]Read from MH i2c: 01 07 00 [19:55:26]MH_I2C_Read... [19:55:26]Read from MH i2c: 01 07 00 F6 0E 00 00 00 00 00 FF 0F 19 [19:55:26]process_action close_receipt done [19:55:26]requested_data is exist [19:55:26]produce_requested_data [19:55:26]requested_item fm.sn is exist - process it [19:55:26]wFMCommunicate request_size=4 [19:55:26]MH_SAM_APDU [19:55:26]CAPDU: 80 11 00 00 [19:55:26]Write to MH i2c: E2 08 00 F7 0E 80 11 00 00 00 00 00 00 7F [19:55:26]Write i2c OK [19:55:26]MH_I2C_Read... [19:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:26]Read from MH i2c: E2 [19:55:26]MH_I2C_Read... [19:55:26]Read from MH i2c: E2 17 00 [19:55:26]MH_I2C_Read... [19:55:26]Read from MH i2c: E2 17 00 F7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CF [19:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:55:26]wFMCommunicate OK [19:55:26]requested_item fd.num is exist - process it [19:55:26]SAM_PROTO_GetFieldsCounters [19:55:26]wFMCommunicate request_size=4 [19:55:26]MH_SAM_APDU [19:55:26]CAPDU: 80 13 00 00 [19:55:26]Write to MH i2c: E2 08 00 F8 0E 80 13 00 00 00 00 00 00 82 [19:55:26]Write i2c OK [19:55:26]MH_I2C_Read... [19:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:26]Read from MH i2c: E2 [19:55:26]MH_I2C_Read... [19:55:26]Read from MH i2c: E2 62 00 [19:55:26]MH_I2C_Read... [19:55:26]Read from MH i2c: E2 62 00 F8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 74 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [19:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 74 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:26]wFMCommunicate OK [19:55:26]SAM_PROTO_GetFieldsCounters done [19:55:26]requested_item shift.num is exist - process it [19:55:26]requested_item shift.opened is exist - process it [19:55:26]req_shift_opened [19:55:26]FM_GetShiftState [19:55:26]SAM_PROTO_GetShiftState [19:55:26]wFMCommunicate request_size=4 [19:55:26]MH_SAM_APDU [19:55:26]CAPDU: 80 13 01 00 [19:55:26]Write to MH i2c: E2 08 00 F9 0E 80 13 01 00 00 00 00 00 84 [19:55:26]Write i2c OK [19:55:26]MH_I2C_Read... [19:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:26]Read from MH i2c: E2 [19:55:26]MH_I2C_Read... [19:55:26]Read from MH i2c: E2 0E 00 [19:55:26]MH_I2C_Read... [19:55:26]Read from MH i2c: E2 0E 00 F9 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 60 [19:55:26]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [19:55:26]wFMCommunicate OK [19:55:26]SAM_PROTO_GetShiftState done [19:55:26]FM_GetShiftState done [19:55:26]req_shift_opened done [19:55:26]requested_item shift.open_date is exist - process it [19:55:26]req_shift_open_date [19:55:26]req_shift_open_date done [19:55:26]produce_requested_data done [19:55:26]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76660,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [19:55:26]process_action_free close_receipt [19:55:26]json_value_free [19:55:26]json_value_free done [19:55:26]process_json_proto returns [19:55:26]Send response to host [19:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76660,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [19:55:26]free response buf [19:55:26]execute_script done [19:55:26]execute_script returns [19:55:26]free content buf [19:55:26]Sock 10.Close socket [19:55:26]Sock 10.Thread stoped [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55: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:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:48]accept exits with 7 [20:13:48]New connection [20:13:48]New thread 3066948964 created [20:13:48]Thread 3066805604 joined [20:13:48]Waiting for new connection... [20:13:48] Sock 7.Parse request [20:13:48]Sock 7.Check first char [20:13:48]Sock 7.First char is OK [20:13:48]request: POST /json_proto HTTP/1.0 [20:13:48]Method: POST [20:13:48]URL: /json_proto [20:13:48]Method is POST - this is cgi request [20:13:48]url: /json_proto [20:13:48]query_string will be loaded in cgi processing [20:13:48]execute_cgi json_proto POST (null) [20:13:48]execute_cgi path=json_proto method=POST [20:13:48]POST find Content-Length [20:13:48]Host: 172.17.39.195:8080 [20:13:48]Content-Length: 906 [20:13:48]Content-Type: application/json [20:13:48] [20:13:48]POST finish read [20:13:48]Found Content-Length = 906 [20:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220787", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:48]execute_script... [20:13: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 : (3)220787", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:48]POST & json_proto [20:13:48]process_json_proto [20:13:48]json parsed OK: [20:13:48]protocol is kg_v1.0 [20:13:48]action value=close_receipt [20:13:48]process_action close_receipt [20:13:48]cmd_close_receipt [20:13:48]MH_GetDate [20:13:48]Write to MH i2c: F0 00 00 FA 0E F7 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: F0 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: F0 09 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: F0 09 00 FA 0E 00 7E 8D 74 66 99 81 91 64 F4 [20:13:48]GetLastDocTimeStamp 1718913325 [20:13:48]current date 1718914430 [20:13:48]FM_GetShiftState [20:13:48]SAM_PROTO_GetShiftState [20:13:48]wFMCommunicate request_size=4 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 13 01 00 [20:13:48]Write to MH i2c: E2 08 00 FB 0E 80 13 01 00 00 00 00 00 86 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 0E 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 0E 00 FB 0E 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 62 [20:13:48]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [20:13:48]wFMCommunicate OK [20:13:48]SAM_PROTO_GetShiftState done [20:13:48]FM_GetShiftState done [20:13:48]opened in 1718843774 [20:13:48]opened+sec_in_day 1718930174 [20:13:48]quantity*price = 11000 [20:13:48]sum+1 = 11001 [20:13:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.17 Наличными: 124.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 102 20.06.2024 20:13 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76661 ФПД: 92509257140092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T201350&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76661&fm=92509257140092&tin=02508201610067®Number=0000000000095696&sum=12400 0 [20:13:49]StoreToDocumentArchive [20:13:49]shift 393 fd 76661 [20:13:49]save to /storage/0393/doc_00076661 [20:13:49]save last doc name /storage/0393/doc_00076661 to /storage/kkm_last_doc_name [20:13:49]save OK [20:13:49]Clear old archive folders... [20:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=383 [20:13:49]tlvbuf is 00E9FD50 [20:13:49]SAM_PROTO_ClearQueue [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 09 00 00 [20:13:49]Write to MH i2c: E2 08 00 08 0F 80 09 00 00 00 00 00 00 89 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [20:13:49]RAPDU: 90 00 [20:13:49]wFMCommunicate OK [20:13:49]SAM_PROTO_ClearQueue done [20:13:49]KKMCreateOFDPacket [20:13:49]OFDProtocolAddRootSTLVToBuf [20:13:49]FM_MakeSignedData [20:13:49]FM_MakeSignedData [20:13:49]SAM_PROTO_SignData [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 0D 01 02 [20:13:49]Write to MH i2c: E2 08 00 09 0F 80 0D 01 02 00 00 00 00 91 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [20:13:49]RAPDU: 90 00 [20:13:49]wFMCommunicate OK [20:13:49]wFMCommunicate request_size=255 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D [20:13:49]Write to MH i2c: E2 02 01 0A 0F 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 B8 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [20:13:49]RAPDU: 90 00 [20:13:49]wFMCommunicate OK [20:13:49]wFMCommunicate request_size=142 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7E 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 75 2B 01 00 35 04 06 00 54 22 FD 69 07 7C [20:13:49]Write to MH i2c: E2 91 00 0B 0F 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7E 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 75 2B 01 00 35 04 06 00 54 22 FD 69 07 7C 00 00 79 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [20:13:49]RAPDU: 90 00 [20:13:49]wFMCommunicate OK [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 0D 03 02 [20:13:49]Write to MH i2c: E2 08 00 0C 0F 80 0D 03 02 00 00 00 00 96 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 0B 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 0B 00 0C 0F 00 64 1E F7 DB 62 33 29 49 90 00 F2 [20:13:49]RAPDU: 64 1E F7 DB 62 33 29 49 90 00 [20:13:49]wFMCommunicate OK [20:13:49]SAM_PROTO_SignData done [20:13:49]FM_MakeSignedData done [20:13:49]CreateOFDProtocolMessage [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 11 00 00 [20:13:49]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 17 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E6 [20:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:13:49]wFMCommunicate OK [20:13:49]CreateOFDProtocolMessage done [20:13:49]OFDSenderStorePacket 76661 [20:13:49]StoreOFDPacket docnum=76661 [20:13:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 93 01 00 00 F2 0E 8B 01 1D 90 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7E 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 75 2B 01 00 35 04 06 00 54 22 FD 69 07 7C 64 1E F7 DB 62 33 29 49 [20:13:49]CheckFolder [20:13:49]dirname=/storage/ofd_packets [20:13:49]CheckFolder done [20:13:49]ProducePacketName [20:13:49]name=ofd_packets/00076661 [20:13:49]NVStorageSaveData ofd_packets/00076661 [20:13:49]File name is /storage/ofd_packets/00076661 [20:13:49]Write 433 bytes [20:13:49]NVStorageSaveData done [20:13:49]OFDSenderStorePacket done [20:13:49]KKMCreateOFDPacket done [20:13:49]NVStorageSaveData kkm_last_timestamp [20:13:49]File name is /storage/kkm_last_timestamp [20:13:49]Write 4 bytes [20:13:49]NVStorageSaveData done [20:13:49]ExternCall_PrintAddStr [20:13:49]wPrintStart [20:13:49]Write to MH i2c: 01 00 00 0E 0F 1D [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: 01 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: 01 07 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 FF 0F 32 [20:13:49]RasterBufferAndPrint [20:13:50]line Счет N : (3)220787 [20:13:50]line ИНН: 02508201610067 [20:13:50]line Контрольно-Кассовый Чек [20:13:50]line ПРОДАЖА [20:13:50]line Товар: 4870001570071 [20:13:50]line Напиток Pepsi 1л [20:13:50]line 1.000 * 110.00 [20:13:50]line = 110.00 [20:13:50]line НДС 12% НСП 1% [20:13:50]line > о реализуемом товаре [20:13:50]line Товар: 2000053020015 [20:13:50]line Бумажные стаканы 250мл 1шт [20:13:50]line 2.000 * 7.00 [20:13:50]line = 14.00 [20:13:50]line НДС 12% НСП 1% [20:13:50]line > о реализуемом товаре [20:13:50]line ИТОГО: 124.00 [20:13:50]line НСП 1% : 1.09 [20:13:50]line НДС 12% : 13.17 [20:13:50]line Наличными: 124.00 [20:13:50]line Безнал.: 0.00 [20:13:50]line Место: АЗС № 144 "Партнер Нефть" [20:13:50]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [20:13:50]line СНО: Общий режим [20:13:50]line Чек 102 20.06.2024 20:13 [20:13:50]line Смена: 393 ФФД: 1.0 [20:13:50]line ЗНМ: 0300000170 [20:13:50]line РНМ: 0000000000095696 [20:13:50]line Версия ККМ: 001 [20:13:50]line ФМ: 0000000000875009 [20:13:50]line ФД: 76661 [20:13:50]line ФПД: 92509257140092 [20:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T201350&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76661&fm=92509257140092&tin=02508201610067®Number=0000000000095696&sum=12400 [20:13:50]line 0 [20:13:50]OFD Sender: Processing packet 76661 [packets to send 351, broken 350] [20:13:50]ProducePacketName [20:13:50]name=ofd_packets/00076661 [20:13:50]OFD Sender: To server: pG, [20:13:50]CommunicateWithHost lk.salyk.kg:30040 [20:13:50]ConnectInit lk.salyk.kg [20:13:50]written 0, free lines is 4095 [20:13:50]Connected sock=10 [20:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 93 01 00 00 F2 0E 8B 01 1D 90 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7E 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 75 2B 01 00 35 04 06 00 54 22 FD 69 07 7C 64 1E F7 DB 62 33 29 49 [20:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F4 2C 47 00 FD 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 75 2B 01 00 F4 03 04 00 1E 34 74 66 B6 04 01 00 00 DC 63 33 4D 64 11 1A A8 [20:13:50]CommunicateWithHost err = 0 [20:13:50]CheckOFDResponse [20:13:50]1017 (14) - 77093643461234 [20:13:50]1041 (16) - 0000000000875009 [20:13:50]1040 (4) - 76661 [20:13:50]1012 (4) - 20.06.2024 13:52 [20:13:50]1206 (1) - 0 [20:13:50]OFD Sender: Remove packet 76661 [20:13:50]ProducePacketName [20:13:50]name=ofd_packets/00076661 [20:13:50]NVStorageDeleteData [20:13:50]Write to MH i2c: 01 00 00 3D 0F 4C [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 3D 0F 00 00 00 00 00 7E 0C DD [20:13:50]RasterBufferAndPrint [20:13:50]line [20:13:50]line [20:13:50]line [20:13:50]line [20:13:50]line [20:13:50]written 0, free lines is 3204 [20:13:50]MH_Cut [20:13:50]Write to MH i2c: D1 01 00 44 0F 01 25 [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: D1 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: D1 01 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: D1 01 00 44 0F 00 24 [20:13:50]Write to MH i2c: 01 00 00 45 0F 54 [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:51]OFD Sender: No OFD packet to send [20:13:51]*** Cut start [20:13:51]*** Partial cut [20:13:51]*** CUTSNS_PIN = 1 [20:13:51]*** CUTSNS_PIN = 0 [20:13:51]*** Brake cut motor [20:13:52]Read from MH i2c: 01 [20:13:52]MH_I2C_Read... [20:13:52]*** Stop cut motor [20:13:52]*** Cut end [20:13:52]Read from MH i2c: 01 07 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: 01 07 00 45 0F 00 00 00 00 00 FF 0F 69 [20:13:52]process_action close_receipt done [20:13:52]requested_data is exist [20:13:52]produce_requested_data [20:13:52]requested_item fm.sn is exist - process it [20:13:52]wFMCommunicate request_size=4 [20:13:52]MH_SAM_APDU [20:13:52]CAPDU: 80 11 00 00 [20:13:52]Write to MH i2c: E2 08 00 46 0F 80 11 00 00 00 00 00 00 CF [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:52]Read from MH i2c: E2 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 17 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 17 00 46 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1F [20:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:13:52]wFMCommunicate OK [20:13:52]requested_item fd.num is exist - process it [20:13:52]SAM_PROTO_GetFieldsCounters [20:13:52]wFMCommunicate request_size=4 [20:13:52]MH_SAM_APDU [20:13:52]CAPDU: 80 13 00 00 [20:13:52]Write to MH i2c: E2 08 00 47 0F 80 13 00 00 00 00 00 00 D2 [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:52]Read from MH i2c: E2 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 62 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 62 00 47 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 75 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [20:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 75 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:52]wFMCommunicate OK [20:13:52]SAM_PROTO_GetFieldsCounters done [20:13:52]requested_item shift.num is exist - process it [20:13:52]requested_item shift.opened is exist - process it [20:13:52]req_shift_opened [20:13:52]FM_GetShiftState [20:13:52]SAM_PROTO_GetShiftState [20:13:52]wFMCommunicate request_size=4 [20:13:52]MH_SAM_APDU [20:13:52]CAPDU: 80 13 01 00 [20:13:52]Write to MH i2c: E2 08 00 48 0F 80 13 01 00 00 00 00 00 D4 [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:52]Read from MH i2c: E2 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 0E 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: E2 0E 00 48 0F 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 B0 [20:13:52]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [20:13:52]wFMCommunicate OK [20:13:52]SAM_PROTO_GetShiftState done [20:13:52]FM_GetShiftState done [20:13:52]req_shift_opened done [20:13:52]requested_item shift.open_date is exist - process it [20:13:52]req_shift_open_date [20:13:52]req_shift_open_date done [20:13:52]produce_requested_data done [20:13:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76661,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [20:13:52]process_action_free close_receipt [20:13:52]json_value_free [20:13:52]json_value_free done [20:13:52]process_json_proto returns [20:13:52]Send response to host [20:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76661,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [20:13:52]free response buf [20:13:52]execute_script done [20:13:52]execute_script returns [20:13:52]free content buf [20:13:52]Sock 7.Close socket [20:13:52]Sock 7.Thread stoped [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:47]accept exits with 9 [20:14:47]New connection [20:14:47]New thread 3066805604 created [20:14:47]Thread 3066948964 joined [20:14:47]Waiting for new connection... [20:14:47] Sock 9.Parse request [20:14:47]Sock 9.Check first char [20:14:47]Sock 9.First char is OK [20:14:47]request: POST /json_proto HTTP/1.0 [20:14:47]Method: POST [20:14:47]URL: /json_proto [20:14:47]Method is POST - this is cgi request [20:14:47]url: /json_proto [20:14:47]query_string will be loaded in cgi processing [20:14:47]execute_cgi json_proto POST (null) [20:14:47]execute_cgi path=json_proto method=POST [20:14:47]POST find Content-Length [20:14:47]Host: 172.17.39.195:8080 [20:14:47]Content-Length: 932 [20:14:47]Content-Type: application/json [20:14:47] [20:14:47]POST finish read [20:14:47]Found Content-Length = 932 [20:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220788", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:47]execute_script... [20:14: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 : (3)220788", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:47]POST & json_proto [20:14:47]process_json_proto [20:14:47]json parsed OK: [20:14:47]protocol is kg_v1.0 [20:14:47]action value=close_receipt [20:14:47]process_action close_receipt [20:14:47]cmd_close_receipt [20:14:47]MH_GetDate [20:14:47]Write to MH i2c: F0 00 00 49 0F 47 [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: F0 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: F0 09 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: F0 09 00 49 0F 00 BA 8D 74 66 99 81 91 64 80 [20:14:47]GetLastDocTimeStamp 1718914430 [20:14:47]current date 1718914490 [20:14:47]FM_GetShiftState [20:14:47]SAM_PROTO_GetShiftState [20:14:47]wFMCommunicate request_size=4 [20:14:47]MH_SAM_APDU [20:14:47]CAPDU: 80 13 01 00 [20:14:47]Write to MH i2c: E2 08 00 4A 0F 80 13 01 00 00 00 00 00 D6 [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:47]Read from MH i2c: E2 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 0E 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 0E 00 4A 0F 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 B2 [20:14:47]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [20:14:47]wFMCommunicate OK [20:14:47]SAM_PROTO_GetShiftState done [20:14:47]FM_GetShiftState done [20:14:47]opened in 1718843774 [20:14:47]opened+sec_in_day 1718930174 [20:14:47]quantity*price = 15500 [20:14:47]sum+1 = 15501 [20:14:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.87 НДС 12% : 34.51 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 103 20.06.2024 20:14 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76662 ФПД: 263116200728708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T201450&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76662&fm=263116200728708&tin=02508201610067®Number=0000000000095696&sum=32500 0 [20:14:49]StoreToDocumentArchive [20:14:49]shift 393 fd 76662 [20:14:49]save to /storage/0393/doc_00076662 [20:14:49]save last doc name /storage/0393/doc_00076662 to /storage/kkm_last_doc_name [20:14:49]save OK [20:14:49]Clear old archive folders... [20:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=399 [20:14:49]tlvbuf is B6EC0570 [20:14:49]SAM_PROTO_ClearQueue [20:14:49]wFMCommunicate request_size=4 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 09 00 00 [20:14:49]Write to MH i2c: E2 08 00 57 0F 80 09 00 00 00 00 00 00 D8 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [20:14:49]RAPDU: 90 00 [20:14:49]wFMCommunicate OK [20:14:49]SAM_PROTO_ClearQueue done [20:14:49]KKMCreateOFDPacket [20:14:49]OFDProtocolAddRootSTLVToBuf [20:14:49]FM_MakeSignedData [20:14:49]FM_MakeSignedData [20:14:49]SAM_PROTO_SignData [20:14:49]wFMCommunicate request_size=4 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 0D 01 02 [20:14:49]Write to MH i2c: E2 08 00 58 0F 80 0D 01 02 00 00 00 00 E0 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [20:14:49]RAPDU: 90 00 [20:14:49]wFMCommunicate OK [20:14:49]wFMCommunicate request_size=255 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 [20:14:49]Write to MH i2c: E2 02 01 59 0F 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 00 00 BC [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [20:14:49]RAPDU: 90 00 [20:14:49]wFMCommunicate OK [20:14:49]wFMCommunicate request_size=158 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BA 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 76 2B 01 00 35 04 06 00 EF 4D 83 AD D8 84 [20:14:49]Write to MH i2c: E2 A1 00 5A 0F 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BA 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 76 2B 01 00 35 04 06 00 EF 4D 83 AD D8 84 00 00 01 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [20:14:49]RAPDU: 90 00 [20:14:49]wFMCommunicate OK [20:14:49]wFMCommunicate request_size=4 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 0D 03 02 [20:14:49]Write to MH i2c: E2 08 00 5B 0F 80 0D 03 02 00 00 00 00 E5 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 0B 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 0B 00 5B 0F 00 8F 88 38 2E B6 B6 1B 58 90 00 42 [20:14:49]RAPDU: 8F 88 38 2E B6 B6 1B 58 90 00 [20:14:49]wFMCommunicate OK [20:14:49]SAM_PROTO_SignData done [20:14:49]FM_MakeSignedData done [20:14:49]CreateOFDProtocolMessage [20:14:49]wFMCommunicate request_size=4 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 11 00 00 [20:14:49]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 17 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 35 [20:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:14:49]wFMCommunicate OK [20:14:49]CreateOFDProtocolMessage done [20:14:49]OFDSenderStorePacket 76662 [20:14:49]StoreOFDPacket docnum=76662 [20:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A3 01 00 00 F1 07 9B 01 8A 9C 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BA 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 76 2B 01 00 35 04 06 00 EF 4D 83 AD D8 84 8F 88 38 2E B6 B6 1B 58 [20:14:49]CheckFolder [20:14:49]dirname=/storage/ofd_packets [20:14:49]CheckFolder done [20:14:49]ProducePacketName [20:14:49]name=ofd_packets/00076662 [20:14:49]NVStorageSaveData ofd_packets/00076662 [20:14:49]File name is /storage/ofd_packets/00076662 [20:14:49]Write 449 bytes [20:14:49]NVStorageSaveData done [20:14:49]OFDSenderStorePacket done [20:14:49]KKMCreateOFDPacket done [20:14:49]NVStorageSaveData kkm_last_timestamp [20:14:49]File name is /storage/kkm_last_timestamp [20:14:49]Write 4 bytes [20:14:49]NVStorageSaveData done [20:14:49]ExternCall_PrintAddStr [20:14:49]wPrintStart [20:14:49]Write to MH i2c: 01 00 00 5D 0F 6C [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 07 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 FF 0F 81 [20:14:49]RasterBufferAndPrint [20:14:49]line Счет N : (3)220788 [20:14:49]line ИНН: 02508201610067 [20:14:50]line Контрольно-Кассовый Чек [20:14:50]line ПРОДАЖА [20:14:50]line Товар: 48746526 [20:14:50]line Сигареты Mevius Wind Blue [20:14:50]line 1.000 * 155.00 [20:14:50]line = 155.00 [20:14:50]line НДС 12% НСП 1% [20:14:50]line > о реализуемом товаре [20:14:50]line Товар: 4700000480364 [20:14:50]line Напиток энерг Nitro экзотик 0.45 ж/б [20:14:50]line 2.000 * 85.00 [20:14:50]line = 170.00 [20:14:50]line НДС 12% НСП 1% [20:14:50]line > о реализуемом товаре [20:14:50]line ИТОГО: 325.00 [20:14:50]line НСП 1% : 2.87 [20:14:50]line НДС 12% : 34.51 [20:14:50]line Наличными: 325.00 [20:14:50]line Безнал.: 0.00 [20:14:50]line Место: АЗС № 144 "Партнер Нефть" [20:14:50]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [20:14:50]line СНО: Общий режим [20:14:50]line Чек 103 20.06.2024 20:14 [20:14:50]line Смена: 393 ФФД: 1.0 [20:14:50]line ЗНМ: 0300000170 [20:14:50]line РНМ: 0000000000095696 [20:14:50]line Версия ККМ: 001 [20:14:50]line ФМ: 0000000000875009 [20:14:50]line ФД: 76662 [20:14:50]line ФПД: 263116200728708 [20:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T201450&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76662&fm=263116200728708&tin=02508201610067®Number=0000000000095696&sum=32500 [20:14:50]line 0 [20:14:50]OFD Sender: Processing packet 76662 [packets to send 351, broken 350] [20:14:50]ProducePacketName [20:14:50]name=ofd_packets/00076662 [20:14:50]OFD Sender: To server: pG, [20:14:50]CommunicateWithHost lk.salyk.kg:30040 [20:14:50]ConnectInit lk.salyk.kg [20:14:50]written 0, free lines is 4095 [20:14:50]Connected sock=10 [20:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A3 01 00 00 F1 07 9B 01 8A 9C 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BA 8D 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 76 2B 01 00 35 04 06 00 EF 4D 83 AD D8 84 8F 88 38 2E B6 B6 1B 58 [20:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E5 2F 47 00 BE 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 76 2B 01 00 F4 03 04 00 5A 34 74 66 B6 04 01 00 00 CB AD BD 9E 79 41 22 AA [20:14:50]CommunicateWithHost err = 0 [20:14:50]CheckOFDResponse [20:14:50]1017 (14) - 77093643461234 [20:14:50]1041 (16) - 0000000000875009 [20:14:50]1040 (4) - 76662 [20:14:50]1012 (4) - 20.06.2024 13:53 [20:14:50]1206 (1) - 0 [20:14:50]OFD Sender: Remove packet 76662 [20:14:50]ProducePacketName [20:14:50]name=ofd_packets/00076662 [20:14:50]NVStorageDeleteData [20:14:50]Write to MH i2c: 01 00 00 8C 0F 9B [20:14:50]Write i2c OK [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 07 00 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: 01 07 00 8C 0F 00 00 00 00 00 A8 0C 56 [20:14:50]RasterBufferAndPrint [20:14:50]line [20:14:50]line [20:14:50]line [20:14:50]line [20:14:50]line [20:14:50]written 0, free lines is 3246 [20:14:50]MH_Cut [20:14:50]Write to MH i2c: D1 01 00 93 0F 01 74 [20:14:50]Write i2c OK [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: D1 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: D1 01 00 [20:14:50]MH_I2C_Read... [20:14:50]Read from MH i2c: D1 01 00 93 0F 00 73 [20:14:50]Write to MH i2c: 01 00 00 94 0F A3 [20:14:50]Write i2c OK [20:14:50]MH_I2C_Read... [20:14:50]OFD Sender: No OFD packet to send [20:14:51]*** Cut start [20:14:51]*** Partial cut [20:14:51]*** CUTSNS_PIN = 1 [20:14:51]*** CUTSNS_PIN = 0 [20:14:51]*** Brake cut motor [20:14:51]Read from MH i2c: 01 [20:14:51]MH_I2C_Read... [20:14:51]*** Stop cut motor [20:14:51]*** Cut end [20:14:51]Read from MH i2c: 01 07 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 FF 0F B8 [20:14:51]process_action close_receipt done [20:14:51]requested_data is exist [20:14:51]produce_requested_data [20:14:51]requested_item fm.sn is exist - process it [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 11 00 00 [20:14:51]Write to MH i2c: E2 08 00 95 0F 80 11 00 00 00 00 00 00 1E [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 17 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 17 00 95 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6E [20:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:14:52]wFMCommunicate OK [20:14:52]requested_item fd.num is exist - process it [20:14:52]SAM_PROTO_GetFieldsCounters [20:14:52]wFMCommunicate request_size=4 [20:14:52]MH_SAM_APDU [20:14:52]CAPDU: 80 13 00 00 [20:14:52]Write to MH i2c: E2 08 00 96 0F 80 13 00 00 00 00 00 00 21 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 62 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 62 00 96 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 76 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [20:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 76 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:52]wFMCommunicate OK [20:14:52]SAM_PROTO_GetFieldsCounters done [20:14:52]requested_item shift.num is exist - process it [20:14:52]requested_item shift.opened is exist - process it [20:14:52]req_shift_opened [20:14:52]FM_GetShiftState [20:14:52]SAM_PROTO_GetShiftState [20:14:52]wFMCommunicate request_size=4 [20:14:52]MH_SAM_APDU [20:14:52]CAPDU: 80 13 01 00 [20:14:52]Write to MH i2c: E2 08 00 97 0F 80 13 01 00 00 00 00 00 23 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 0E 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 0E 00 97 0F 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 FF [20:14:52]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [20:14:52]wFMCommunicate OK [20:14:52]SAM_PROTO_GetShiftState done [20:14:52]FM_GetShiftState done [20:14:52]req_shift_opened done [20:14:52]requested_item shift.open_date is exist - process it [20:14:52]req_shift_open_date [20:14:52]req_shift_open_date done [20:14:52]produce_requested_data done [20:14:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76662,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [20:14:52]process_action_free close_receipt [20:14:52]json_value_free [20:14:52]json_value_free done [20:14:52]process_json_proto returns [20:14:52]Send response to host [20:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76662,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [20:14:52]free response buf [20:14:52]execute_script done [20:14:52]execute_script returns [20:14:52]free content buf [20:14:52]Sock 9.Close socket [20:14:52]Sock 9.Thread stoped [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:33]accept exits with 7 [20:23:33]New connection [20:23:33]New thread 3066948964 created [20:23:33]Thread 3066805604 joined [20:23:33]Waiting for new connection... [20:23:33] Sock 7.Parse request [20:23:33]Sock 7.Check first char [20:23:33]Sock 7.First char is OK [20:23:33]request: POST /json_proto HTTP/1.0 [20:23:33]Method: POST [20:23:33]URL: /json_proto [20:23:33]Method is POST - this is cgi request [20:23:33]url: /json_proto [20:23:33]query_string will be loaded in cgi processing [20:23:33]execute_cgi json_proto POST (null) [20:23:33]execute_cgi path=json_proto method=POST [20:23:33]POST find Content-Length [20:23:33]Host: 172.17.39.195:8080 [20:23:33]Content-Length: 614 [20:23:33]Content-Type: application/json [20:23:33] [20:23:33]POST finish read [20:23:33]Found Content-Length = 614 [20:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220789", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:33]execute_script... [20:23: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 : (3)220789", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:33]POST & json_proto [20:23:33]process_json_proto [20:23:33]json parsed OK: [20:23:33]protocol is kg_v1.0 [20:23:33]action value=close_receipt [20:23:33]process_action close_receipt [20:23:33]cmd_close_receipt [20:23:33]MH_GetDate [20:23:33]Write to MH i2c: F0 00 00 98 0F 96 [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: F0 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: F0 09 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: F0 09 00 98 0F 00 C8 8F 74 66 99 81 91 64 DF [20:23:33]GetLastDocTimeStamp 1718914490 [20:23:33]current date 1718915016 [20:23:33]FM_GetShiftState [20:23:33]SAM_PROTO_GetShiftState [20:23:33]wFMCommunicate request_size=4 [20:23:33]MH_SAM_APDU [20:23:33]CAPDU: 80 13 01 00 [20:23:33]Write to MH i2c: E2 08 00 99 0F 80 13 01 00 00 00 00 00 25 [20:23:33]Write i2c OK [20:23:33]MH_I2C_Read... [20:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:33]Read from MH i2c: E2 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 0E 00 [20:23:33]MH_I2C_Read... [20:23:33]Read from MH i2c: E2 0E 00 99 0F 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 01 [20:23:33]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [20:23:33]wFMCommunicate OK [20:23:33]SAM_PROTO_GetShiftState done [20:23:33]FM_GetShiftState done [20:23:33]opened in 1718843774 [20:23:33]opened+sec_in_day 1718930174 [20:23:33]quantity*price = 11000 [20:23:33]sum+1 = 11001 [20:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 104 20.06.2024 20:23 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76663 ФПД: 158222436723239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T202336&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76663&fm=158222436723239&tin=02508201610067®Number=0000000000095696&sum=11000 0 [20:23:35]StoreToDocumentArchive [20:23:35]shift 393 fd 76663 [20:23:35]save to /storage/0393/doc_00076663 [20:23:35]save last doc name /storage/0393/doc_00076663 to /storage/kkm_last_doc_name [20:23:35]save OK [20:23:35]Clear old archive folders... [20:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=266 [20:23:35]tlvbuf is 00EC07C0 [20:23:35]SAM_PROTO_ClearQueue [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 09 00 00 [20:23:35]Write to MH i2c: E2 08 00 A6 0F 80 09 00 00 00 00 00 00 27 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]SAM_PROTO_ClearQueue done [20:23:35]KKMCreateOFDPacket [20:23:35]OFDProtocolAddRootSTLVToBuf [20:23:35]FM_MakeSignedData [20:23:35]FM_MakeSignedData [20:23:35]SAM_PROTO_SignData [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 01 02 [20:23:35]Write to MH i2c: E2 08 00 A7 0F 80 0D 01 02 00 00 00 00 2F [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]wFMCommunicate request_size=255 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C8 8F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [20:23:35]Write to MH i2c: E2 02 01 A8 0F 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C8 8F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 CF [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]wFMCommunicate request_size=25 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 02 02 14 30 39 10 04 04 00 77 2B 01 00 35 04 06 00 8F E7 08 22 EA 27 [20:23:35]Write to MH i2c: E2 1C 00 A9 0F 80 0D 02 02 14 00 30 39 10 04 04 00 77 2B 01 00 35 04 06 00 8F E7 08 22 EA 27 00 00 6E [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 03 02 [20:23:35]Write to MH i2c: E2 08 00 AA 0F 80 0D 03 02 00 00 00 00 34 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 0B 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 0B 00 AA 0F 00 EA C1 12 7C F4 B6 D4 17 90 00 03 [20:23:35]RAPDU: EA C1 12 7C F4 B6 D4 17 90 00 [20:23:35]wFMCommunicate OK [20:23:35]SAM_PROTO_SignData done [20:23:35]FM_MakeSignedData done [20:23:35]CreateOFDProtocolMessage [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 11 00 00 [20:23:35]Write to MH i2c: E2 08 00 AB 0F 80 11 00 00 00 00 00 00 34 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 17 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 17 00 AB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 84 [20:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:23:35]wFMCommunicate OK [20:23:35]CreateOFDProtocolMessage done [20:23:35]OFDSenderStorePacket 76663 [20:23:35]StoreOFDPacket docnum=76663 [20:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 BE 8D 16 01 09 CE 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C8 8F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 77 2B 01 00 35 04 06 00 8F E7 08 22 EA 27 EA C1 12 7C F4 B6 D4 17 [20:23:35]CheckFolder [20:23:35]dirname=/storage/ofd_packets [20:23:35]CheckFolder done [20:23:35]ProducePacketName [20:23:35]name=ofd_packets/00076663 [20:23:35]NVStorageSaveData ofd_packets/00076663 [20:23:35]File name is /storage/ofd_packets/00076663 [20:23:35]Write 316 bytes [20:23:35]NVStorageSaveData done [20:23:35]OFDSenderStorePacket done [20:23:35]KKMCreateOFDPacket done [20:23:35]NVStorageSaveData kkm_last_timestamp [20:23:35]File name is /storage/kkm_last_timestamp [20:23:35]Write 4 bytes [20:23:35]NVStorageSaveData done [20:23:35]ExternCall_PrintAddStr [20:23:35]wPrintStart [20:23:35]Write to MH i2c: 01 00 00 AC 0F BB [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [20:23:35]RasterBufferAndPrint [20:23:35]line Счет N : (3)220789 [20:23:35]line ИНН: 02508201610067 [20:23:35]line Контрольно-Кассовый Чек [20:23:35]line ПРОДАЖА [20:23:35]line Товар: 4870001570071 [20:23:35]line Напиток Pepsi 1л [20:23:35]line 1.000 * 110.00 [20:23:35]line = 110.00 [20:23:35]line НДС 12% НСП 1% [20:23:35]line > о реализуемом товаре [20:23:35]line ИТОГО: 110.00 [20:23:35]line НСП 1% : 0.97 [20:23:35]line НДС 12% : 11.68 [20:23:35]line Наличными: 110.00 [20:23:35]line Безнал.: 0.00 [20:23:35]line Место: АЗС № 144 "Партнер Нефть" [20:23:35]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [20:23:35]line СНО: Общий режим [20:23:35]line Чек 104 20.06.2024 20:23 [20:23:35]line Смена: 393 ФФД: 1.0 [20:23:35]line ЗНМ: 0300000170 [20:23:35]line РНМ: 0000000000095696 [20:23:35]line Версия ККМ: 001 [20:23:35]line ФМ: 0000000000875009 [20:23:35]line ФД: 76663 [20:23:35]line ФПД: 158222436723239 [20:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T202336&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76663&fm=158222436723239&tin=02508201610067®Number=0000000000095696&sum=11000 [20:23:35]line 0 [20:23:35]written 0, free lines is 4095 [20:23:35]OFD Sender: Processing packet 76663 [packets to send 351, broken 350] [20:23:35]ProducePacketName [20:23:35]name=ofd_packets/00076663 [20:23:35]OFD Sender: To server: pG, [20:23:35]CommunicateWithHost lk.salyk.kg:30040 [20:23:35]ConnectInit lk.salyk.kg [20:23:35]Connected sock=10 [20:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 BE 8D 16 01 09 CE 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C8 8F 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 77 2B 01 00 35 04 06 00 8F E7 08 22 EA 27 EA C1 12 7C F4 B6 D4 17 [20:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 80 E6 47 00 58 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 77 2B 01 00 F4 03 04 00 68 36 74 66 B6 04 01 00 00 87 76 EC 7F 73 E3 65 F0 [20:23:36]CommunicateWithHost err = 0 [20:23:36]CheckOFDResponse [20:23:36]1017 (14) - 77093643461234 [20:23:36]1041 (16) - 0000000000875009 [20:23:36]1040 (4) - 76663 [20:23:36]1012 (4) - 20.06.2024 14:02 [20:23:36]1206 (1) - 0 [20:23:36]OFD Sender: Remove packet 76663 [20:23:36]ProducePacketName [20:23:36]name=ofd_packets/00076663 [20:23:36]NVStorageDeleteData [20:23:36]Write to MH i2c: 01 00 00 D4 0F E3 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 D4 0F 00 00 00 00 00 F8 0C EE [20:23:36]RasterBufferAndPrint [20:23:36]line [20:23:36]line [20:23:36]line [20:23:36]line [20:23:36]line [20:23:36]written 0, free lines is 3326 [20:23:36]MH_Cut [20:23:36]Write to MH i2c: D1 01 00 DB 0F 01 BC [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: D1 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: D1 01 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: D1 01 00 DB 0F 00 BB [20:23:36]Write to MH i2c: 01 00 00 DC 0F EB [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]OFD Sender: No OFD packet to send [20:23:36]*** Cut start [20:23:36]*** Partial cut [20:23:36]*** CUTSNS_PIN = 1 [20:23:36]*** CUTSNS_PIN = 0 [20:23:37]*** Brake cut motor [20:23:37]Read from MH i2c: 01 [20:23:37]MH_I2C_Read... [20:23:37]*** Stop cut motor [20:23:37]*** Cut end [20:23:37]Read from MH i2c: 01 07 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: 01 07 00 DC 0F 00 00 00 00 00 FF 0F 00 [20:23:37]process_action close_receipt done [20:23:37]requested_data is exist [20:23:37]produce_requested_data [20:23:37]requested_item fm.sn is exist - process it [20:23:37]wFMCommunicate request_size=4 [20:23:37]MH_SAM_APDU [20:23:37]CAPDU: 80 11 00 00 [20:23:37]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:37]Read from MH i2c: E2 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 17 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B6 [20:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:23:37]wFMCommunicate OK [20:23:37]requested_item fd.num is exist - process it [20:23:37]SAM_PROTO_GetFieldsCounters [20:23:37]wFMCommunicate request_size=4 [20:23:37]MH_SAM_APDU [20:23:37]CAPDU: 80 13 00 00 [20:23:37]Write to MH i2c: E2 08 00 DE 0F 80 13 00 00 00 00 00 00 69 [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:37]Read from MH i2c: E2 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 62 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 62 00 DE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 77 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [20:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 77 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:37]wFMCommunicate OK [20:23:37]SAM_PROTO_GetFieldsCounters done [20:23:37]requested_item shift.num is exist - process it [20:23:37]requested_item shift.opened is exist - process it [20:23:37]req_shift_opened [20:23:37]FM_GetShiftState [20:23:37]SAM_PROTO_GetShiftState [20:23:37]wFMCommunicate request_size=4 [20:23:37]MH_SAM_APDU [20:23:37]CAPDU: 80 13 01 00 [20:23:37]Write to MH i2c: E2 08 00 DF 0F 80 13 01 00 00 00 00 00 6B [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:37]Read from MH i2c: E2 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 0E 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 0E 00 DF 0F 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 47 [20:23:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [20:23:37]wFMCommunicate OK [20:23:37]SAM_PROTO_GetShiftState done [20:23:37]FM_GetShiftState done [20:23:37]req_shift_opened done [20:23:37]requested_item shift.open_date is exist - process it [20:23:37]req_shift_open_date [20:23:37]req_shift_open_date done [20:23:37]produce_requested_data done [20:23:37]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76663,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [20:23:37]process_action_free close_receipt [20:23:37]json_value_free [20:23:37]json_value_free done [20:23:37]process_json_proto returns [20:23:37]Send response to host [20:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76663,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [20:23:37]free response buf [20:23:37]execute_script done [20:23:37]execute_script returns [20:23:37]free content buf [20:23:37]Sock 7.Close socket [20:23:37]Sock 7.Thread stoped [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:45]accept exits with 9 [20:27:45]New connection [20:27:45]New thread 3066805604 created [20:27:45]Thread 3066948964 joined [20:27:45]Waiting for new connection... [20:27:45] Sock 9.Parse request [20:27:45]Sock 9.Check first char [20:27:45]Sock 9.First char is OK [20:27:45]request: POST /json_proto HTTP/1.0 [20:27:45]Method: POST [20:27:45]URL: /json_proto [20:27:45]Method is POST - this is cgi request [20:27:45]url: /json_proto [20:27:45]query_string will be loaded in cgi processing [20:27:45]execute_cgi json_proto POST (null) [20:27:45]execute_cgi path=json_proto method=POST [20:27:45]POST find Content-Length [20:27:45]Host: 172.17.39.195:8080 [20:27:45]Content-Length: 1162 [20:27:45]Content-Type: application/json [20:27:45] [20:27:45]POST finish read [20:27:45]Found Content-Length = 1162 [20:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1693399\u000A20.06.2024 19:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 105.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7654.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024493\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:45]execute_script... [20:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. \u000A\u0421\u0447\u0435\u0442 N : (1)1693399\u000A20.06.2024 19:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 105.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7654.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024493\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:45]POST & json_proto [20:27:45]process_json_proto [20:27:45]json parsed OK: [20:27:45]protocol is kg_v1.0 [20:27:45]action value=print_text [20:27:45]process_action print_text [20:27:45]cmd_print_text [20:27:45]ExternCall_PrintAddStr [20:27:45]wPrintStart [20:27:45]Write to MH i2c: 01 00 00 E0 0F EF [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 E0 0F 00 00 00 00 00 FF 0F 04 [20:27:45]RasterBufferAndPrint [20:27:45]line *****ТОВАРНЫЙ ЧЕК***** [20:27:45]line АЗС 144 [20:27:45]line Партнер нефть [20:27:45]line 02508201610067 [20:27:45]line Кассир : Эсенканов Э. [20:27:45]line Счет N : (1)1693399 [20:27:45]line 20.06.2024 19:58 [20:27:45]line ПРОДАЖА [20:27:45]line ТРК (МРК, ГНК): 21 [20:27:45]line Вид ГСМ : 2710194210 [20:27:45]line ДТ-К-2 [20:27:45]line 105.000 x 72.90 [20:27:45]line ИТОГ: 7654.50 [20:27:45]line Тип оплаты: Талоны: ТК ГПНА Online [20:27:45]line 30024493 [20:27:45]line ______________________ [20:27:45]line (подпись) [20:27:45]written 0, free lines is 4095 [20:27:45]Write to MH i2c: 01 00 00 F4 0F 03 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 0F 0E 27 [20:27:45]RasterBufferAndPrint [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]written 0, free lines is 3601 [20:27:45]MH_Cut [20:27:45]Write to MH i2c: D1 01 00 FB 0F 01 DC [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 01 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 01 00 FB 0F 00 DB [20:27:45]Write to MH i2c: 01 00 00 FC 0F 0B [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** Cut start [20:27:45]*** Partial cut [20:27:45]*** CUTSNS_PIN = 1 [20:27:46]*** CUTSNS_PIN = 0 [20:27:46]*** Brake cut motor [20:27:46]Read from MH i2c: 01 [20:27:46]MH_I2C_Read... [20:27:46]*** Stop cut motor [20:27:46]*** Cut end [20:27:46]Read from MH i2c: 01 07 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 FF 0F 20 [20:27:46]process_action print_text done [20:27:46]requested_data is exist [20:27:46]produce_requested_data [20:27:46]requested_item fm.sn is exist - process it [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 11 00 00 [20:27:46]Write to MH i2c: E2 08 00 FD 0F 80 11 00 00 00 00 00 00 86 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 17 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 17 00 FD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D6 [20:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:27:46]wFMCommunicate OK [20:27:46]requested_item fd.num is exist - process it [20:27:46]SAM_PROTO_GetFieldsCounters [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 13 00 00 [20:27:46]Write to MH i2c: E2 08 00 FE 0F 80 13 00 00 00 00 00 00 89 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 62 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 62 00 FE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 77 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [20:27:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 77 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:46]wFMCommunicate OK [20:27:46]SAM_PROTO_GetFieldsCounters done [20:27:46]requested_item shift.num is exist - process it [20:27:46]requested_item shift.opened is exist - process it [20:27:46]req_shift_opened [20:27:46]FM_GetShiftState [20:27:46]SAM_PROTO_GetShiftState [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 13 01 00 [20:27:46]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 0E 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 67 [20:27:46]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [20:27:46]wFMCommunicate OK [20:27:46]SAM_PROTO_GetShiftState done [20:27:46]FM_GetShiftState done [20:27:46]req_shift_opened done [20:27:46]requested_item shift.open_date is exist - process it [20:27:46]req_shift_open_date [20:27:46]req_shift_open_date done [20:27:46]produce_requested_data done [20:27:46]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76663,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [20:27:46]process_action_free print_text [20:27:46]json_value_free [20:27:46]json_value_free done [20:27:46]process_json_proto returns [20:27:46]Send response to host [20:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76663,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [20:27:46]free response buf [20:27:46]execute_script done [20:27:46]execute_script returns [20:27:46]free content buf [20:27:46]Sock 9.Close socket [20:27:46]Sock 9.Thread stoped [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]accept exits with 7 [21:32:54]New connection [21:32:54]New thread 3066948964 created [21:32:54]Thread 3066805604 joined [21:32:54]Waiting for new connection... [21:32:54] Sock 7.Parse request [21:32:54]Sock 7.Check first char [21:32:54]Sock 7.First char is OK [21:32:54]request: POST /json_proto HTTP/1.0 [21:32:54]Method: POST [21:32:54]URL: /json_proto [21:32:54]Method is POST - this is cgi request [21:32:54]url: /json_proto [21:32:54]query_string will be loaded in cgi processing [21:32:54]execute_cgi json_proto POST (null) [21:32:54]execute_cgi path=json_proto method=POST [21:32:54]POST find Content-Length [21:32:54]Host: 172.17.39.195:8080 [21:32:54]Content-Length: 626 [21:32:54]Content-Type: application/json [21:32:54] [21:32:54]POST finish read [21:32:54]Found Content-Length = 626 [21:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220790", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:54]execute_script... [21:32:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220790", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:54]POST & json_proto [21:32:54]process_json_proto [21:32:54]json parsed OK: [21:32:54]protocol is kg_v1.0 [21:32:54]action value=close_receipt [21:32:54]process_action close_receipt [21:32:54]cmd_close_receipt [21:32:54]MH_GetDate [21:32:54]Write to MH i2c: F0 00 00 00 10 FF [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: F0 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: F0 09 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: F0 09 00 00 10 00 09 A0 74 66 99 81 91 64 9A [21:32:54]GetLastDocTimeStamp 1718915016 [21:32:54]current date 1718919177 [21:32:54]FM_GetShiftState [21:32:54]SAM_PROTO_GetShiftState [21:32:54]wFMCommunicate request_size=4 [21:32:54]MH_SAM_APDU [21:32:54]CAPDU: 80 13 01 00 [21:32:54]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [21:32:54]Write i2c OK [21:32:54]MH_I2C_Read... [21:32:54]OFD Sender: No OFD packet to send [21:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:54]Read from MH i2c: E2 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 0E 00 [21:32:54]MH_I2C_Read... [21:32:54]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 6A [21:32:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [21:32:54]wFMCommunicate OK [21:32:54]SAM_PROTO_GetShiftState done [21:32:54]FM_GetShiftState done [21:32:54]opened in 1718843774 [21:32:54]opened+sec_in_day 1718930174 [21:32:54]quantity*price = 13500 [21:32:54]sum+1 = 13501 [21:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 105 20.06.2024 21:32 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76664 ФПД: 232974513183298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T213257&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76664&fm=232974513183298&tin=02508201610067®Number=0000000000095696&sum=13500 0 [21:32:55]StoreToDocumentArchive [21:32:55]shift 393 fd 76664 [21:32:55]save to /storage/0393/doc_00076664 [21:32:55]save last doc name /storage/0393/doc_00076664 to /storage/kkm_last_doc_name [21:32:55]save OK [21:32:55]Clear old archive folders... [21:32:55]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:32:55]tlvbuf is 00EC1AC0 [21:32:55]SAM_PROTO_ClearQueue [21:32:55]wFMCommunicate request_size=4 [21:32:55]MH_SAM_APDU [21:32:55]CAPDU: 80 09 00 00 [21:32:55]Write to MH i2c: E2 08 00 0E 10 80 09 00 00 00 00 00 00 90 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:55]Read from MH i2c: E2 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 03 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [21:32:55]RAPDU: 90 00 [21:32:55]wFMCommunicate OK [21:32:55]SAM_PROTO_ClearQueue done [21:32:55]KKMCreateOFDPacket [21:32:55]OFDProtocolAddRootSTLVToBuf [21:32:55]FM_MakeSignedData [21:32:55]FM_MakeSignedData [21:32:55]SAM_PROTO_SignData [21:32:55]wFMCommunicate request_size=4 [21:32:55]MH_SAM_APDU [21:32:55]CAPDU: 80 0D 01 02 [21:32:55]Write to MH i2c: E2 08 00 0F 10 80 0D 01 02 00 00 00 00 98 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:55]Read from MH i2c: E2 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 03 00 [21:32:55]MH_I2C_Read... [21:32:55]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [21:32:55]RAPDU: 90 00 [21:32:55]wFMCommunicate OK [21:32:55]wFMCommunicate request_size=255 [21:32:55]MH_SAM_APDU [21:32:55]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 A0 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [21:32:55]Write to MH i2c: E2 02 01 10 10 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 A0 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 E2 [21:32:55]Write i2c OK [21:32:55]MH_I2C_Read... [21:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:56]Read from MH i2c: E2 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 03 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 03 00 10 10 00 90 00 94 [21:32:56]RAPDU: 90 00 [21:32:56]wFMCommunicate OK [21:32:56]wFMCommunicate request_size=37 [21:32:56]MH_SAM_APDU [21:32:56]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 78 2B 01 00 35 04 06 00 D3 E3 9B 19 9A 42 [21:32:56]Write to MH i2c: E2 28 00 11 10 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 78 2B 01 00 35 04 06 00 D3 E3 9B 19 9A 42 00 00 D9 [21:32:56]Write i2c OK [21:32:56]MH_I2C_Read... [21:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:56]Read from MH i2c: E2 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 03 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 03 00 11 10 00 90 00 95 [21:32:56]RAPDU: 90 00 [21:32:56]wFMCommunicate OK [21:32:56]wFMCommunicate request_size=4 [21:32:56]MH_SAM_APDU [21:32:56]CAPDU: 80 0D 03 02 [21:32:56]Write to MH i2c: E2 08 00 12 10 80 0D 03 02 00 00 00 00 9D [21:32:56]Write i2c OK [21:32:56]MH_I2C_Read... [21:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:56]Read from MH i2c: E2 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 0B 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 0B 00 12 10 00 A0 05 26 68 F6 D1 EF B5 90 00 3C [21:32:56]RAPDU: A0 05 26 68 F6 D1 EF B5 90 00 [21:32:56]wFMCommunicate OK [21:32:56]SAM_PROTO_SignData done [21:32:56]FM_MakeSignedData done [21:32:56]CreateOFDProtocolMessage [21:32:56]wFMCommunicate request_size=4 [21:32:56]MH_SAM_APDU [21:32:56]CAPDU: 80 11 00 00 [21:32:56]Write to MH i2c: E2 08 00 13 10 80 11 00 00 00 00 00 00 9D [21:32:56]Write i2c OK [21:32:56]MH_I2C_Read... [21:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:56]Read from MH i2c: E2 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 17 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 17 00 13 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 ED [21:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:32:56]wFMCommunicate OK [21:32:56]CreateOFDProtocolMessage done [21:32:56]OFDSenderStorePacket 76664 [21:32:56]StoreOFDPacket docnum=76664 [21:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 1F 4E 22 01 4E 00 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 A0 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 78 2B 01 00 35 04 06 00 D3 E3 9B 19 9A 42 A0 05 26 68 F6 D1 EF B5 [21:32:56]CheckFolder [21:32:56]dirname=/storage/ofd_packets [21:32:56]CheckFolder done [21:32:56]ProducePacketName [21:32:56]name=ofd_packets/00076664 [21:32:56]NVStorageSaveData ofd_packets/00076664 [21:32:56]File name is /storage/ofd_packets/00076664 [21:32:56]Write 328 bytes [21:32:56]NVStorageSaveData done [21:32:56]OFDSenderStorePacket done [21:32:56]KKMCreateOFDPacket done [21:32:56]NVStorageSaveData kkm_last_timestamp [21:32:56]File name is /storage/kkm_last_timestamp [21:32:56]Write 4 bytes [21:32:56]NVStorageSaveData done [21:32:56]ExternCall_PrintAddStr [21:32:56]wPrintStart [21:32:56]Write to MH i2c: 01 00 00 14 10 24 [21:32:56]Write i2c OK [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: 01 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: 01 07 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 FF 0F 39 [21:32:56]RasterBufferAndPrint [21:32:56]line Счет N : (3)220790 [21:32:56]line ИНН: 02508201610067 [21:32:56]line Контрольно-Кассовый Чек [21:32:56]line ПРОДАЖА [21:32:56]line Товар: 48741224 [21:32:56]line Сигареты Winston Super Slims Blue [21:32:56]line 1.000 * 135.00 [21:32:56]line = 135.00 [21:32:56]line НДС 12% НСП 1% [21:32:56]line > о реализуемом товаре [21:32:56]line ИТОГО: 135.00 [21:32:56]line НСП 1% : 1.19 [21:32:56]line НДС 12% : 14.34 [21:32:56]line Наличными: 135.00 [21:32:56]line Безнал.: 0.00 [21:32:56]line Место: АЗС № 144 "Партнер Нефть" [21:32:56]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [21:32:56]line СНО: Общий режим [21:32:56]line Чек 105 20.06.2024 21:32 [21:32:56]line Смена: 393 ФФД: 1.0 [21:32:56]line ЗНМ: 0300000170 [21:32:56]line РНМ: 0000000000095696 [21:32:56]line Версия ККМ: 001 [21:32:56]line ФМ: 0000000000875009 [21:32:56]line ФД: 76664 [21:32:56]line ФПД: 232974513183298 [21:32:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T213257&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76664&fm=232974513183298&tin=02508201610067®Number=0000000000095696&sum=13500 [21:32:56]line 0 [21:32:56]OFD Sender: Processing packet 76664 [packets to send 351, broken 350] [21:32:56]ProducePacketName [21:32:56]name=ofd_packets/00076664 [21:32:56]OFD Sender: To server: pG, [21:32:56]CommunicateWithHost lk.salyk.kg:30040 [21:32:56]ConnectInit lk.salyk.kg [21:32:56]written 0, free lines is 4095 [21:32:56]Connected sock=11 [21:32:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 1F 4E 22 01 4E 00 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 A0 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 78 2B 01 00 35 04 06 00 D3 E3 9B 19 9A 42 A0 05 26 68 F6 D1 EF B5 [21:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 9B 07 47 00 F8 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 78 2B 01 00 F4 03 04 00 A9 46 74 66 B6 04 01 00 00 C7 12 DD 19 1B D6 B2 8D [21:32:57]CommunicateWithHost err = 0 [21:32:57]CheckOFDResponse [21:32:57]1017 (14) - 77093643461234 [21:32:57]1041 (16) - 0000000000875009 [21:32:57]1040 (4) - 76664 [21:32:57]1012 (4) - 20.06.2024 15:11 [21:32:57]1206 (1) - 0 [21:32:57]OFD Sender: Remove packet 76664 [21:32:57]ProducePacketName [21:32:57]name=ofd_packets/00076664 [21:32:57]NVStorageDeleteData [21:32:57]Write to MH i2c: 01 00 00 3D 10 4D [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: 01 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: 01 07 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: 01 07 00 3D 10 00 00 00 00 00 DB 0C 3B [21:32:57]RasterBufferAndPrint [21:32:57]line [21:32:57]line [21:32:57]line [21:32:57]line [21:32:57]line [21:32:57]written 0, free lines is 3301 [21:32:57]MH_Cut [21:32:57]Write to MH i2c: D1 01 00 44 10 01 26 [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: D1 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: D1 01 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: D1 01 00 44 10 00 25 [21:32:57]Write to MH i2c: 01 00 00 45 10 55 [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]OFD Sender: No OFD packet to send [21:32:57]*** Cut start [21:32:57]*** Partial cut [21:32:57]*** CUTSNS_PIN = 1 [21:32:57]*** CUTSNS_PIN = 0 [21:32:58]*** Brake cut motor [21:32:58]Read from MH i2c: 01 [21:32:58]MH_I2C_Read... [21:32:58]*** Stop cut motor [21:32:58]*** Cut end [21:32:58]Read from MH i2c: 01 07 00 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: 01 07 00 45 10 00 00 00 00 00 FF 0F 6A [21:32:58]process_action close_receipt done [21:32:58]requested_data is exist [21:32:58]produce_requested_data [21:32:58]requested_item fm.sn is exist - process it [21:32:58]wFMCommunicate request_size=4 [21:32:58]MH_SAM_APDU [21:32:58]CAPDU: 80 11 00 00 [21:32:58]Write to MH i2c: E2 08 00 46 10 80 11 00 00 00 00 00 00 D0 [21:32:58]Write i2c OK [21:32:58]MH_I2C_Read... [21:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:58]Read from MH i2c: E2 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: E2 17 00 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: E2 17 00 46 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 20 [21:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:32:58]wFMCommunicate OK [21:32:58]requested_item fd.num is exist - process it [21:32:58]SAM_PROTO_GetFieldsCounters [21:32:58]wFMCommunicate request_size=4 [21:32:58]MH_SAM_APDU [21:32:58]CAPDU: 80 13 00 00 [21:32:58]Write to MH i2c: E2 08 00 47 10 80 13 00 00 00 00 00 00 D3 [21:32:58]Write i2c OK [21:32:58]MH_I2C_Read... [21:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:58]Read from MH i2c: E2 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: E2 62 00 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: E2 62 00 47 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 78 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:32:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 78 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:58]wFMCommunicate OK [21:32:58]SAM_PROTO_GetFieldsCounters done [21:32:58]requested_item shift.num is exist - process it [21:32:58]requested_item shift.opened is exist - process it [21:32:58]req_shift_opened [21:32:58]FM_GetShiftState [21:32:58]SAM_PROTO_GetShiftState [21:32:58]wFMCommunicate request_size=4 [21:32:58]MH_SAM_APDU [21:32:58]CAPDU: 80 13 01 00 [21:32:58]Write to MH i2c: E2 08 00 48 10 80 13 01 00 00 00 00 00 D5 [21:32:58]Write i2c OK [21:32:58]MH_I2C_Read... [21:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:58]Read from MH i2c: E2 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: E2 0E 00 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: E2 0E 00 48 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 B1 [21:32:58]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [21:32:58]wFMCommunicate OK [21:32:58]SAM_PROTO_GetShiftState done [21:32:58]FM_GetShiftState done [21:32:58]req_shift_opened done [21:32:58]requested_item shift.open_date is exist - process it [21:32:58]req_shift_open_date [21:32:58]req_shift_open_date done [21:32:58]produce_requested_data done [21:32:58]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76664,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [21:32:58]process_action_free close_receipt [21:32:58]json_value_free [21:32:58]json_value_free done [21:32:58]process_json_proto returns [21:32:58]Send response to host [21:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76664,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [21:32:58]free response buf [21:32:58]execute_script done [21:32:58]execute_script returns [21:32:58]free content buf [21:32:58]Sock 7.Close socket [21:32:58]Sock 7.Thread stoped [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:40:59]accept exits with 10 [21:40:59]New connection [21:40:59]New thread 3066805604 created [21:40:59]Thread 3066948964 joined [21:40:59]Waiting for new connection... [21:40:59] Sock 10.Parse request [21:40:59]Sock 10.Check first char [21:40:59]Sock 10.First char is OK [21:40:59]request: POST /json_proto HTTP/1.0 [21:40:59]Method: POST [21:40:59]URL: /json_proto [21:40:59]Method is POST - this is cgi request [21:40:59]url: /json_proto [21:40:59]query_string will be loaded in cgi processing [21:40:59]execute_cgi json_proto POST (null) [21:40:59]execute_cgi path=json_proto method=POST [21:40:59]POST find Content-Length [21:40:59]Host: 172.17.39.195:8080 [21:40:59]Content-Length: 621 [21:40:59]Content-Type: application/json [21:40:59] [21:40:59]POST finish read [21:40:59]Found Content-Length = 621 [21:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220791", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:59]execute_script... [21:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220791", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:59]POST & json_proto [21:40:59]process_json_proto [21:40:59]json parsed OK: [21:40:59]protocol is kg_v1.0 [21:40:59]action value=close_receipt [21:40:59]process_action close_receipt [21:40:59]cmd_close_receipt [21:40:59]MH_GetDate [21:40:59]Write to MH i2c: F0 00 00 49 10 48 [21:40:59]Write i2c OK [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: F0 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: F0 09 00 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: F0 09 00 49 10 00 EE A1 74 66 99 81 91 64 C9 [21:40:59]GetLastDocTimeStamp 1718919177 [21:40:59]current date 1718919662 [21:40:59]FM_GetShiftState [21:40:59]SAM_PROTO_GetShiftState [21:40:59]wFMCommunicate request_size=4 [21:40:59]MH_SAM_APDU [21:40:59]CAPDU: 80 13 01 00 [21:40:59]Write to MH i2c: E2 08 00 4A 10 80 13 01 00 00 00 00 00 D7 [21:40:59]Write i2c OK [21:40:59]MH_I2C_Read... [21:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:59]Read from MH i2c: E2 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: E2 0E 00 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: E2 0E 00 4A 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 B3 [21:40:59]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [21:40:59]wFMCommunicate OK [21:40:59]SAM_PROTO_GetShiftState done [21:40:59]FM_GetShiftState done [21:40:59]opened in 1718843774 [21:40:59]opened+sec_in_day 1718930174 [21:40:59]quantity*price = 39000 [21:40:59]sum+1 = 39001 [21:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 106 20.06.2024 21:41 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76665 ФПД: 41678641046945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T214102&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76665&fm=41678641046945&tin=02508201610067®Number=0000000000095696&sum=39000 0 [21:41:00]StoreToDocumentArchive [21:41:00]shift 393 fd 76665 [21:41:00]save to /storage/0393/doc_00076665 [21:41:00]save last doc name /storage/0393/doc_00076665 to /storage/kkm_last_doc_name [21:41:00]save OK [21:41:00]Clear old archive folders... [21:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:41:00]tlvbuf is 00EA9F10 [21:41:00]SAM_PROTO_ClearQueue [21:41:00]wFMCommunicate request_size=4 [21:41:00]MH_SAM_APDU [21:41:00]CAPDU: 80 09 00 00 [21:41:00]Write to MH i2c: E2 08 00 57 10 80 09 00 00 00 00 00 00 D9 [21:41:00]Write i2c OK [21:41:00]MH_I2C_Read... [21:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:00]Read from MH i2c: E2 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 03 00 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [21:41:00]RAPDU: 90 00 [21:41:00]wFMCommunicate OK [21:41:00]SAM_PROTO_ClearQueue done [21:41:00]KKMCreateOFDPacket [21:41:00]OFDProtocolAddRootSTLVToBuf [21:41:00]FM_MakeSignedData [21:41:00]FM_MakeSignedData [21:41:00]SAM_PROTO_SignData [21:41:00]wFMCommunicate request_size=4 [21:41:00]MH_SAM_APDU [21:41:00]CAPDU: 80 0D 01 02 [21:41:00]Write to MH i2c: E2 08 00 58 10 80 0D 01 02 00 00 00 00 E1 [21:41:00]Write i2c OK [21:41:00]MH_I2C_Read... [21:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:00]Read from MH i2c: E2 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 03 00 [21:41:00]MH_I2C_Read... [21:41:00]Read from MH i2c: E2 03 00 58 10 00 90 00 DC [21:41:00]RAPDU: 90 00 [21:41:00]wFMCommunicate OK [21:41:00]wFMCommunicate request_size=255 [21:41:00]MH_SAM_APDU [21:41:00]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE A1 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [21:41:00]Write to MH i2c: E2 02 01 59 10 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE A1 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 B8 [21:41:00]Write i2c OK [21:41:00]MH_I2C_Read... [21:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:01]Read from MH i2c: E2 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 03 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 03 00 59 10 00 90 00 DD [21:41:01]RAPDU: 90 00 [21:41:01]wFMCommunicate OK [21:41:01]wFMCommunicate request_size=32 [21:41:01]MH_SAM_APDU [21:41:01]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 79 2B 01 00 35 04 06 00 25 E8 10 98 25 A1 [21:41:01]Write to MH i2c: E2 23 00 5A 10 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 79 2B 01 00 35 04 06 00 25 E8 10 98 25 A1 00 00 5E [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:01]Read from MH i2c: E2 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 03 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [21:41:01]RAPDU: 90 00 [21:41:01]wFMCommunicate OK [21:41:01]wFMCommunicate request_size=4 [21:41:01]MH_SAM_APDU [21:41:01]CAPDU: 80 0D 03 02 [21:41:01]Write to MH i2c: E2 08 00 5B 10 80 0D 03 02 00 00 00 00 E6 [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:01]Read from MH i2c: E2 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 0B 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 0B 00 5B 10 00 FA 5C 9F 6A DB 15 9D F9 90 00 CC [21:41:01]RAPDU: FA 5C 9F 6A DB 15 9D F9 90 00 [21:41:01]wFMCommunicate OK [21:41:01]SAM_PROTO_SignData done [21:41:01]FM_MakeSignedData done [21:41:01]CreateOFDProtocolMessage [21:41:01]wFMCommunicate request_size=4 [21:41:01]MH_SAM_APDU [21:41:01]CAPDU: 80 11 00 00 [21:41:01]Write to MH i2c: E2 08 00 5C 10 80 11 00 00 00 00 00 00 E6 [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:01]Read from MH i2c: E2 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 17 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: E2 17 00 5C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 36 [21:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:41:01]wFMCommunicate OK [21:41:01]CreateOFDProtocolMessage done [21:41:01]OFDSenderStorePacket 76665 [21:41:01]StoreOFDPacket docnum=76665 [21:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 17 3B 1D 01 9C 98 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE A1 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 79 2B 01 00 35 04 06 00 25 E8 10 98 25 A1 FA 5C 9F 6A DB 15 9D F9 [21:41:01]CheckFolder [21:41:01]dirname=/storage/ofd_packets [21:41:01]CheckFolder done [21:41:01]ProducePacketName [21:41:01]name=ofd_packets/00076665 [21:41:01]NVStorageSaveData ofd_packets/00076665 [21:41:01]File name is /storage/ofd_packets/00076665 [21:41:01]Write 323 bytes [21:41:01]NVStorageSaveData done [21:41:01]OFDSenderStorePacket done [21:41:01]KKMCreateOFDPacket done [21:41:01]NVStorageSaveData kkm_last_timestamp [21:41:01]File name is /storage/kkm_last_timestamp [21:41:01]Write 4 bytes [21:41:01]NVStorageSaveData done [21:41:01]ExternCall_PrintAddStr [21:41:01]wPrintStart [21:41:01]Write to MH i2c: 01 00 00 5D 10 6D [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: 01 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: 01 07 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 FF 0F 82 [21:41:01]RasterBufferAndPrint [21:41:01]line Счет N : (3)220791 [21:41:01]line ИНН: 02508201610067 [21:41:01]line Контрольно-Кассовый Чек [21:41:01]line ПРОДАЖА [21:41:01]line Товар: 4780014240406 [21:41:01]line Сигареты Sovereign Blue [21:41:01]line 3.000 * 130.00 [21:41:01]line = 390.00 [21:41:01]line НДС 12% НСП 1% [21:41:01]line > о реализуемом товаре [21:41:01]line ИТОГО: 390.00 [21:41:01]line НСП 1% : 3.45 [21:41:01]line НДС 12% : 41.42 [21:41:01]line Наличными: 390.00 [21:41:01]line Безнал.: 0.00 [21:41:01]line Место: АЗС № 144 "Партнер Нефть" [21:41:01]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [21:41:01]line СНО: Общий режим [21:41:01]line Чек 106 20.06.2024 21:41 [21:41:01]line Смена: 393 ФФД: 1.0 [21:41:01]line ЗНМ: 0300000170 [21:41:01]line РНМ: 0000000000095696 [21:41:01]line Версия ККМ: 001 [21:41:01]line ФМ: 0000000000875009 [21:41:01]line ФД: 76665 [21:41:01]line ФПД: 41678641046945 [21:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T214102&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76665&fm=41678641046945&tin=02508201610067®Number=0000000000095696&sum=39000 [21:41:01]line 0 [21:41:01]written 0, free lines is 4095 [21:41:01]OFD Sender: Processing packet 76665 [packets to send 351, broken 350] [21:41:01]ProducePacketName [21:41:01]name=ofd_packets/00076665 [21:41:01]OFD Sender: To server: pG, [21:41:01]CommunicateWithHost lk.salyk.kg:30040 [21:41:01]ConnectInit lk.salyk.kg [21:41:01]Connected sock=9 [21:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 17 3B 1D 01 9C 98 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EE A1 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 79 2B 01 00 35 04 06 00 25 E8 10 98 25 A1 FA 5C 9F 6A DB 15 9D F9 [21:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 30 77 47 00 1D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 79 2B 01 00 F4 03 04 00 8E 48 74 66 B6 04 01 00 00 22 92 61 A7 2A 80 EB FA [21:41:01]CommunicateWithHost err = 0 [21:41:01]CheckOFDResponse [21:41:01]1017 (14) - 77093643461234 [21:41:01]1041 (16) - 0000000000875009 [21:41:01]1040 (4) - 76665 [21:41:01]1012 (4) - 20.06.2024 15:19 [21:41:01]1206 (1) - 0 [21:41:01]OFD Sender: Remove packet 76665 [21:41:01]ProducePacketName [21:41:01]name=ofd_packets/00076665 [21:41:01]NVStorageDeleteData [21:41:01]Write to MH i2c: 01 00 00 85 10 95 [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: 01 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: 01 07 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 FA 0C A2 [21:41:01]RasterBufferAndPrint [21:41:01]line [21:41:01]line [21:41:01]line [21:41:01]line [21:41:01]line [21:41:01]written 0, free lines is 3328 [21:41:01]MH_Cut [21:41:01]Write to MH i2c: D1 01 00 8C 10 01 6E [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: D1 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: D1 01 00 [21:41:01]MH_I2C_Read... [21:41:01]Read from MH i2c: D1 01 00 8C 10 00 6D [21:41:01]Write to MH i2c: 01 00 00 8D 10 9D [21:41:01]Write i2c OK [21:41:01]MH_I2C_Read... [21:41:02]OFD Sender: No OFD packet to send [21:41:02]*** Cut start [21:41:02]*** Partial cut [21:41:02]*** CUTSNS_PIN = 1 [21:41:02]*** CUTSNS_PIN = 0 [21:41:02]*** Brake cut motor [21:41:03]Read from MH i2c: 01 [21:41:03]MH_I2C_Read... [21:41:03]*** Stop cut motor [21:41:03]*** Cut end [21:41:03]Read from MH i2c: 01 07 00 [21:41:03]MH_I2C_Read... [21:41:03]Read from MH i2c: 01 07 00 8D 10 00 00 00 00 00 FF 0F B2 [21:41:03]process_action close_receipt done [21:41:03]requested_data is exist [21:41:03]produce_requested_data [21:41:03]requested_item fm.sn is exist - process it [21:41:03]wFMCommunicate request_size=4 [21:41:03]MH_SAM_APDU [21:41:03]CAPDU: 80 11 00 00 [21:41:03]Write to MH i2c: E2 08 00 8E 10 80 11 00 00 00 00 00 00 18 [21:41:03]Write i2c OK [21:41:03]MH_I2C_Read... [21:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:03]Read from MH i2c: E2 [21:41:03]MH_I2C_Read... [21:41:03]Read from MH i2c: E2 17 00 [21:41:03]MH_I2C_Read... [21:41:03]Read from MH i2c: E2 17 00 8E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 68 [21:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:41:03]wFMCommunicate OK [21:41:03]requested_item fd.num is exist - process it [21:41:03]SAM_PROTO_GetFieldsCounters [21:41:03]wFMCommunicate request_size=4 [21:41:03]MH_SAM_APDU [21:41:03]CAPDU: 80 13 00 00 [21:41:03]Write to MH i2c: E2 08 00 8F 10 80 13 00 00 00 00 00 00 1B [21:41:03]Write i2c OK [21:41:03]MH_I2C_Read... [21:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:03]Read from MH i2c: E2 [21:41:03]MH_I2C_Read... [21:41:03]Read from MH i2c: E2 62 00 [21:41:03]MH_I2C_Read... [21:41:03]Read from MH i2c: E2 62 00 8F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 79 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [21:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 79 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:03]wFMCommunicate OK [21:41:03]SAM_PROTO_GetFieldsCounters done [21:41:03]requested_item shift.num is exist - process it [21:41:03]requested_item shift.opened is exist - process it [21:41:03]req_shift_opened [21:41:03]FM_GetShiftState [21:41:03]SAM_PROTO_GetShiftState [21:41:03]wFMCommunicate request_size=4 [21:41:03]MH_SAM_APDU [21:41:03]CAPDU: 80 13 01 00 [21:41:03]Write to MH i2c: E2 08 00 90 10 80 13 01 00 00 00 00 00 1D [21:41:03]Write i2c OK [21:41:03]MH_I2C_Read... [21:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:03]Read from MH i2c: E2 [21:41:03]MH_I2C_Read... [21:41:03]Read from MH i2c: E2 0E 00 [21:41:03]MH_I2C_Read... [21:41:03]Read from MH i2c: E2 0E 00 90 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F9 [21:41:03]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [21:41:03]wFMCommunicate OK [21:41:03]SAM_PROTO_GetShiftState done [21:41:03]FM_GetShiftState done [21:41:03]req_shift_opened done [21:41:03]requested_item shift.open_date is exist - process it [21:41:03]req_shift_open_date [21:41:03]req_shift_open_date done [21:41:03]produce_requested_data done [21:41:03]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76665,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [21:41:03]process_action_free close_receipt [21:41:03]json_value_free [21:41:03]json_value_free done [21:41:03]process_json_proto returns [21:41:03]Send response to host [21:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76665,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [21:41:03]free response buf [21:41:03]execute_script done [21:41:03]execute_script returns [21:41:03]free content buf [21:41:03]Sock 10.Close socket [21:41:03]Sock 10.Thread stoped [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [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 [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:45]accept exits with 7 [21:43:45]New connection [21:43:45]New thread 3066948964 created [21:43:45]Thread 3066805604 joined [21:43:45]Waiting for new connection... [21:43:45] Sock 7.Parse request [21:43:45]Sock 7.Check first char [21:43:45]Sock 7.First char is OK [21:43:45]request: POST /json_proto HTTP/1.0 [21:43:45]Method: POST [21:43:45]URL: /json_proto [21:43:45]Method is POST - this is cgi request [21:43:45]url: /json_proto [21:43:45]query_string will be loaded in cgi processing [21:43:45]execute_cgi json_proto POST (null) [21:43:45]execute_cgi path=json_proto method=POST [21:43:45]POST find Content-Length [21:43:45]Host: 172.17.39.195:8080 [21:43:45]Content-Length: 650 [21:43:45]Content-Type: application/json [21:43:45] [21:43:45]POST finish read [21:43:45]Found Content-Length = 650 [21:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220792", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:45]execute_script... [21:43: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 : (3)220792", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:45]POST & json_proto [21:43:45]process_json_proto [21:43:45]json parsed OK: [21:43:45]protocol is kg_v1.0 [21:43:45]action value=close_receipt [21:43:45]process_action close_receipt [21:43:45]cmd_close_receipt [21:43:45]MH_GetDate [21:43:45]Write to MH i2c: F0 00 00 91 10 90 [21:43:45]Write i2c OK [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: F0 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: F0 09 00 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: F0 09 00 91 10 00 94 A2 74 66 99 81 91 64 B8 [21:43:45]GetLastDocTimeStamp 1718919662 [21:43:45]current date 1718919828 [21:43:45]FM_GetShiftState [21:43:45]SAM_PROTO_GetShiftState [21:43:45]wFMCommunicate request_size=4 [21:43:45]MH_SAM_APDU [21:43:45]CAPDU: 80 13 01 00 [21:43:45]Write to MH i2c: E2 08 00 92 10 80 13 01 00 00 00 00 00 1F [21:43:45]Write i2c OK [21:43:45]MH_I2C_Read... [21:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:45]Read from MH i2c: E2 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 0E 00 [21:43:45]MH_I2C_Read... [21:43:45]Read from MH i2c: E2 0E 00 92 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 FB [21:43:45]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [21:43:45]wFMCommunicate OK [21:43:45]SAM_PROTO_GetShiftState done [21:43:45]FM_GetShiftState done [21:43:45]opened in 1718843774 [21:43:45]opened+sec_in_day 1718930174 [21:43:45]quantity*price = 7500 [21:43:45]sum+1 = 7501 [21:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 107 20.06.2024 21:43 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76666 ФПД: 77695005352443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T214348&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76666&fm=77695005352443&tin=02508201610067®Number=0000000000095696&sum=7500 0 [21:43:46]StoreToDocumentArchive [21:43:46]shift 393 fd 76666 [21:43:46]save to /storage/0393/doc_00076666 [21:43:46]save last doc name /storage/0393/doc_00076666 to /storage/kkm_last_doc_name [21:43:46]save OK [21:43:46]Clear old archive folders... [21:43:46]ProcessDocumentItem done err = 0, tmpTLVsize=285 [21:43:46]tlvbuf is B6F57620 [21:43:46]SAM_PROTO_ClearQueue [21:43:46]wFMCommunicate request_size=4 [21:43:46]MH_SAM_APDU [21:43:46]CAPDU: 80 09 00 00 [21:43:46]Write to MH i2c: E2 08 00 9F 10 80 09 00 00 00 00 00 00 21 [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:46]Read from MH i2c: E2 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 03 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 03 00 9F 10 00 90 00 23 [21:43:46]RAPDU: 90 00 [21:43:46]wFMCommunicate OK [21:43:46]SAM_PROTO_ClearQueue done [21:43:46]KKMCreateOFDPacket [21:43:46]OFDProtocolAddRootSTLVToBuf [21:43:46]FM_MakeSignedData [21:43:46]FM_MakeSignedData [21:43:46]SAM_PROTO_SignData [21:43:46]wFMCommunicate request_size=4 [21:43:46]MH_SAM_APDU [21:43:46]CAPDU: 80 0D 01 02 [21:43:46]Write to MH i2c: E2 08 00 A0 10 80 0D 01 02 00 00 00 00 29 [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:46]Read from MH i2c: E2 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 03 00 [21:43:46]MH_I2C_Read... [21:43:46]Read from MH i2c: E2 03 00 A0 10 00 90 00 24 [21:43:46]RAPDU: 90 00 [21:43:46]wFMCommunicate OK [21:43:46]wFMCommunicate request_size=255 [21:43:46]MH_SAM_APDU [21:43:46]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 94 A2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 [21:43:46]Write to MH i2c: E2 02 01 A1 10 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 94 A2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 00 00 3C [21:43:46]Write i2c OK [21:43:46]MH_I2C_Read... [21:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:47]Read from MH i2c: E2 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 03 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 03 00 A1 10 00 90 00 25 [21:43:47]RAPDU: 90 00 [21:43:47]wFMCommunicate OK [21:43:47]wFMCommunicate request_size=44 [21:43:47]MH_SAM_APDU [21:43:47]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7A 2B 01 00 35 04 06 00 46 A9 C7 31 E1 FB [21:43:47]Write to MH i2c: E2 2F 00 A2 10 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7A 2B 01 00 35 04 06 00 46 A9 C7 31 E1 FB 00 00 B2 [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:47]Read from MH i2c: E2 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 03 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [21:43:47]RAPDU: 90 00 [21:43:47]wFMCommunicate OK [21:43:47]wFMCommunicate request_size=4 [21:43:47]MH_SAM_APDU [21:43:47]CAPDU: 80 0D 03 02 [21:43:47]Write to MH i2c: E2 08 00 A3 10 80 0D 03 02 00 00 00 00 2E [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:47]Read from MH i2c: E2 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 0B 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 0B 00 A3 10 00 2B 68 FA A3 B1 53 C2 A4 90 00 C9 [21:43:47]RAPDU: 2B 68 FA A3 B1 53 C2 A4 90 00 [21:43:47]wFMCommunicate OK [21:43:47]SAM_PROTO_SignData done [21:43:47]FM_MakeSignedData done [21:43:47]CreateOFDProtocolMessage [21:43:47]wFMCommunicate request_size=4 [21:43:47]MH_SAM_APDU [21:43:47]CAPDU: 80 11 00 00 [21:43:47]Write to MH i2c: E2 08 00 A4 10 80 11 00 00 00 00 00 00 2E [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:47]Read from MH i2c: E2 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 17 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: E2 17 00 A4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7E [21:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:43:47]wFMCommunicate OK [21:43:47]CreateOFDProtocolMessage done [21:43:47]OFDSenderStorePacket 76666 [21:43:47]StoreOFDPacket docnum=76666 [21:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 EF 6A 29 01 60 9E 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 94 A2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7A 2B 01 00 35 04 06 00 46 A9 C7 31 E1 FB 2B 68 FA A3 B1 53 C2 A4 [21:43:47]CheckFolder [21:43:47]dirname=/storage/ofd_packets [21:43:47]CheckFolder done [21:43:47]ProducePacketName [21:43:47]name=ofd_packets/00076666 [21:43:47]NVStorageSaveData ofd_packets/00076666 [21:43:47]File name is /storage/ofd_packets/00076666 [21:43:47]Write 335 bytes [21:43:47]NVStorageSaveData done [21:43:47]OFDSenderStorePacket done [21:43:47]KKMCreateOFDPacket done [21:43:47]NVStorageSaveData kkm_last_timestamp [21:43:47]File name is /storage/kkm_last_timestamp [21:43:47]Write 4 bytes [21:43:47]NVStorageSaveData done [21:43:47]ExternCall_PrintAddStr [21:43:47]wPrintStart [21:43:47]Write to MH i2c: 01 00 00 A5 10 B5 [21:43:47]Write i2c OK [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: 01 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: 01 07 00 [21:43:47]MH_I2C_Read... [21:43:47]Read from MH i2c: 01 07 00 A5 10 00 00 00 00 00 FF 0F CA [21:43:47]RasterBufferAndPrint [21:43:47]line Счет N : (3)220792 [21:43:47]line ИНН: 02508201610067 [21:43:47]line Контрольно-Кассовый Чек [21:43:47]line ПРОДАЖА [21:43:47]line Товар: 4870112002775 [21:43:47]line Шок батончик ALBENI BITES 80гр [21:43:47]line 1.000 * 75.00 [21:43:47]line = 75.00 [21:43:47]line НДС 12% НСП 1% [21:43:47]line > о реализуемом товаре [21:43:47]line ИТОГО: 75.00 [21:43:47]line НСП 1% : 0.66 [21:43:47]line НДС 12% : 7.96 [21:43:47]line Наличными: 75.00 [21:43:47]line Безнал.: 0.00 [21:43:47]line Место: АЗС № 144 "Партнер Нефть" [21:43:47]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [21:43:47]line СНО: Общий режим [21:43:47]line Чек 107 20.06.2024 21:43 [21:43:47]line Смена: 393 ФФД: 1.0 [21:43:47]line ЗНМ: 0300000170 [21:43:47]line РНМ: 0000000000095696 [21:43:47]line Версия ККМ: 001 [21:43:47]line ФМ: 0000000000875009 [21:43:47]line ФД: 76666 [21:43:47]line ФПД: 77695005352443 [21:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T214348&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76666&fm=77695005352443&tin=02508201610067®Number=0000000000095696&sum=7500 [21:43:47]line 0 [21:43:47]OFD Sender: Processing packet 76666 [packets to send 351, broken 350] [21:43:47]ProducePacketName [21:43:47]name=ofd_packets/00076666 [21:43:47]OFD Sender: To server: pG, [21:43:47]CommunicateWithHost lk.salyk.kg:30040 [21:43:47]ConnectInit lk.salyk.kg [21:43:47]written 0, free lines is 4095 [21:43:47]Connected sock=10 [21:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 EF 6A 29 01 60 9E 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 94 A2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7A 2B 01 00 35 04 06 00 46 A9 C7 31 E1 FB 2B 68 FA A3 B1 53 C2 A4 [21:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 70 5E 47 00 23 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7A 2B 01 00 F4 03 04 00 34 49 74 66 B6 04 01 00 00 A7 3C 53 68 4B A0 A0 0F [21:43:48]CommunicateWithHost err = 0 [21:43:48]CheckOFDResponse [21:43:48]1017 (14) - 77093643461234 [21:43:48]1041 (16) - 0000000000875009 [21:43:48]1040 (4) - 76666 [21:43:48]1012 (4) - 20.06.2024 15:22 [21:43:48]1206 (1) - 0 [21:43:48]OFD Sender: Remove packet 76666 [21:43:48]ProducePacketName [21:43:48]name=ofd_packets/00076666 [21:43:48]NVStorageDeleteData [21:43:48]Write to MH i2c: 01 00 00 CE 10 DE [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: 01 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: 01 07 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 D5 0C C6 [21:43:48]RasterBufferAndPrint [21:43:48]line [21:43:48]line [21:43:48]line [21:43:48]line [21:43:48]line [21:43:48]written 0, free lines is 3291 [21:43:48]MH_Cut [21:43:48]Write to MH i2c: D1 01 00 D5 10 01 B7 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: D1 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: D1 01 00 [21:43:48]MH_I2C_Read... [21:43:48]Read from MH i2c: D1 01 00 D5 10 00 B6 [21:43:48]Write to MH i2c: 01 00 00 D6 10 E6 [21:43:48]Write i2c OK [21:43:48]MH_I2C_Read... [21:43:48]OFD Sender: No OFD packet to send [21:43:48]*** Cut start [21:43:48]*** Partial cut [21:43:48]*** CUTSNS_PIN = 1 [21:43:48]*** CUTSNS_PIN = 0 [21:43:49]*** Brake cut motor [21:43:49]Read from MH i2c: 01 [21:43:49]MH_I2C_Read... [21:43:49]*** Stop cut motor [21:43:49]*** Cut end [21:43:49]Read from MH i2c: 01 07 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: 01 07 00 D6 10 00 00 00 00 00 FF 0F FB [21:43:49]process_action close_receipt done [21:43:49]requested_data is exist [21:43:49]produce_requested_data [21:43:49]requested_item fm.sn is exist - process it [21:43:49]wFMCommunicate request_size=4 [21:43:49]MH_SAM_APDU [21:43:49]CAPDU: 80 11 00 00 [21:43:49]Write to MH i2c: E2 08 00 D7 10 80 11 00 00 00 00 00 00 61 [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 17 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 17 00 D7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B1 [21:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:43:49]wFMCommunicate OK [21:43:49]requested_item fd.num is exist - process it [21:43:49]SAM_PROTO_GetFieldsCounters [21:43:49]wFMCommunicate request_size=4 [21:43:49]MH_SAM_APDU [21:43:49]CAPDU: 80 13 00 00 [21:43:49]Write to MH i2c: E2 08 00 D8 10 80 13 00 00 00 00 00 00 64 [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 62 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 62 00 D8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [21:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:49]wFMCommunicate OK [21:43:49]SAM_PROTO_GetFieldsCounters done [21:43:49]requested_item shift.num is exist - process it [21:43:49]requested_item shift.opened is exist - process it [21:43:49]req_shift_opened [21:43:49]FM_GetShiftState [21:43:49]SAM_PROTO_GetShiftState [21:43:49]wFMCommunicate request_size=4 [21:43:49]MH_SAM_APDU [21:43:49]CAPDU: 80 13 01 00 [21:43:49]Write to MH i2c: E2 08 00 D9 10 80 13 01 00 00 00 00 00 66 [21:43:49]Write i2c OK [21:43:49]MH_I2C_Read... [21:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:49]Read from MH i2c: E2 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 0E 00 [21:43:49]MH_I2C_Read... [21:43:49]Read from MH i2c: E2 0E 00 D9 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 42 [21:43:49]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [21:43:49]wFMCommunicate OK [21:43:49]SAM_PROTO_GetShiftState done [21:43:49]FM_GetShiftState done [21:43:49]req_shift_opened done [21:43:49]requested_item shift.open_date is exist - process it [21:43:49]req_shift_open_date [21:43:49]req_shift_open_date done [21:43:49]produce_requested_data done [21:43:49]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76666,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [21:43:49]process_action_free close_receipt [21:43:49]json_value_free [21:43:49]json_value_free done [21:43:49]process_json_proto returns [21:43:49]Send response to host [21:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76666,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [21:43:49]free response buf [21:43:49]execute_script done [21:43:49]execute_script returns [21:43:49]free content buf [21:43:49]Sock 7.Close socket [21:43:49]Sock 7.Thread stoped [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]accept exits with 9 [21:46:03]New connection [21:46:03]New thread 3066805604 created [21:46:03]Thread 3066948964 joined [21:46:03]Waiting for new connection... [21:46:03] Sock 9.Parse request [21:46:03]Sock 9.Check first char [21:46:03]Sock 9.First char is OK [21:46:03]request: POST /json_proto HTTP/1.0 [21:46:03]Method: POST [21:46:03]URL: /json_proto [21:46:03]Method is POST - this is cgi request [21:46:03]url: /json_proto [21:46:03]query_string will be loaded in cgi processing [21:46:03]execute_cgi json_proto POST (null) [21:46:03]execute_cgi path=json_proto method=POST [21:46:03]POST find Content-Length [21:46:03]Host: 172.17.39.195:8080 [21:46:03]Content-Length: 215 [21:46:03]Content-Type: application/json [21:46:03] [21:46:03]POST finish read [21:46:03]Found Content-Length = 215 [21:46:03]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:46:03]execute_script... [21:46:03]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:46:03]POST & json_proto [21:46:03]process_json_proto [21:46:03]json parsed OK: [21:46:03]protocol is kg_v1.0 [21:46:03]action value=get_value [21:46:03]process_action get_value [21:46:03]cmd_get_value [21:46:03]process_action get_value done [21:46:03]requested_data is exist [21:46:03]produce_requested_data [21:46:03]requested_item kkm.sn is exist - process it [21:46:03]requested_item kkm.ver is exist - process it [21:46:03]requested_item fm.sn is exist - process it [21:46:03]wFMCommunicate request_size=4 [21:46:03]MH_SAM_APDU [21:46:03]CAPDU: 80 11 00 00 [21:46:03]Write to MH i2c: E2 08 00 DA 10 80 11 00 00 00 00 00 00 64 [21:46:03]Write i2c OK [21:46:03]MH_I2C_Read... [21:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:03]Read from MH i2c: E2 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: E2 17 00 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: E2 17 00 DA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B4 [21:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:46:03]wFMCommunicate OK [21:46:03]requested_item fd.num is exist - process it [21:46:03]SAM_PROTO_GetFieldsCounters [21:46:03]wFMCommunicate request_size=4 [21:46:03]MH_SAM_APDU [21:46:03]CAPDU: 80 13 00 00 [21:46:03]Write to MH i2c: E2 08 00 DB 10 80 13 00 00 00 00 00 00 67 [21:46:03]Write i2c OK [21:46:03]MH_I2C_Read... [21:46:03]OFD Sender: No OFD packet to send [21:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:03]Read from MH i2c: E2 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: E2 62 00 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: E2 62 00 DB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [21:46:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7A 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:03]wFMCommunicate OK [21:46:03]SAM_PROTO_GetFieldsCounters done [21:46:03]requested_item shift.num is exist - process it [21:46:03]requested_item shift.opened is exist - process it [21:46:03]req_shift_opened [21:46:03]FM_GetShiftState [21:46:03]SAM_PROTO_GetShiftState [21:46:03]wFMCommunicate request_size=4 [21:46:03]MH_SAM_APDU [21:46:03]CAPDU: 80 13 01 00 [21:46:03]Write to MH i2c: E2 08 00 DC 10 80 13 01 00 00 00 00 00 69 [21:46:03]Write i2c OK [21:46:03]MH_I2C_Read... [21:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:03]Read from MH i2c: E2 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: E2 0E 00 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: E2 0E 00 DC 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 45 [21:46:03]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [21:46:03]wFMCommunicate OK [21:46:03]SAM_PROTO_GetShiftState done [21:46:03]FM_GetShiftState done [21:46:03]req_shift_opened done [21:46:03]requested_item shift.open_date is exist - process it [21:46:03]req_shift_open_date [21:46:03]req_shift_open_date done [21:46:03]produce_requested_data done [21:46:03]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76666,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [21:46:03]process_action_free get_value [21:46:03]json_value_free [21:46:03]json_value_free done [21:46:03]process_json_proto returns [21:46:03]Send response to host [21:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76666,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [21:46:03]free response buf [21:46:03]execute_script done [21:46:03]execute_script returns [21:46:03]free content buf [21:46:03]Sock 9.Close socket [21:46:03]Sock 9.Thread stoped [21:46:03]accept exits with 7 [21:46:03]New connection [21:46:03]New thread 3066948964 created [21:46:03]Thread 3066805604 joined [21:46:03]Waiting for new connection... [21:46:03] Sock 7.Parse request [21:46:03]Sock 7.Check first char [21:46:03]Sock 7.First char is OK [21:46:03]request: POST /json_proto HTTP/1.0 [21:46:03]Method: POST [21:46:03]URL: /json_proto [21:46:03]Method is POST - this is cgi request [21:46:03]url: /json_proto [21:46:03]query_string will be loaded in cgi processing [21:46:03]execute_cgi json_proto POST (null) [21:46:03]execute_cgi path=json_proto method=POST [21:46:03]POST find Content-Length [21:46:03]Host: 172.17.39.195:8080 [21:46:03]Content-Length: 331 [21:46:03]Content-Type: application/json [21:46:03] [21:46:03]POST finish read [21:46:03]Found Content-Length = 331 [21:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:46:03]execute_script... [21:46:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:46:03]POST & json_proto [21:46:03]process_json_proto [21:46:03]json parsed OK: [21:46:04]protocol is kg_v1.0 [21:46:04]action value=get_value [21:46:04]process_action get_value [21:46:04]cmd_get_value [21:46:04]process_action get_value done [21:46:04]requested_data is exist [21:46:04]produce_requested_data [21:46:04]requested_item fm.sale.total is exist - process it [21:46:04]SAM_PROTO_GetFMData [21:46:04]wFMCommunicate request_size=4 [21:46:04]MH_SAM_APDU [21:46:04]CAPDU: 80 13 03 00 [21:46:04]Write to MH i2c: E2 08 00 DD 10 80 13 03 00 00 00 00 00 6C [21:46:04]Write i2c OK [21:46:04]MH_I2C_Read... [21:46:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:46:04]Read from MH i2c: E2 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 FD 00 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 FD 00 DD 10 00 C6 04 85 04 C2 04 6E 04 04 00 68 28 01 00 69 04 A3 00 6F 04 04 00 2B 25 01 00 B1 04 05 00 93 90 5B B0 01 70 04 05 00 E8 07 1A 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B E1 EB 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4A 8F D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 3A [21:46:04]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 68 28 01 00 69 04 A3 00 6F 04 04 00 2B 25 01 00 B1 04 05 00 93 90 5B B0 01 70 04 05 00 E8 07 1A 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9B E1 EB 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4A 8F D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3D 03 00 00 B1 04 04 00 14 C1 75 A0 70 04 04 00 14 C1 75 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 44 0A 11 EF 03 09 90 00 [21:46:04]wFMCommunicate OK [21:46:04]wFMCommunicate request_size=4 [21:46:04]MH_SAM_APDU [21:46:04]CAPDU: 80 17 00 00 [21:46:04]Write to MH i2c: E2 08 00 DE 10 80 17 00 00 00 00 00 00 6E [21:46:04]Write i2c OK [21:46:04]MH_I2C_Read... [21:46:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:46:04]Read from MH i2c: E2 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 FD 00 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 FD 00 DE 10 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 AC [21:46:05]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 85 6B 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 90 00 [21:46:05]wFMCommunicate OK [21:46:05]wFMCommunicate request_size=4 [21:46:05]MH_SAM_APDU [21:46:05]CAPDU: 80 17 00 00 [21:46:05]Write to MH i2c: E2 08 00 DF 10 80 17 00 00 00 00 00 00 6F [21:46:05]Write i2c OK [21:46:05]MH_I2C_Read... [21:46:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:46:05]Read from MH i2c: E2 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 FD 00 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 FD 00 DF 10 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 96 [21:46:05]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [21:46:05]wFMCommunicate OK [21:46:05]wFMCommunicate request_size=4 [21:46:05]MH_SAM_APDU [21:46:05]CAPDU: 80 17 00 00 [21:46:05]Write to MH i2c: E2 08 00 E0 10 80 17 00 00 00 00 00 00 70 [21:46:05]Write i2c OK [21:46:05]MH_I2C_Read... [21:46:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:46:05]Read from MH i2c: E2 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 FD 00 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 FD 00 E0 10 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [21:46:05]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:46:05]wFMCommunicate OK [21:46:05]wFMCommunicate request_size=4 [21:46:05]MH_SAM_APDU [21:46:05]CAPDU: 80 17 00 00 [21:46:05]Write to MH i2c: E2 08 00 E1 10 80 17 00 00 00 00 00 00 71 [21:46:05]Write i2c OK [21:46:05]MH_I2C_Read... [21:46:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [21:46:05]Read from MH i2c: E2 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 E3 00 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 E3 00 E1 10 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 50 [21:46:05]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:46:05]wFMCommunicate OK [21:46:05]SAM_PROTO_GetFMData done [21:46:05]requested_item fm.sale_refund.total is exist - process it [21:46:05]requested_item fm.buy.total is exist - process it [21:46:05]requested_item shift.sale.total is exist - process it [21:46:05]SAM_PROTO_GetShiftData [21:46:05]wFMCommunicate request_size=4 [21:46:05]MH_SAM_APDU [21:46:05]CAPDU: 80 13 02 00 [21:46:05]Write to MH i2c: E2 08 00 E2 10 80 13 02 00 00 00 00 00 70 [21:46:05]Write i2c OK [21:46:05]MH_I2C_Read... [21:46:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:46:06]Read from MH i2c: E2 [21:46:06]MH_I2C_Read... [21:46:06]Read from MH i2c: E2 FD 00 [21:46:06]MH_I2C_Read... [21:46:06]Read from MH i2c: E2 FD 00 E2 10 00 AE 04 AA 04 AA 04 6E 04 04 00 6B 00 00 00 69 04 9B 00 6F 04 04 00 6B 00 00 00 B1 04 03 00 62 07 3D 70 04 03 00 68 52 27 72 04 03 00 FA B4 15 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 77 7B 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 11 [21:46:06]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6B 00 00 00 69 04 9B 00 6F 04 04 00 6B 00 00 00 B1 04 03 00 62 07 3D 70 04 03 00 68 52 27 72 04 03 00 FA B4 15 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 77 7B 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [21:46:06]wFMCommunicate OK [21:46:06]wFMCommunicate request_size=4 [21:46:06]MH_SAM_APDU [21:46:06]CAPDU: 80 17 00 00 [21:46:06]Write to MH i2c: E2 08 00 E3 10 80 17 00 00 00 00 00 00 73 [21:46:06]Write i2c OK [21:46:06]MH_I2C_Read... [21:46:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:46:06]Read from MH i2c: E2 [21:46:06]MH_I2C_Read... [21:46:06]Read from MH i2c: E2 FD 00 [21:46:06]MH_I2C_Read... [21:46:06]Read from MH i2c: E2 FD 00 E3 10 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 95 [21:46:06]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 [21:46:06]wFMCommunicate OK [21:46:06]wFMCommunicate request_size=4 [21:46:06]MH_SAM_APDU [21:46:06]CAPDU: 80 17 00 00 [21:46:06]Write to MH i2c: E2 08 00 E4 10 80 17 00 00 00 00 00 00 74 [21:46:06]Write i2c OK [21:46:06]MH_I2C_Read... [21:46:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:46:06]Read from MH i2c: E2 [21:46:06]MH_I2C_Read... [21:46:06]Read from MH i2c: E2 FD 00 [21:46:06]MH_I2C_Read... [21:46:06]Read from MH i2c: E2 FD 00 E4 10 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 2B [21:46:06]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 [21:46:06]wFMCommunicate OK [21:46:06]wFMCommunicate request_size=4 [21:46:06]MH_SAM_APDU [21:46:06]CAPDU: 80 17 00 00 [21:46:06]Write to MH i2c: E2 08 00 E5 10 80 17 00 00 00 00 00 00 75 [21:46:06]Write i2c OK [21:46:06]MH_I2C_Read... [21:46:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:46:07]Read from MH i2c: E2 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 FD 00 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 FD 00 E5 10 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 E7 [21:46:07]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 [21:46:07]wFMCommunicate OK [21:46:07]wFMCommunicate request_size=4 [21:46:07]MH_SAM_APDU [21:46:07]CAPDU: 80 17 00 00 [21:46:07]Write to MH i2c: E2 08 00 E6 10 80 17 00 00 00 00 00 00 76 [21:46:07]Write i2c OK [21:46:07]MH_I2C_Read... [21:46:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [21:46:07]Read from MH i2c: E2 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 CB 00 [21:46:07]MH_I2C_Read... [21:46:07]Read from MH i2c: E2 CB 00 E6 10 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 5F [21:46:07]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 [21:46:07]wFMCommunicate OK [21:46:07]SAM_PROTO_GetShiftData done [21:46:07]requested_item shift.sale.total_cash is exist - process it [21:46:07]requested_item shift.sale_refund.total is exist - process it [21:46:07]requested_item shift.sale_refund.total_cash is exist - process it [21:46:07]requested_item shift.buy.total is exist - process it [21:46:07]requested_item shift.buy.total_cash is exist - process it [21:46:07]produce_requested_data done [21:46:07]produce_requested_data return {"fm.sale.total":72537580.99,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":39995.86,"shift.sale.total_cash":25770.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} [21:46:07]process_action_free get_value [21:46:07]json_value_free [21:46:07]json_value_free done [21:46:07]process_json_proto returns [21:46:07]Send response to host [21:46:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72537580.99,"fm.sale_refund.total":26920717.00,"fm.buy.total":0.00,"shift.sale.total":39995.86,"shift.sale.total_cash":25770.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}}} [21:46:07]free response buf [21:46:07]execute_script done [21:46:07]execute_script returns [21:46:07]free content buf [21:46:07]Sock 7.Close socket [21:46:07]Sock 7.Thread stoped [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]accept exits with 9 [22:01:30]New connection [22:01:30]New thread 3066805604 created [22:01:30]Thread 3066948964 joined [22:01:30]Waiting for new connection... [22:01:30] Sock 9.Parse request [22:01:30]Sock 9.Check first char [22:01:30]Sock 9.First char is OK [22:01:30]request: POST /json_proto HTTP/1.0 [22:01:30]Method: POST [22:01:30]URL: /json_proto [22:01:30]Method is POST - this is cgi request [22:01:30]url: /json_proto [22:01:30]query_string will be loaded in cgi processing [22:01:30]execute_cgi json_proto POST (null) [22:01:30]execute_cgi path=json_proto method=POST [22:01:30]POST find Content-Length [22:01:30]Host: 172.17.39.195:8080 [22:01:30]Content-Length: 648 [22:01:30]Content-Type: application/json [22:01:30] [22:01:30]POST finish read [22:01:30]Found Content-Length = 648 [22:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220793", "tax_sys" : 0, "items" : [ { "code": "4870238424819", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 3.000, "sum" : 1215.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:30]execute_script... [22:01: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 : (3)220793", "tax_sys" : 0, "items" : [ { "code": "4870238424819", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 3.000, "sum" : 1215.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:30]POST & json_proto [22:01:30]process_json_proto [22:01:30]json parsed OK: [22:01:30]protocol is kg_v1.0 [22:01:30]action value=close_receipt [22:01:30]process_action close_receipt [22:01:30]cmd_close_receipt [22:01:30]MH_GetDate [22:01:30]Write to MH i2c: F0 00 00 E7 10 E6 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: F0 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: F0 09 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: F0 09 00 E7 10 00 BD A6 74 66 99 81 91 64 3B [22:01:30]GetLastDocTimeStamp 1718919828 [22:01:30]current date 1718920893 [22:01:30]FM_GetShiftState [22:01:30]SAM_PROTO_GetShiftState [22:01:30]wFMCommunicate request_size=4 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 13 01 00 [22:01:30]Write to MH i2c: E2 08 00 E8 10 80 13 01 00 00 00 00 00 75 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0E 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0E 00 E8 10 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 51 [22:01:30]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:01:30]wFMCommunicate OK [22:01:30]SAM_PROTO_GetShiftState done [22:01:30]FM_GetShiftState done [22:01:30]opened in 1718843774 [22:01:30]opened+sec_in_day 1718930174 [22:01:30]quantity*price = 121500 [22:01:30]sum+1 = 121501 [22:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1215.00 НСП 1% : 10.75 НДС 12% : 129.03 Наличными: 1215.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 108 20.06.2024 22:01 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76667 ФПД: 202705871868492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220133&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76667&fm=202705871868492&tin=02508201610067®Number=0000000000095696&sum=121500 0 [22:01:31]StoreToDocumentArchive [22:01:31]shift 393 fd 76667 [22:01:31]save to /storage/0393/doc_00076667 [22:01:31]save last doc name /storage/0393/doc_00076667 to /storage/kkm_last_doc_name [22:01:31]save OK [22:01:31]Clear old archive folders... [22:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:01:31]tlvbuf is 00EEB0A0 [22:01:31]SAM_PROTO_ClearQueue [22:01:31]wFMCommunicate request_size=4 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 09 00 00 [22:01:31]Write to MH i2c: E2 08 00 F5 10 80 09 00 00 00 00 00 00 77 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [22:01:31]RAPDU: 90 00 [22:01:31]wFMCommunicate OK [22:01:31]SAM_PROTO_ClearQueue done [22:01:31]KKMCreateOFDPacket [22:01:31]OFDProtocolAddRootSTLVToBuf [22:01:31]FM_MakeSignedData [22:01:31]FM_MakeSignedData [22:01:31]SAM_PROTO_SignData [22:01:31]wFMCommunicate request_size=4 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 0D 01 02 [22:01:31]Write to MH i2c: E2 08 00 F6 10 80 0D 01 02 00 00 00 00 7F [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:31]Read from MH i2c: E2 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [22:01:31]RAPDU: 90 00 [22:01:31]wFMCommunicate OK [22:01:31]wFMCommunicate request_size=255 [22:01:31]MH_SAM_APDU [22:01:31]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 9C DA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C DA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 32 00 00 00 00 07 04 06 00 9C DA 01 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 BD A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 [22:01:31]Write to MH i2c: E2 02 01 F7 10 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 9C DA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C DA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 32 00 00 00 00 07 04 06 00 9C DA 01 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 BD A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 00 00 90 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 [22:01:32]MH_I2C_Read... [22:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:32]Read from MH i2c: E2 03 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 03 00 F7 10 00 90 00 7B [22:01:32]RAPDU: 90 00 [22:01:32]wFMCommunicate OK [22:01:32]wFMCommunicate request_size=41 [22:01:32]MH_SAM_APDU [22:01:32]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7B 2B 01 00 35 04 06 00 B8 5C 23 7C 92 4C [22:01:32]Write to MH i2c: E2 2C 00 F8 10 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7B 2B 01 00 35 04 06 00 B8 5C 23 7C 92 4C 00 00 86 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:32]Read from MH i2c: E2 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 03 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [22:01:32]RAPDU: 90 00 [22:01:32]wFMCommunicate OK [22:01:32]wFMCommunicate request_size=4 [22:01:32]MH_SAM_APDU [22:01:32]CAPDU: 80 0D 03 02 [22:01:32]Write to MH i2c: E2 08 00 F9 10 80 0D 03 02 00 00 00 00 84 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:32]Read from MH i2c: E2 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 0B 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 0B 00 F9 10 00 74 00 D3 14 43 3F AE 5C 90 00 6C [22:01:32]RAPDU: 74 00 D3 14 43 3F AE 5C 90 00 [22:01:32]wFMCommunicate OK [22:01:32]SAM_PROTO_SignData done [22:01:32]FM_MakeSignedData done [22:01:32]CreateOFDProtocolMessage [22:01:32]wFMCommunicate request_size=4 [22:01:32]MH_SAM_APDU [22:01:32]CAPDU: 80 11 00 00 [22:01:32]Write to MH i2c: E2 08 00 FA 10 80 11 00 00 00 00 00 00 84 [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:32]Read from MH i2c: E2 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 17 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: E2 17 00 FA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D4 [22:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:01:32]wFMCommunicate OK [22:01:32]CreateOFDProtocolMessage done [22:01:32]OFDSenderStorePacket 76667 [22:01:32]StoreOFDPacket docnum=76667 [22:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 7B F0 26 01 AE E7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 9C DA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C DA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 32 00 00 00 00 07 04 06 00 9C DA 01 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 BD A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7B 2B 01 00 35 04 06 00 B8 5C 23 7C 92 4C 74 00 D3 14 43 3F AE 5C [22:01:32]CheckFolder [22:01:32]dirname=/storage/ofd_packets [22:01:32]CheckFolder done [22:01:32]ProducePacketName [22:01:32]name=ofd_packets/00076667 [22:01:32]NVStorageSaveData ofd_packets/00076667 [22:01:32]File name is /storage/ofd_packets/00076667 [22:01:32]Write 332 bytes [22:01:32]NVStorageSaveData done [22:01:32]OFDSenderStorePacket done [22:01:32]KKMCreateOFDPacket done [22:01:32]NVStorageSaveData kkm_last_timestamp [22:01:32]File name is /storage/kkm_last_timestamp [22:01:32]Write 4 bytes [22:01:32]NVStorageSaveData done [22:01:32]ExternCall_PrintAddStr [22:01:32]wPrintStart [22:01:32]Write to MH i2c: 01 00 00 FB 10 0B [22:01:32]Write i2c OK [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 07 00 [22:01:32]MH_I2C_Read... [22:01:32]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [22:01:32]RasterBufferAndPrint [22:01:32]line Счет N : (3)220793 [22:01:32]line ИНН: 02508201610067 [22:01:32]line Контрольно-Кассовый Чек [22:01:32]line ПРОДАЖА [22:01:32]line Товар: 4870238424819 [22:01:32]line Лукойл Супер 10W40 SG/CD 1л. [22:01:32]line 3.000 * 405.00 [22:01:32]line = 1215.00 [22:01:32]line НДС 12% НСП 1% [22:01:32]line > о реализуемом товаре [22:01:32]line ИТОГО: 1215.00 [22:01:32]line НСП 1% : 10.75 [22:01:32]line НДС 12% : 129.03 [22:01:32]line Наличными: 1215.00 [22:01:32]line Безнал.: 0.00 [22:01:32]line Место: АЗС № 144 "Партнер Нефть" [22:01:32]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:01:32]line СНО: Общий режим [22:01:32]line Чек 108 20.06.2024 22:01 [22:01:32]line Смена: 393 ФФД: 1.0 [22:01:32]line ЗНМ: 0300000170 [22:01:32]line РНМ: 0000000000095696 [22:01:32]line Версия ККМ: 001 [22:01:32]line ФМ: 0000000000875009 [22:01:32]line ФД: 76667 [22:01:32]line ФПД: 202705871868492 [22:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220133&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76667&fm=202705871868492&tin=02508201610067®Number=0000000000095696&sum=121500 [22:01:32]line 0 [22:01:32]OFD Sender: Processing packet 76667 [packets to send 351, broken 350] [22:01:32]ProducePacketName [22:01:32]name=ofd_packets/00076667 [22:01:32]OFD Sender: To server: pG, [22:01:32]CommunicateWithHost lk.salyk.kg:30040 [22:01:32]ConnectInit lk.salyk.kg [22:01:32]written 0, free lines is 4095 [22:01:32]Connected sock=10 [22:01:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 7B F0 26 01 AE E7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 33 38 34 32 34 38 31 39 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 9C DA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C DA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 32 00 00 00 00 07 04 06 00 9C DA 01 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 BD A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7B 2B 01 00 35 04 06 00 B8 5C 23 7C 92 4C 74 00 D3 14 43 3F AE 5C [22:01:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 09 EB 47 00 21 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7B 2B 01 00 F4 03 04 00 5D 4D 74 66 B6 04 01 00 00 5D 54 97 12 07 2E A5 88 [22:01:33]CommunicateWithHost err = 0 [22:01:33]CheckOFDResponse [22:01:33]1017 (14) - 77093643461234 [22:01:33]1041 (16) - 0000000000875009 [22:01:33]1040 (4) - 76667 [22:01:33]1012 (4) - 20.06.2024 15:40 [22:01:33]1206 (1) - 0 [22:01:33]OFD Sender: Remove packet 76667 [22:01:33]ProducePacketName [22:01:33]name=ofd_packets/00076667 [22:01:33]NVStorageDeleteData [22:01:33]Write to MH i2c: 01 00 00 24 11 35 [22:01:33]Write i2c OK [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: 01 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: 01 07 00 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: 01 07 00 24 11 00 00 00 00 00 F6 0C 3E [22:01:33]RasterBufferAndPrint [22:01:33]line [22:01:33]line [22:01:33]line [22:01:33]line [22:01:33]line [22:01:33]written 0, free lines is 3326 [22:01:33]MH_Cut [22:01:33]Write to MH i2c: D1 01 00 2B 11 01 0E [22:01:33]Write i2c OK [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: D1 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: D1 01 00 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: D1 01 00 2B 11 00 0D [22:01:33]Write to MH i2c: 01 00 00 2C 11 3D [22:01:33]Write i2c OK [22:01:33]MH_I2C_Read... [22:01:33]OFD Sender: No OFD packet to send [22:01:33]*** Cut start [22:01:33]*** Partial cut [22:01:33]*** CUTSNS_PIN = 1 [22:01:33]*** CUTSNS_PIN = 0 [22:01:34]*** Brake cut motor [22:01:34]Read from MH i2c: 01 [22:01:34]MH_I2C_Read... [22:01:34]*** Stop cut motor [22:01:34]*** Cut end [22:01:34]Read from MH i2c: 01 07 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: 01 07 00 2C 11 00 00 00 00 00 FF 0F 52 [22:01:34]process_action close_receipt done [22:01:34]requested_data is exist [22:01:34]produce_requested_data [22:01:34]requested_item fm.sn is exist - process it [22:01:34]wFMCommunicate request_size=4 [22:01:34]MH_SAM_APDU [22:01:34]CAPDU: 80 11 00 00 [22:01:34]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [22:01:34]Write i2c OK [22:01:34]MH_I2C_Read... [22:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:34]Read from MH i2c: E2 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 17 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 08 [22:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:01:34]wFMCommunicate OK [22:01:34]requested_item fd.num is exist - process it [22:01:34]SAM_PROTO_GetFieldsCounters [22:01:34]wFMCommunicate request_size=4 [22:01:34]MH_SAM_APDU [22:01:34]CAPDU: 80 13 00 00 [22:01:34]Write to MH i2c: E2 08 00 2E 11 80 13 00 00 00 00 00 00 BB [22:01:34]Write i2c OK [22:01:34]MH_I2C_Read... [22:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:34]Read from MH i2c: E2 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 62 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 62 00 2E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [22:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7B 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:34]wFMCommunicate OK [22:01:34]SAM_PROTO_GetFieldsCounters done [22:01:34]requested_item shift.num is exist - process it [22:01:34]requested_item shift.opened is exist - process it [22:01:34]req_shift_opened [22:01:34]FM_GetShiftState [22:01:34]SAM_PROTO_GetShiftState [22:01:34]wFMCommunicate request_size=4 [22:01:34]MH_SAM_APDU [22:01:34]CAPDU: 80 13 01 00 [22:01:34]Write to MH i2c: E2 08 00 2F 11 80 13 01 00 00 00 00 00 BD [22:01:34]Write i2c OK [22:01:34]MH_I2C_Read... [22:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:34]Read from MH i2c: E2 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 0E 00 [22:01:34]MH_I2C_Read... [22:01:34]Read from MH i2c: E2 0E 00 2F 11 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 99 [22:01:34]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:01:34]wFMCommunicate OK [22:01:34]SAM_PROTO_GetShiftState done [22:01:34]FM_GetShiftState done [22:01:34]req_shift_opened done [22:01:34]requested_item shift.open_date is exist - process it [22:01:34]req_shift_open_date [22:01:34]req_shift_open_date done [22:01:34]produce_requested_data done [22:01:34]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76667,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:01:34]process_action_free close_receipt [22:01:34]json_value_free [22:01:34]json_value_free done [22:01:34]process_json_proto returns [22:01:34]Send response to host [22:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76667,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:01:34]free response buf [22:01:34]execute_script done [22:01:34]execute_script returns [22:01:34]free content buf [22:01:34]Sock 9.Close socket [22:01:34]Sock 9.Thread stoped [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:57]accept exits with 7 [22:01:57]New connection [22:01:57]New thread 3066948964 created [22:01:57]Thread 3066805604 joined [22:01:57]Waiting for new connection... [22:01:57] Sock 7.Parse request [22:01:57]Sock 7.Check first char [22:01:57]Sock 7.First char is OK [22:01:57]request: POST /json_proto HTTP/1.0 [22:01:57]Method: POST [22:01:57]URL: /json_proto [22:01:57]Method is POST - this is cgi request [22:01:57]url: /json_proto [22:01:57]query_string will be loaded in cgi processing [22:01:57]execute_cgi json_proto POST (null) [22:01:57]execute_cgi path=json_proto method=POST [22:01:57]POST find Content-Length [22:01:57]Host: 172.17.39.195:8080 [22:01:57]Content-Length: 683 [22:01:57]Content-Type: application/json [22:01:57] [22:01:57]POST finish read [22:01:57]Found Content-Length = 683 [22:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693452", "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.40, "quantity" : 19.360, "sum" : 1285.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1285.00, "total" : 1285.00, "payments": [ { "type": 0, "sum" : 1285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:57]execute_script... [22:01:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693452", "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.40, "quantity" : 19.360, "sum" : 1285.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1285.00, "total" : 1285.00, "payments": [ { "type": 0, "sum" : 1285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:57]POST & json_proto [22:01:57]process_json_proto [22:01:57]json parsed OK: [22:01:57]protocol is kg_v1.0 [22:01:57]action value=close_receipt [22:01:57]process_action close_receipt [22:01:57]cmd_close_receipt [22:01:57]MH_GetDate [22:01:57]Write to MH i2c: F0 00 00 30 11 30 [22:01:57]Write i2c OK [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: F0 [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: F0 09 00 [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: F0 09 00 30 11 00 D8 A6 74 66 99 81 91 64 A0 [22:01:57]GetLastDocTimeStamp 1718920893 [22:01:57]current date 1718920920 [22:01:57]FM_GetShiftState [22:01:57]SAM_PROTO_GetShiftState [22:01:57]wFMCommunicate request_size=4 [22:01:57]MH_SAM_APDU [22:01:57]CAPDU: 80 13 01 00 [22:01:57]Write to MH i2c: E2 08 00 31 11 80 13 01 00 00 00 00 00 BF [22:01:57]Write i2c OK [22:01:57]MH_I2C_Read... [22:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:57]Read from MH i2c: E2 [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: E2 0E 00 [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: E2 0E 00 31 11 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 9B [22:01:57]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:01:57]wFMCommunicate OK [22:01:57]SAM_PROTO_GetShiftState done [22:01:57]FM_GetShiftState done [22:01:57]opened in 1718843774 [22:01:57]opened+sec_in_day 1718930174 [22:01:57]quantity*price = 128550 [22:01:57]sum+1 = 128551 [22:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1285.00 Внесено: 1285.00 СДАЧА: 0.00 НСП 1% : 11.38 НДС 12% : 136.51 Наличными: 1285.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 109 20.06.2024 22:02 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76668 ФПД: 110341603664248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220200&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76668&fm=110341603664248&tin=02508201610067®Number=0000000000095696&sum=128500 [22:01:58]StoreToDocumentArchive [22:01:58]shift 393 fd 76668 [22:01:58]save to /storage/0393/doc_00076668 [22:01:58]save last doc name /storage/0393/doc_00076668 to /storage/kkm_last_doc_name [22:01:58]save OK [22:01:58]Clear old archive folders... [22:01:58]OFD Sender: No OFD packet to send [22:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:58]tlvbuf is 00E95C20 [22:01:58]SAM_PROTO_ClearQueue [22:01:58]wFMCommunicate request_size=4 [22:01:58]MH_SAM_APDU [22:01:58]CAPDU: 80 09 00 00 [22:01:58]Write to MH i2c: E2 08 00 3E 11 80 09 00 00 00 00 00 00 C1 [22:01:58]Write i2c OK [22:01:58]MH_I2C_Read... [22:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:58]Read from MH i2c: E2 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 03 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 03 00 3E 11 00 90 00 C3 [22:01:58]RAPDU: 90 00 [22:01:58]wFMCommunicate OK [22:01:58]SAM_PROTO_ClearQueue done [22:01:58]KKMCreateOFDPacket [22:01:58]OFDProtocolAddRootSTLVToBuf [22:01:58]FM_MakeSignedData [22:01:58]FM_MakeSignedData [22:01:58]SAM_PROTO_SignData [22:01:58]wFMCommunicate request_size=4 [22:01:58]MH_SAM_APDU [22:01:58]CAPDU: 80 0D 01 02 [22:01:58]Write to MH i2c: E2 08 00 3F 11 80 0D 01 02 00 00 00 00 C9 [22:01:58]Write i2c OK [22:01:58]MH_I2C_Read... [22:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:58]Read from MH i2c: E2 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 03 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [22:01:58]RAPDU: 90 00 [22:01:58]wFMCommunicate OK [22:01:58]wFMCommunicate request_size=255 [22:01:58]MH_SAM_APDU [22:01:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D8 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7C 2B 01 00 35 04 06 00 64 [22:01:58]Write to MH i2c: E2 02 01 40 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D8 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7C 2B 01 00 35 04 06 00 64 00 00 18 [22:01:58]Write i2c OK [22:01:58]MH_I2C_Read... [22:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:59]Read from MH i2c: E2 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 03 00 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [22:01:59]RAPDU: 90 00 [22:01:59]wFMCommunicate OK [22:01:59]wFMCommunicate request_size=10 [22:01:59]MH_SAM_APDU [22:01:59]CAPDU: 80 0D 02 02 05 5A E8 17 21 78 [22:01:59]Write to MH i2c: E2 0D 00 41 11 80 0D 02 02 05 00 5A E8 17 21 78 00 00 C8 [22:01:59]Write i2c OK [22:01:59]MH_I2C_Read... [22:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:59]Read from MH i2c: E2 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 03 00 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [22:01:59]RAPDU: 90 00 [22:01:59]wFMCommunicate OK [22:01:59]wFMCommunicate request_size=4 [22:01:59]MH_SAM_APDU [22:01:59]CAPDU: 80 0D 03 02 [22:01:59]Write to MH i2c: E2 08 00 42 11 80 0D 03 02 00 00 00 00 CE [22:01:59]Write i2c OK [22:01:59]MH_I2C_Read... [22:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:59]Read from MH i2c: E2 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 0B 00 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 0B 00 42 11 00 46 59 32 9C 59 31 E2 13 90 00 BB [22:01:59]RAPDU: 46 59 32 9C 59 31 E2 13 90 00 [22:01:59]wFMCommunicate OK [22:01:59]SAM_PROTO_SignData done [22:01:59]FM_MakeSignedData done [22:01:59]CreateOFDProtocolMessage [22:01:59]wFMCommunicate request_size=4 [22:01:59]MH_SAM_APDU [22:01:59]CAPDU: 80 11 00 00 [22:01:59]Write to MH i2c: E2 08 00 43 11 80 11 00 00 00 00 00 00 CE [22:01:59]Write i2c OK [22:01:59]MH_I2C_Read... [22:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:59]Read from MH i2c: E2 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 17 00 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: E2 17 00 43 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1E [22:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:01:59]wFMCommunicate OK [22:01:59]CreateOFDProtocolMessage done [22:01:59]OFDSenderStorePacket 76668 [22:01:59]StoreOFDPacket docnum=76668 [22:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 02 9B 07 01 17 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D8 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7C 2B 01 00 35 04 06 00 64 5A E8 17 21 78 46 59 32 9C 59 31 E2 13 [22:01:59]CheckFolder [22:01:59]dirname=/storage/ofd_packets [22:01:59]CheckFolder done [22:01:59]ProducePacketName [22:01:59]name=ofd_packets/00076668 [22:01:59]NVStorageSaveData ofd_packets/00076668 [22:01:59]File name is /storage/ofd_packets/00076668 [22:01:59]Write 301 bytes [22:01:59]NVStorageSaveData done [22:01:59]OFDSenderStorePacket done [22:01:59]KKMCreateOFDPacket done [22:01:59]NVStorageSaveData kkm_last_timestamp [22:01:59]File name is /storage/kkm_last_timestamp [22:01:59]Write 4 bytes [22:01:59]NVStorageSaveData done [22:01:59]ExternCall_PrintAddStr [22:01:59]wPrintStart [22:01:59]Write to MH i2c: 01 00 00 44 11 55 [22:01:59]Write i2c OK [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: 01 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: 01 07 00 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 FF 0F 6A [22:01:59]RasterBufferAndPrint [22:01:59]line Счет N : (1)1693452 [22:01:59]line ИНН: 02508201610067 [22:01:59]line Контрольно-Кассовый Чек [22:01:59]line ПРОДАЖА [22:01:59]line ТРК (МРК, ГНК) : 63 [22:01:59]line Товар: 2710124130 [22:01:59]line Аи-92-К-5 [22:01:59]line 19.360 * 66.40 [22:01:59]line = 1285.50 [22:01:59]line НДС 12% НСП 1% [22:01:59]line > о реализуемом товаре [22:01:59]line ОКРУГЛЕНИЕ: -0.50 [22:01:59]line ИТОГО: 1285.00 [22:01:59]line Внесено: 1285.00 [22:01:59]line СДАЧА: 0.00 [22:01:59]line НСП 1% : 11.38 [22:01:59]line НДС 12% : 136.51 [22:01:59]line Наличными: 1285.00 [22:01:59]line Безнал.: 0.00 [22:01:59]line Место: АЗС № 144 "Партнер Нефть" [22:01:59]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:01:59]line СНО: Общий режим [22:01:59]line Чек 109 20.06.2024 22:02 [22:01:59]line Смена: 393 ФФД: 1.0 [22:01:59]line ЗНМ: 0300000170 [22:01:59]line РНМ: 0000000000095696 [22:01:59]line Версия ККМ: 001 [22:01:59]line ФМ: 0000000000875009 [22:01:59]line ФД: 76668 [22:01:59]line ФПД: 110341603664248 [22:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220200&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76668&fm=110341603664248&tin=02508201610067®Number=0000000000095696&sum=128500 [22:01:59]written 0, free lines is 4095 [22:01:59]OFD Sender: Processing packet 76668 [packets to send 351, broken 350] [22:01:59]ProducePacketName [22:01:59]name=ofd_packets/00076668 [22:01:59]OFD Sender: To server: pG, [22:01:59]CommunicateWithHost lk.salyk.kg:30040 [22:01:59]ConnectInit lk.salyk.kg [22:01:59]Connected sock=10 [22:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 02 9B 07 01 17 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D8 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7C 2B 01 00 35 04 06 00 64 5A E8 17 21 78 46 59 32 9C 59 31 E2 13 [22:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 77 B8 47 00 7D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7C 2B 01 00 F4 03 04 00 78 4D 74 66 B6 04 01 00 00 67 DE B0 52 85 44 D0 D4 [22:01:59]CommunicateWithHost err = 0 [22:01:59]CheckOFDResponse [22:01:59]1017 (14) - 77093643461234 [22:01:59]1041 (16) - 0000000000875009 [22:01:59]1040 (4) - 76668 [22:01:59]1012 (4) - 20.06.2024 15:40 [22:01:59]1206 (1) - 0 [22:01:59]OFD Sender: Remove packet 76668 [22:01:59]ProducePacketName [22:01:59]name=ofd_packets/00076668 [22:01:59]NVStorageDeleteData [22:01:59]Write to MH i2c: 01 00 00 6F 11 80 [22:01:59]Write i2c OK [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: 01 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: 01 07 00 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 E1 0C 74 [22:01:59]RasterBufferAndPrint [22:01:59]line [22:01:59]line [22:01:59]line [22:01:59]line [22:01:59]line [22:01:59]written 0, free lines is 3303 [22:01:59]MH_Cut [22:01:59]Write to MH i2c: D1 01 00 76 11 01 59 [22:01:59]Write i2c OK [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: D1 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: D1 01 00 [22:01:59]MH_I2C_Read... [22:01:59]Read from MH i2c: D1 01 00 76 11 00 58 [22:01:59]Write to MH i2c: 01 00 00 77 11 88 [22:01:59]Write i2c OK [22:01:59]MH_I2C_Read... [22:02:00]OFD Sender: No OFD packet to send [22:02:00]*** Cut start [22:02:00]*** Partial cut [22:02:00]*** CUTSNS_PIN = 1 [22:02:00]*** CUTSNS_PIN = 0 [22:02:00]*** Brake cut motor [22:02:01]Read from MH i2c: 01 [22:02:01]MH_I2C_Read... [22:02:01]*** Stop cut motor [22:02:01]*** Cut end [22:02:01]Read from MH i2c: 01 07 00 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 FF 0F 9D [22:02:01]process_action close_receipt done [22:02:01]requested_data is exist [22:02:01]produce_requested_data [22:02:01]requested_item fm.sn is exist - process it [22:02:01]wFMCommunicate request_size=4 [22:02:01]MH_SAM_APDU [22:02:01]CAPDU: 80 11 00 00 [22:02:01]Write to MH i2c: E2 08 00 78 11 80 11 00 00 00 00 00 00 03 [22:02:01]Write i2c OK [22:02:01]MH_I2C_Read... [22:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:01]Read from MH i2c: E2 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 17 00 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 17 00 78 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 53 [22:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:02:01]wFMCommunicate OK [22:02:01]requested_item fd.num is exist - process it [22:02:01]SAM_PROTO_GetFieldsCounters [22:02:01]wFMCommunicate request_size=4 [22:02:01]MH_SAM_APDU [22:02:01]CAPDU: 80 13 00 00 [22:02:01]Write to MH i2c: E2 08 00 79 11 80 13 00 00 00 00 00 00 06 [22:02:01]Write i2c OK [22:02:01]MH_I2C_Read... [22:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:01]Read from MH i2c: E2 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 62 00 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 62 00 79 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [22:02:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7C 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:01]wFMCommunicate OK [22:02:01]SAM_PROTO_GetFieldsCounters done [22:02:01]requested_item shift.num is exist - process it [22:02:01]requested_item shift.opened is exist - process it [22:02:01]req_shift_opened [22:02:01]FM_GetShiftState [22:02:01]SAM_PROTO_GetShiftState [22:02:01]wFMCommunicate request_size=4 [22:02:01]MH_SAM_APDU [22:02:01]CAPDU: 80 13 01 00 [22:02:01]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [22:02:01]Write i2c OK [22:02:01]MH_I2C_Read... [22:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:01]Read from MH i2c: E2 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 0E 00 [22:02:01]MH_I2C_Read... [22:02:01]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E4 [22:02:01]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:02:01]wFMCommunicate OK [22:02:01]SAM_PROTO_GetShiftState done [22:02:01]FM_GetShiftState done [22:02:01]req_shift_opened done [22:02:01]requested_item shift.open_date is exist - process it [22:02:01]req_shift_open_date [22:02:01]req_shift_open_date done [22:02:01]produce_requested_data done [22:02:01]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76668,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:02:01]process_action_free close_receipt [22:02:01]json_value_free [22:02:01]json_value_free done [22:02:01]process_json_proto returns [22:02:01]Send response to host [22:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76668,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:02:01]free response buf [22:02:01]execute_script done [22:02:01]execute_script returns [22:02:01]free content buf [22:02:01]Sock 7.Close socket [22:02:01]Sock 7.Thread stoped [22:02:05]OFD Sender: No OFD packet to send [22:02:06]accept exits with 9 [22:02:06]New connection [22:02:06]New thread 3066805604 created [22:02:06]Thread 3066948964 joined [22:02:06]Waiting for new connection... [22:02:06] Sock 9.Parse request [22:02:06]Sock 9.Check first char [22:02:06]Sock 9.First char is OK [22:02:06]request: POST /json_proto HTTP/1.0 [22:02:06]Method: POST [22:02:06]URL: /json_proto [22:02:06]Method is POST - this is cgi request [22:02:06]url: /json_proto [22:02:06]query_string will be loaded in cgi processing [22:02:06]execute_cgi json_proto POST (null) [22:02:06]execute_cgi path=json_proto method=POST [22:02:06]POST find Content-Length [22:02:06]Host: 172.17.39.195:8080 [22:02:06]Content-Length: 739 [22:02:06]Content-Type: application/json [22:02:06] [22:02:06]POST finish read [22:02:06]Found Content-Length = 739 [22:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76668, "base_FM": "0000000000875009", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693452", "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.40, "quantity" : 19.360, "sum" : 1285.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1285.00, "total" : 1285.00, "payments": [ { "type": 0, "sum" : 1285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:06]execute_script... [22:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76668, "base_FM": "0000000000875009", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693452", "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.40, "quantity" : 19.360, "sum" : 1285.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1285.00, "total" : 1285.00, "payments": [ { "type": 0, "sum" : 1285.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:06]POST & json_proto [22:02:06]process_json_proto [22:02:06]json parsed OK: [22:02:06]protocol is kg_v1.0 [22:02:06]action value=close_receipt [22:02:06]process_action close_receipt [22:02:06]cmd_close_receipt [22:02:06]MH_GetDate [22:02:06]Write to MH i2c: F0 00 00 7B 11 7B [22:02:06]Write i2c OK [22:02:06]MH_I2C_Read... [22:02:06]Read from MH i2c: F0 [22:02:06]MH_I2C_Read... [22:02:06]Read from MH i2c: F0 09 00 [22:02:06]MH_I2C_Read... [22:02:06]Read from MH i2c: F0 09 00 7B 11 00 E1 A6 74 66 99 81 91 64 F4 [22:02:06]GetLastDocTimeStamp 1718920920 [22:02:06]current date 1718920929 [22:02:06]FM_GetShiftState [22:02:06]SAM_PROTO_GetShiftState [22:02:06]wFMCommunicate request_size=4 [22:02:06]MH_SAM_APDU [22:02:06]CAPDU: 80 13 01 00 [22:02:06]Write to MH i2c: E2 08 00 7C 11 80 13 01 00 00 00 00 00 0A [22:02:06]Write i2c OK [22:02:06]MH_I2C_Read... [22:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:06]Read from MH i2c: E2 [22:02:06]MH_I2C_Read... [22:02:06]Read from MH i2c: E2 0E 00 [22:02:06]MH_I2C_Read... [22:02:06]Read from MH i2c: E2 0E 00 7C 11 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E6 [22:02:06]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:02:06]wFMCommunicate OK [22:02:06]SAM_PROTO_GetShiftState done [22:02:06]FM_GetShiftState done [22:02:06]opened in 1718843774 [22:02:06]opened+sec_in_day 1718930174 [22:02:06]quantity*price = 128550 [22:02:06]sum+1 = 128551 [22:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1285.00 НСП 1% : 11.38 НДС 12% : 136.51 Наличными: 1285.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 110 20.06.2024 22:02 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФД осн.: 76668 ФМ осн.: 0000000000875009 ФМ: 0000000000875009 ФД: 76669 ФПД: 129072781150401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220209&type=2&operation_type=1&fn_number=0000000000875009&fd_number=76669&fm=129072781150401&tin=02508201610067®Number=0000000000095696&sum=128500 [22:02:07]StoreToDocumentArchive [22:02:07]shift 393 fd 76669 [22:02:07]save to /storage/0393/doc_00076669 [22:02:07]save last doc name /storage/0393/doc_00076669 to /storage/kkm_last_doc_name [22:02:07]save OK [22:02:07]Clear old archive folders... [22:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:02:07]tlvbuf is 00ED7770 [22:02:07]SAM_PROTO_ClearQueue [22:02:07]wFMCommunicate request_size=4 [22:02:07]MH_SAM_APDU [22:02:07]CAPDU: 80 09 00 00 [22:02:07]Write to MH i2c: E2 08 00 8B 11 80 09 00 00 00 00 00 00 0E [22:02:07]Write i2c OK [22:02:07]MH_I2C_Read... [22:02:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:07]Read from MH i2c: E2 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 03 00 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [22:02:07]RAPDU: 90 00 [22:02:07]wFMCommunicate OK [22:02:07]SAM_PROTO_ClearQueue done [22:02:07]KKMCreateOFDPacket [22:02:07]OFDProtocolAddRootSTLVToBuf [22:02:07]FM_MakeSignedData [22:02:07]FM_MakeSignedData [22:02:07]SAM_PROTO_SignData [22:02:07]wFMCommunicate request_size=4 [22:02:07]MH_SAM_APDU [22:02:07]CAPDU: 80 0D 01 02 [22:02:07]Write to MH i2c: E2 08 00 8C 11 80 0D 01 02 00 00 00 00 16 [22:02:07]Write i2c OK [22:02:07]MH_I2C_Read... [22:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:08]Read from MH i2c: E2 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 8C 11 00 90 00 11 [22:02:08]RAPDU: 90 00 [22:02:08]wFMCommunicate OK [22:02:08]wFMCommunicate request_size=255 [22:02:08]MH_SAM_APDU [22:02:08]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 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E1 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 27 04 04 00 7C 2B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 04 10 00 30 [22:02:08]Write to MH i2c: E2 02 01 8D 11 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 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E1 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 27 04 04 00 7C 2B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 04 10 00 30 00 00 6D [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:08]Read from MH i2c: E2 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 8D 11 00 90 00 12 [22:02:08]RAPDU: 90 00 [22:02:08]wFMCommunicate OK [22:02:08]wFMCommunicate request_size=38 [22:02:08]MH_SAM_APDU [22:02:08]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7D 2B 01 00 35 04 06 00 75 64 19 45 48 C1 [22:02:08]Write to MH i2c: E2 29 00 8E 11 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7D 2B 01 00 35 04 06 00 75 64 19 45 48 C1 00 00 88 [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:08]Read from MH i2c: E2 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 8E 11 00 90 00 13 [22:02:08]RAPDU: 90 00 [22:02:08]wFMCommunicate OK [22:02:08]wFMCommunicate request_size=4 [22:02:08]MH_SAM_APDU [22:02:08]CAPDU: 80 0D 03 02 [22:02:08]Write to MH i2c: E2 08 00 8F 11 80 0D 03 02 00 00 00 00 1B [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:08]Read from MH i2c: E2 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 0B 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 0B 00 8F 11 00 84 DA 8C B9 AE BE 88 E4 90 00 97 [22:02:08]RAPDU: 84 DA 8C B9 AE BE 88 E4 90 00 [22:02:08]wFMCommunicate OK [22:02:08]SAM_PROTO_SignData done [22:02:08]FM_MakeSignedData done [22:02:08]CreateOFDProtocolMessage [22:02:08]wFMCommunicate request_size=4 [22:02:08]MH_SAM_APDU [22:02:08]CAPDU: 80 11 00 00 [22:02:08]Write to MH i2c: E2 08 00 90 11 80 11 00 00 00 00 00 00 1B [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:08]Read from MH i2c: E2 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 17 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 17 00 90 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6B [22:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:02:08]wFMCommunicate OK [22:02:08]CreateOFDProtocolMessage done [22:02:08]OFDSenderStorePacket 76669 [22:02:08]StoreOFDPacket docnum=76669 [22:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 71 AC 23 01 97 6F 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 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E1 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 27 04 04 00 7C 2B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7D 2B 01 00 35 04 06 00 75 64 19 45 48 C1 84 DA 8C B9 AE BE 88 E4 [22:02:08]CheckFolder [22:02:08]dirname=/storage/ofd_packets [22:02:08]CheckFolder done [22:02:08]ProducePacketName [22:02:08]name=ofd_packets/00076669 [22:02:08]NVStorageSaveData ofd_packets/00076669 [22:02:08]File name is /storage/ofd_packets/00076669 [22:02:08]Write 329 bytes [22:02:08]NVStorageSaveData done [22:02:08]OFDSenderStorePacket done [22:02:08]KKMCreateOFDPacket done [22:02:08]NVStorageSaveData kkm_last_timestamp [22:02:08]File name is /storage/kkm_last_timestamp [22:02:08]Write 4 bytes [22:02:08]NVStorageSaveData done [22:02:08]ExternCall_PrintAddStr [22:02:08]wPrintStart [22:02:08]Write to MH i2c: 01 00 00 91 11 A2 [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: 01 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: 01 07 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FF 0F B7 [22:02:08]RasterBufferAndPrint [22:02:08]line Счет N : (1)1693452 [22:02:08]line ИНН: 02508201610067 [22:02:08]line Контрольно-Кассовый Чек [22:02:08]line ВОЗВРАТ ПРОДАЖИ [22:02:08]line ТРК (МРК, ГНК) : 63 [22:02:08]line Товар: 2710124130 [22:02:08]line Аи-92-К-5 [22:02:08]line 19.360 * 66.40 [22:02:08]line = 1285.50 [22:02:08]line НДС 12% НСП 1% [22:02:08]line > о реализуемом товаре [22:02:08]line ОКРУГЛЕНИЕ: -0.50 [22:02:08]line ИТОГО: 1285.00 [22:02:08]line НСП 1% : 11.38 [22:02:08]line НДС 12% : 136.51 [22:02:08]line Наличными: 1285.00 [22:02:08]line Безнал.: 0.00 [22:02:08]line Место: АЗС № 144 "Партнер Нефть" [22:02:08]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:02:08]line СНО: Общий режим [22:02:08]line Чек 110 20.06.2024 22:02 [22:02:08]line Смена: 393 ФФД: 1.0 [22:02:08]line ЗНМ: 0300000170 [22:02:08]line РНМ: 0000000000095696 [22:02:08]line Версия ККМ: 001 [22:02:08]line ФД осн.: 76668 [22:02:08]line ФМ осн.: 0000000000875009 [22:02:08]line ФМ: 0000000000875009 [22:02:08]line ФД: 76669 [22:02:08]line ФПД: 129072781150401 [22:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220209&type=2&operation_type=1&fn_number=0000000000875009&fd_number=76669&fm=129072781150401&tin=02508201610067®Number=0000000000095696&sum=128500 [22:02:08]written 0, free lines is 4095 [22:02:08]OFD Sender: Processing packet 76669 [packets to send 351, broken 350] [22:02:08]ProducePacketName [22:02:08]name=ofd_packets/00076669 [22:02:08]OFD Sender: To server: pG, [22:02:08]CommunicateWithHost lk.salyk.kg:30040 [22:02:08]ConnectInit lk.salyk.kg [22:02:08]Connected sock=10 [22:02:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 71 AC 23 01 97 6F 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 A0 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 35 00 00 00 00 07 04 06 00 F4 F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E1 A6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 27 04 04 00 7C 2B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7D 2B 01 00 35 04 06 00 75 64 19 45 48 C1 84 DA 8C B9 AE BE 88 E4 [22:02:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 DC 45 47 00 B6 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7D 2B 01 00 F4 03 04 00 81 4D 74 66 B6 04 01 00 00 41 25 4F A4 22 54 AA 81 [22:02:08]CommunicateWithHost err = 0 [22:02:08]CheckOFDResponse [22:02:08]1017 (14) - 77093643461234 [22:02:08]1041 (16) - 0000000000875009 [22:02:08]1040 (4) - 76669 [22:02:08]1012 (4) - 20.06.2024 15:40 [22:02:08]1206 (1) - 0 [22:02:08]OFD Sender: Remove packet 76669 [22:02:08]ProducePacketName [22:02:08]name=ofd_packets/00076669 [22:02:08]NVStorageDeleteData [22:02:09]Write to MH i2c: 01 00 00 BC 11 CD [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 BC 11 00 00 00 00 00 ED 0C CD [22:02:09]RasterBufferAndPrint [22:02:09]line [22:02:09]line [22:02:09]line [22:02:09]line [22:02:09]line [22:02:09]written 0, free lines is 3319 [22:02:09]MH_Cut [22:02:09]Write to MH i2c: D1 01 00 C3 11 01 A6 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: D1 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: D1 01 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: D1 01 00 C3 11 00 A5 [22:02:09]Write to MH i2c: 01 00 00 C4 11 D5 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]OFD Sender: No OFD packet to send [22:02:09]*** Cut start [22:02:09]*** Partial cut [22:02:09]*** CUTSNS_PIN = 1 [22:02:09]*** CUTSNS_PIN = 0 [22:02:10]*** Brake cut motor [22:02:10]Read from MH i2c: 01 [22:02:10]MH_I2C_Read... [22:02:10]*** Stop cut motor [22:02:10]*** Cut end [22:02:10]Read from MH i2c: 01 07 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: 01 07 00 C4 11 00 00 00 00 00 FF 0F EA [22:02:10]process_action close_receipt done [22:02:10]requested_data is exist [22:02:10]produce_requested_data [22:02:10]requested_item fm.sn is exist - process it [22:02:10]wFMCommunicate request_size=4 [22:02:10]MH_SAM_APDU [22:02:10]CAPDU: 80 11 00 00 [22:02:10]Write to MH i2c: E2 08 00 C5 11 80 11 00 00 00 00 00 00 50 [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:10]Read from MH i2c: E2 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 17 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 17 00 C5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A0 [22:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:02:10]wFMCommunicate OK [22:02:10]requested_item fd.num is exist - process it [22:02:10]SAM_PROTO_GetFieldsCounters [22:02:10]wFMCommunicate request_size=4 [22:02:10]MH_SAM_APDU [22:02:10]CAPDU: 80 13 00 00 [22:02:10]Write to MH i2c: E2 08 00 C6 11 80 13 00 00 00 00 00 00 53 [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:10]Read from MH i2c: E2 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 62 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 62 00 C6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [22:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7D 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:10]wFMCommunicate OK [22:02:10]SAM_PROTO_GetFieldsCounters done [22:02:10]requested_item shift.num is exist - process it [22:02:10]requested_item shift.opened is exist - process it [22:02:10]req_shift_opened [22:02:10]FM_GetShiftState [22:02:10]SAM_PROTO_GetShiftState [22:02:10]wFMCommunicate request_size=4 [22:02:10]MH_SAM_APDU [22:02:10]CAPDU: 80 13 01 00 [22:02:10]Write to MH i2c: E2 08 00 C7 11 80 13 01 00 00 00 00 00 55 [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:10]Read from MH i2c: E2 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 0E 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: E2 0E 00 C7 11 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 31 [22:02:10]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:02:10]wFMCommunicate OK [22:02:10]SAM_PROTO_GetShiftState done [22:02:10]FM_GetShiftState done [22:02:10]req_shift_opened done [22:02:10]requested_item shift.open_date is exist - process it [22:02:10]req_shift_open_date [22:02:10]req_shift_open_date done [22:02:10]produce_requested_data done [22:02:10]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76669,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:02:10]process_action_free close_receipt [22:02:10]json_value_free [22:02:10]json_value_free done [22:02:10]process_json_proto returns [22:02:10]Send response to host [22:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76669,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:02:10]free response buf [22:02:10]execute_script done [22:02:10]execute_script returns [22:02:10]free content buf [22:02:10]Sock 9.Close socket [22:02:10]Sock 9.Thread stoped [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:18]accept exits with 7 [22:26:18]New connection [22:26:18]New thread 3066948964 created [22:26:18]Thread 3066805604 joined [22:26:18]Waiting for new connection... [22:26:18] Sock 7.Parse request [22:26:18]Sock 7.Check first char [22:26:18]Sock 7.First char is OK [22:26:18]request: POST /json_proto HTTP/1.0 [22:26:18]Method: POST [22:26:18]URL: /json_proto [22:26:18]Method is POST - this is cgi request [22:26:18]url: /json_proto [22:26:18]query_string will be loaded in cgi processing [22:26:18]execute_cgi json_proto POST (null) [22:26:18]execute_cgi path=json_proto method=POST [22:26:18]POST find Content-Length [22:26:18]Host: 172.17.39.195:8080 [22:26:18]Content-Length: 713 [22:26:18]Content-Type: application/json [22:26:18] [22:26:18]POST finish read [22:26:18]Found Content-Length = 713 [22:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220794", "tax_sys" : 0, "items" : [ { "code": "4780028461378", "name": "\u0412\u0438\u043D\u043E \u043D\u0430\u0442\u0443\u0440\u0430\u043B\u044C\u043D\u043E\u0435 \u0441\u043E\u0440\u0442\u043E\u0432\u043E\u0435 OREANDA Merlot", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:18]execute_script... [22:26: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 : (3)220794", "tax_sys" : 0, "items" : [ { "code": "4780028461378", "name": "\u0412\u0438\u043D\u043E \u043D\u0430\u0442\u0443\u0440\u0430\u043B\u044C\u043D\u043E\u0435 \u0441\u043E\u0440\u0442\u043E\u0432\u043E\u0435 OREANDA Merlot", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:18]POST & json_proto [22:26:18]process_json_proto [22:26:18]json parsed OK: [22:26:18]protocol is kg_v1.0 [22:26:18]action value=close_receipt [22:26:18]process_action close_receipt [22:26:18]cmd_close_receipt [22:26:18]MH_GetDate [22:26:18]Write to MH i2c: F0 00 00 C8 11 C8 [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: F0 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: F0 09 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: F0 09 00 C8 11 00 8D AC 74 66 99 81 91 64 F3 [22:26:18]GetLastDocTimeStamp 1718920929 [22:26:18]current date 1718922381 [22:26:18]FM_GetShiftState [22:26:18]SAM_PROTO_GetShiftState [22:26:18]wFMCommunicate request_size=4 [22:26:18]MH_SAM_APDU [22:26:18]CAPDU: 80 13 01 00 [22:26:18]Write to MH i2c: E2 08 00 C9 11 80 13 01 00 00 00 00 00 57 [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:18]Read from MH i2c: E2 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 0E 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 0E 00 C9 11 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 33 [22:26:18]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:26:18]wFMCommunicate OK [22:26:18]SAM_PROTO_GetShiftState done [22:26:18]FM_GetShiftState done [22:26:18]opened in 1718843774 [22:26:18]opened+sec_in_day 1718930174 [22:26:18]quantity*price = 55000 [22:26:18]sum+1 = 55001 [22:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.87 НДС 12% : 58.41 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 111 20.06.2024 22:26 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76670 ФПД: 192654704924981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222621&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76670&fm=192654704924981&tin=02508201610067®Number=0000000000095696&sum=55000 0 [22:26:19]StoreToDocumentArchive [22:26:19]shift 393 fd 76670 [22:26:19]save to /storage/0393/doc_00076670 [22:26:19]save last doc name /storage/0393/doc_00076670 to /storage/kkm_last_doc_name [22:26:19]save OK [22:26:19]Clear old archive folders... [22:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=305 [22:26:19]tlvbuf is B6EA70E0 [22:26:19]SAM_PROTO_ClearQueue [22:26:19]wFMCommunicate request_size=4 [22:26:19]MH_SAM_APDU [22:26:19]CAPDU: 80 09 00 00 [22:26:19]Write to MH i2c: E2 08 00 D6 11 80 09 00 00 00 00 00 00 59 [22:26:19]Write i2c OK [22:26:19]MH_I2C_Read... [22:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:19]Read from MH i2c: E2 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 03 00 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 03 00 D6 11 00 90 00 5B [22:26:19]RAPDU: 90 00 [22:26:19]wFMCommunicate OK [22:26:19]SAM_PROTO_ClearQueue done [22:26:19]KKMCreateOFDPacket [22:26:19]OFDProtocolAddRootSTLVToBuf [22:26:19]FM_MakeSignedData [22:26:19]FM_MakeSignedData [22:26:19]SAM_PROTO_SignData [22:26:19]wFMCommunicate request_size=4 [22:26:19]MH_SAM_APDU [22:26:19]CAPDU: 80 0D 01 02 [22:26:19]Write to MH i2c: E2 08 00 D7 11 80 0D 01 02 00 00 00 00 61 [22:26:19]Write i2c OK [22:26:19]MH_I2C_Read... [22:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:19]Read from MH i2c: E2 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 03 00 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 03 00 D7 11 00 90 00 5C [22:26:19]RAPDU: 90 00 [22:26:19]wFMCommunicate OK [22:26:19]wFMCommunicate request_size=255 [22:26:19]MH_SAM_APDU [22:26:19]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 8D AC 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 [22:26:19]Write to MH i2c: E2 02 01 D8 11 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 8D AC 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 00 00 97 [22:26:19]Write i2c OK [22:26:19]MH_I2C_Read... [22:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:20]Read from MH i2c: E2 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 03 00 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 03 00 D8 11 00 90 00 5D [22:26:20]RAPDU: 90 00 [22:26:20]wFMCommunicate OK [22:26:20]wFMCommunicate request_size=64 [22:26:20]MH_SAM_APDU [22:26:20]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7E 2B 01 00 35 04 06 00 AF 37 EB 40 59 35 [22:26:20]Write to MH i2c: E2 43 00 D9 11 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7E 2B 01 00 35 04 06 00 AF 37 EB 40 59 35 00 00 01 [22:26:20]Write i2c OK [22:26:20]MH_I2C_Read... [22:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:20]Read from MH i2c: E2 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 03 00 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [22:26:20]RAPDU: 90 00 [22:26:20]wFMCommunicate OK [22:26:20]wFMCommunicate request_size=4 [22:26:20]MH_SAM_APDU [22:26:20]CAPDU: 80 0D 03 02 [22:26:20]Write to MH i2c: E2 08 00 DA 11 80 0D 03 02 00 00 00 00 66 [22:26:20]Write i2c OK [22:26:20]MH_I2C_Read... [22:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:20]Read from MH i2c: E2 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 0B 00 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 0B 00 DA 11 00 47 20 5C 62 C1 7F 30 A3 90 00 9F [22:26:20]RAPDU: 47 20 5C 62 C1 7F 30 A3 90 00 [22:26:20]wFMCommunicate OK [22:26:20]SAM_PROTO_SignData done [22:26:20]FM_MakeSignedData done [22:26:20]CreateOFDProtocolMessage [22:26:20]wFMCommunicate request_size=4 [22:26:20]MH_SAM_APDU [22:26:20]CAPDU: 80 11 00 00 [22:26:20]Write to MH i2c: E2 08 00 DB 11 80 11 00 00 00 00 00 00 66 [22:26:20]Write i2c OK [22:26:20]MH_I2C_Read... [22:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:20]Read from MH i2c: E2 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 17 00 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: E2 17 00 DB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B6 [22:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:26:20]wFMCommunicate OK [22:26:20]CreateOFDProtocolMessage done [22:26:20]OFDSenderStorePacket 76670 [22:26:20]StoreOFDPacket docnum=76670 [22:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 45 01 00 00 51 36 3D 01 66 D8 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 8D AC 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7E 2B 01 00 35 04 06 00 AF 37 EB 40 59 35 47 20 5C 62 C1 7F 30 A3 [22:26:20]CheckFolder [22:26:20]dirname=/storage/ofd_packets [22:26:20]CheckFolder done [22:26:20]ProducePacketName [22:26:20]name=ofd_packets/00076670 [22:26:20]NVStorageSaveData ofd_packets/00076670 [22:26:20]File name is /storage/ofd_packets/00076670 [22:26:20]Write 355 bytes [22:26:20]NVStorageSaveData done [22:26:20]OFDSenderStorePacket done [22:26:20]KKMCreateOFDPacket done [22:26:20]NVStorageSaveData kkm_last_timestamp [22:26:20]File name is /storage/kkm_last_timestamp [22:26:20]Write 4 bytes [22:26:20]NVStorageSaveData done [22:26:20]ExternCall_PrintAddStr [22:26:20]wPrintStart [22:26:20]Write to MH i2c: 01 00 00 DC 11 ED [22:26:20]Write i2c OK [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: 01 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: 01 07 00 [22:26:20]MH_I2C_Read... [22:26:20]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 FF 0F 02 [22:26:20]RasterBufferAndPrint [22:26:20]line Счет N : (3)220794 [22:26:20]line ИНН: 02508201610067 [22:26:20]line Контрольно-Кассовый Чек [22:26:20]line ПРОДАЖА [22:26:20]line Товар: 4780028461378 [22:26:20]line Вино натуральное сортовое OREANDA Merlot [22:26:20]line 1.000 * 550.00 [22:26:20]line = 550.00 [22:26:20]line НДС 12% НСП 1% [22:26:20]line > о реализуемом товаре [22:26:20]line ИТОГО: 550.00 [22:26:20]line НСП 1% : 4.87 [22:26:20]line НДС 12% : 58.41 [22:26:20]line Наличными: 550.00 [22:26:20]line Безнал.: 0.00 [22:26:20]line Место: АЗС № 144 "Партнер Нефть" [22:26:20]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:26:20]line СНО: Общий режим [22:26:20]line Чек 111 20.06.2024 22:26 [22:26:20]line Смена: 393 ФФД: 1.0 [22:26:20]line ЗНМ: 0300000170 [22:26:20]line РНМ: 0000000000095696 [22:26:20]line Версия ККМ: 001 [22:26:20]line ФМ: 0000000000875009 [22:26:20]line ФД: 76670 [22:26:20]line ФПД: 192654704924981 [22:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222621&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76670&fm=192654704924981&tin=02508201610067®Number=0000000000095696&sum=55000 [22:26:20]line 0 [22:26:20]OFD Sender: Processing packet 76670 [packets to send 351, broken 350] [22:26:20]ProducePacketName [22:26:20]name=ofd_packets/00076670 [22:26:20]OFD Sender: To server: pG, [22:26:20]CommunicateWithHost lk.salyk.kg:30040 [22:26:20]ConnectInit lk.salyk.kg [22:26:20]written 0, free lines is 4095 [22:26:20]Connected sock=11 [22:26:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 45 01 00 00 51 36 3D 01 66 D8 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 8D AC 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7E 2B 01 00 35 04 06 00 AF 37 EB 40 59 35 47 20 5C 62 C1 7F 30 A3 [22:26:21]Write to MH i2c: 01 00 00 05 12 17 [22:26:21]Write i2c OK [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: 01 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: 01 07 00 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: 01 07 00 05 12 00 00 00 00 00 E5 0C 0F [22:26:21]RasterBufferAndPrint [22:26:21]line [22:26:21]line [22:26:21]line [22:26:21]line [22:26:21]line [22:26:21]written 0, free lines is 3307 [22:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 77 66 47 00 13 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7E 2B 01 00 F4 03 04 00 2D 53 74 66 B6 04 01 00 00 B5 D0 23 FC 77 B8 1B B4 [22:26:21]CommunicateWithHost err = 0 [22:26:21]CheckOFDResponse [22:26:21]1017 (14) - 77093643461234 [22:26:21]1041 (16) - 0000000000875009 [22:26:21]1040 (4) - 76670 [22:26:21]1012 (4) - 20.06.2024 16:05 [22:26:21]1206 (1) - 0 [22:26:21]OFD Sender: Remove packet 76670 [22:26:21]ProducePacketName [22:26:21]name=ofd_packets/00076670 [22:26:21]NVStorageDeleteData [22:26:21]MH_Cut [22:26:21]Write to MH i2c: D1 01 00 0C 12 01 F0 [22:26:21]Write i2c OK [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: D1 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: D1 01 00 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: D1 01 00 0C 12 00 EF [22:26:21]Write to MH i2c: 01 00 00 0D 12 1F [22:26:21]Write i2c OK [22:26:21]MH_I2C_Read... [22:26:21]OFD Sender: No OFD packet to send [22:26:21]*** Cut start [22:26:21]*** Partial cut [22:26:21]*** CUTSNS_PIN = 1 [22:26:21]*** CUTSNS_PIN = 0 [22:26:22]*** Brake cut motor [22:26:22]Read from MH i2c: 01 [22:26:22]MH_I2C_Read... [22:26:22]*** Stop cut motor [22:26:22]*** Cut end [22:26:22]Read from MH i2c: 01 07 00 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: 01 07 00 0D 12 00 00 00 00 00 FF 0F 34 [22:26:22]process_action close_receipt done [22:26:22]requested_data is exist [22:26:22]produce_requested_data [22:26:22]requested_item fm.sn is exist - process it [22:26:22]wFMCommunicate request_size=4 [22:26:22]MH_SAM_APDU [22:26:22]CAPDU: 80 11 00 00 [22:26:22]Write to MH i2c: E2 08 00 0E 12 80 11 00 00 00 00 00 00 9A [22:26:22]Write i2c OK [22:26:22]MH_I2C_Read... [22:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:22]Read from MH i2c: E2 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 17 00 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 17 00 0E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EA [22:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:26:22]wFMCommunicate OK [22:26:22]requested_item fd.num is exist - process it [22:26:22]SAM_PROTO_GetFieldsCounters [22:26:22]wFMCommunicate request_size=4 [22:26:22]MH_SAM_APDU [22:26:22]CAPDU: 80 13 00 00 [22:26:22]Write to MH i2c: E2 08 00 0F 12 80 13 00 00 00 00 00 00 9D [22:26:22]Write i2c OK [22:26:22]MH_I2C_Read... [22:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:22]Read from MH i2c: E2 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 62 00 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 62 00 0F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [22:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7E 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:22]wFMCommunicate OK [22:26:22]SAM_PROTO_GetFieldsCounters done [22:26:22]requested_item shift.num is exist - process it [22:26:22]requested_item shift.opened is exist - process it [22:26:22]req_shift_opened [22:26:22]FM_GetShiftState [22:26:22]SAM_PROTO_GetShiftState [22:26:22]wFMCommunicate request_size=4 [22:26:22]MH_SAM_APDU [22:26:22]CAPDU: 80 13 01 00 [22:26:22]Write to MH i2c: E2 08 00 10 12 80 13 01 00 00 00 00 00 9F [22:26:22]Write i2c OK [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 [22:26:22]MH_I2C_Read... [22:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:22]Read from MH i2c: E2 0E 00 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 0E 00 10 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 7B [22:26:22]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:26:22]wFMCommunicate OK [22:26:22]SAM_PROTO_GetShiftState done [22:26:22]FM_GetShiftState done [22:26:22]req_shift_opened done [22:26:22]requested_item shift.open_date is exist - process it [22:26:22]req_shift_open_date [22:26:22]req_shift_open_date done [22:26:22]produce_requested_data done [22:26:22]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76670,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:26:22]process_action_free close_receipt [22:26:22]json_value_free [22:26:22]json_value_free done [22:26:22]process_json_proto returns [22:26:22]Send response to host [22:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76670,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:26:22]free response buf [22:26:22]execute_script done [22:26:22]execute_script returns [22:26:22]free content buf [22:26:22]Sock 7.Close socket [22:26:22]Sock 7.Thread stoped [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:05]accept exits with 9 [22:50:05]New connection [22:50:05]New thread 3066805604 created [22:50:05]Thread 3066948964 joined [22:50:05]Waiting for new connection... [22:50:05] Sock 9.Parse request [22:50:05]Sock 9.Check first char [22:50:05]Sock 9.First char is OK [22:50:05]request: POST /json_proto HTTP/1.0 [22:50:05]Method: POST [22:50:05]URL: /json_proto [22:50:05]Method is POST - this is cgi request [22:50:05]url: /json_proto [22:50:05]query_string will be loaded in cgi processing [22:50:05]execute_cgi json_proto POST (null) [22:50:05]execute_cgi path=json_proto method=POST [22:50:05]POST find Content-Length [22:50:05]Host: 172.17.39.195:8080 [22:50:05]Content-Length: 683 [22:50:05]Content-Type: application/json [22:50:05] [22:50:05]POST finish read [22:50:05]Found Content-Length = 683 [22:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693479", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:05]execute_script... [22:50: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)1693479", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:05]POST & json_proto [22:50:05]process_json_proto [22:50:05]json parsed OK: [22:50:05]protocol is kg_v1.0 [22:50:05]action value=close_receipt [22:50:05]process_action close_receipt [22:50:05]cmd_close_receipt [22:50:05]MH_GetDate [22:50:05]Write to MH i2c: F0 00 00 11 12 12 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: F0 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: F0 09 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: F0 09 00 11 12 00 20 B2 74 66 99 81 91 64 D6 [22:50:05]GetLastDocTimeStamp 1718922381 [22:50:05]current date 1718923808 [22:50:05]FM_GetShiftState [22:50:05]SAM_PROTO_GetShiftState [22:50:05]wFMCommunicate request_size=4 [22:50:05]MH_SAM_APDU [22:50:05]CAPDU: 80 13 01 00 [22:50:05]Write to MH i2c: E2 08 00 12 12 80 13 01 00 00 00 00 00 A1 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:05]Read from MH i2c: E2 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 0E 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 0E 00 12 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 7D [22:50:05]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:50:05]wFMCommunicate OK [22:50:05]SAM_PROTO_GetShiftState done [22:50:05]FM_GetShiftState done [22:50:05]opened in 1718843774 [22:50:05]opened+sec_in_day 1718930174 [22:50:05]quantity*price = 100064 [22:50:05]sum+1 = 100066 [22:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 112 20.06.2024 22:50 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76671 ФПД: 58141502905042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225008&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76671&fm=58141502905042&tin=02508201610067®Number=0000000000095696&sum=100000 [22:50:06]StoreToDocumentArchive [22:50:06]shift 393 fd 76671 [22:50:06]save to /storage/0393/doc_00076671 [22:50:06]save last doc name /storage/0393/doc_00076671 to /storage/kkm_last_doc_name [22:50:06]save OK [22:50:06]Clear old archive folders... [22:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:06]tlvbuf is 00EB2210 [22:50:06]SAM_PROTO_ClearQueue [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 09 00 00 [22:50:06]Write to MH i2c: E2 08 00 1F 12 80 09 00 00 00 00 00 00 A3 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [22:50:06]RAPDU: 90 00 [22:50:06]wFMCommunicate OK [22:50:06]SAM_PROTO_ClearQueue done [22:50:06]KKMCreateOFDPacket [22:50:06]OFDProtocolAddRootSTLVToBuf [22:50:06]FM_MakeSignedData [22:50:06]FM_MakeSignedData [22:50:06]SAM_PROTO_SignData [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 0D 01 02 [22:50:06]Write to MH i2c: E2 08 00 20 12 80 0D 01 02 00 00 00 00 AB [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [22:50:06]RAPDU: 90 00 [22:50:06]wFMCommunicate OK [22:50:06]wFMCommunicate request_size=255 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 20 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7F 2B 01 00 35 04 06 00 34 [22:50:06]Write to MH i2c: E2 02 01 21 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 20 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7F 2B 01 00 35 04 06 00 34 00 00 3B [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [22:50:06]RAPDU: 90 00 [22:50:06]wFMCommunicate OK [22:50:06]wFMCommunicate request_size=10 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 0D 02 02 05 E1 1F A0 9A D2 [22:50:06]Write to MH i2c: E2 0D 00 22 12 80 0D 02 02 05 00 E1 1F A0 9A D2 00 00 C4 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 03 00 22 12 00 90 00 A8 [22:50:06]RAPDU: 90 00 [22:50:06]wFMCommunicate OK [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 0D 03 02 [22:50:06]Write to MH i2c: E2 08 00 23 12 80 0D 03 02 00 00 00 00 B0 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 0B 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 0B 00 23 12 00 A0 60 8E B9 FA E0 98 80 90 00 EA [22:50:06]RAPDU: A0 60 8E B9 FA E0 98 80 90 00 [22:50:06]wFMCommunicate OK [22:50:06]SAM_PROTO_SignData done [22:50:06]FM_MakeSignedData done [22:50:06]CreateOFDProtocolMessage [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 11 00 00 [22:50:06]Write to MH i2c: E2 08 00 24 12 80 11 00 00 00 00 00 00 B0 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 17 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 17 00 24 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 00 [22:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:50:06]wFMCommunicate OK [22:50:06]CreateOFDProtocolMessage done [22:50:06]OFDSenderStorePacket 76671 [22:50:06]StoreOFDPacket docnum=76671 [22:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 E2 B7 07 01 4E FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 20 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7F 2B 01 00 35 04 06 00 34 E1 1F A0 9A D2 A0 60 8E B9 FA E0 98 80 [22:50:06]CheckFolder [22:50:06]dirname=/storage/ofd_packets [22:50:06]CheckFolder done [22:50:06]ProducePacketName [22:50:06]name=ofd_packets/00076671 [22:50:06]NVStorageSaveData ofd_packets/00076671 [22:50:06]File name is /storage/ofd_packets/00076671 [22:50:06]Write 301 bytes [22:50:06]NVStorageSaveData done [22:50:06]OFDSenderStorePacket done [22:50:06]KKMCreateOFDPacket done [22:50:06]NVStorageSaveData kkm_last_timestamp [22:50:06]File name is /storage/kkm_last_timestamp [22:50:06]Write 4 bytes [22:50:06]NVStorageSaveData done [22:50:06]OFD Sender: Processing packet 76671 [packets to send 351, broken 350] [22:50:06]ProducePacketName [22:50:06]name=ofd_packets/00076671 [22:50:06]OFD Sender: To server: pG, [22:50:06]CommunicateWithHost lk.salyk.kg:30040 [22:50:06]ConnectInit lk.salyk.kg [22:50:06]ExternCall_PrintAddStr [22:50:06]wPrintStart [22:50:06]Write to MH i2c: 01 00 00 25 12 37 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: 01 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: 01 07 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: 01 07 00 25 12 00 00 00 00 00 FF 0F 4C [22:50:06]RasterBufferAndPrint [22:50:06]line Счет N : (1)1693479 [22:50:06]line ИНН: 02508201610067 [22:50:06]line Контрольно-Кассовый Чек [22:50:06]line ПРОДАЖА [22:50:06]line ТРК (МРК, ГНК) : 33 [22:50:06]line Товар: 2710124130 [22:50:06]line Аи-92-К-5 [22:50:06]line 15.070 * 66.40 [22:50:06]line = 1000.65 [22:50:06]line НДС 12% НСП 1% [22:50:06]line > о реализуемом товаре [22:50:06]line ОКРУГЛЕНИЕ: -0.65 [22:50:06]line ИТОГО: 1000.00 [22:50:06]line Внесено: 1000.00 [22:50:06]line СДАЧА: 0.00 [22:50:06]line НСП 1% : 8.85 [22:50:06]line НДС 12% : 106.26 [22:50:06]line Наличными: 1000.00 [22:50:06]line Безнал.: 0.00 [22:50:06]line Место: АЗС № 144 "Партнер Нефть" [22:50:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:50:06]line СНО: Общий режим [22:50:06]line Чек 112 20.06.2024 22:50 [22:50:06]line Смена: 393 ФФД: 1.0 [22:50:06]line ЗНМ: 0300000170 [22:50:06]line РНМ: 0000000000095696 [22:50:06]line Версия ККМ: 001 [22:50:06]line ФМ: 0000000000875009 [22:50:06]line ФД: 76671 [22:50:06]line ФПД: 58141502905042 [22:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225008&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76671&fm=58141502905042&tin=02508201610067®Number=0000000000095696&sum=100000 [22:50:07]Connected sock=11 [22:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 E2 B7 07 01 4E FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 20 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7F 2B 01 00 35 04 06 00 34 E1 1F A0 9A D2 A0 60 8E B9 FA E0 98 80 [22:50:07]written 0, free lines is 4095 [22:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 BA 80 47 00 CC 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 7F 2B 01 00 F4 03 04 00 BF 58 74 66 B6 04 01 00 00 68 D6 82 F2 08 84 4A EA [22:50:07]CommunicateWithHost err = 0 [22:50:07]CheckOFDResponse [22:50:07]1017 (14) - 77093643461234 [22:50:07]1041 (16) - 0000000000875009 [22:50:07]1040 (4) - 76671 [22:50:07]1012 (4) - 20.06.2024 16:28 [22:50:07]1206 (1) - 0 [22:50:07]OFD Sender: Remove packet 76671 [22:50:07]ProducePacketName [22:50:07]name=ofd_packets/00076671 [22:50:07]NVStorageDeleteData [22:50:07]Write to MH i2c: 01 00 00 50 12 62 [22:50:07]Write i2c OK [22:50:07]MH_I2C_Read... [22:50:07]Read from MH i2c: 01 [22:50:07]MH_I2C_Read... [22:50:07]Read from MH i2c: 01 07 00 [22:50:07]MH_I2C_Read... [22:50:07]Read from MH i2c: 01 07 00 50 12 00 00 00 00 00 D0 0C 45 [22:50:07]RasterBufferAndPrint [22:50:07]line [22:50:07]line [22:50:07]line [22:50:07]line [22:50:07]line [22:50:07]written 0, free lines is 3287 [22:50:07]MH_Cut [22:50:07]Write to MH i2c: D1 01 00 57 12 01 3B [22:50:07]Write i2c OK [22:50:07]MH_I2C_Read... [22:50:07]Read from MH i2c: D1 [22:50:07]MH_I2C_Read... [22:50:07]Read from MH i2c: D1 01 00 [22:50:07]MH_I2C_Read... [22:50:07]Read from MH i2c: D1 01 00 57 12 00 3A [22:50:07]Write to MH i2c: 01 00 00 58 12 6A [22:50:07]Write i2c OK [22:50:07]MH_I2C_Read... [22:50:07]OFD Sender: No OFD packet to send [22:50:08]*** Cut start [22:50:08]*** Partial cut [22:50:08]*** CUTSNS_PIN = 1 [22:50:08]*** CUTSNS_PIN = 0 [22:50:08]*** Brake cut motor [22:50:08]Read from MH i2c: 01 [22:50:09]MH_I2C_Read... [22:50:09]*** Stop cut motor [22:50:09]*** Cut end [22:50:09]Read from MH i2c: 01 07 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: 01 07 00 58 12 00 00 00 00 00 FF 0F 7F [22:50:09]process_action close_receipt done [22:50:09]requested_data is exist [22:50:09]produce_requested_data [22:50:09]requested_item fm.sn is exist - process it [22:50:09]wFMCommunicate request_size=4 [22:50:09]MH_SAM_APDU [22:50:09]CAPDU: 80 11 00 00 [22:50:09]Write to MH i2c: E2 08 00 59 12 80 11 00 00 00 00 00 00 E5 [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:09]Read from MH i2c: E2 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 17 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 17 00 59 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 35 [22:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:50:09]wFMCommunicate OK [22:50:09]requested_item fd.num is exist - process it [22:50:09]SAM_PROTO_GetFieldsCounters [22:50:09]wFMCommunicate request_size=4 [22:50:09]MH_SAM_APDU [22:50:09]CAPDU: 80 13 00 00 [22:50:09]Write to MH i2c: E2 08 00 5A 12 80 13 00 00 00 00 00 00 E8 [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:09]Read from MH i2c: E2 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 62 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 62 00 5A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [22:50:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 7F 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:09]wFMCommunicate OK [22:50:09]SAM_PROTO_GetFieldsCounters done [22:50:09]requested_item shift.num is exist - process it [22:50:09]requested_item shift.opened is exist - process it [22:50:09]req_shift_opened [22:50:09]FM_GetShiftState [22:50:09]SAM_PROTO_GetShiftState [22:50:09]wFMCommunicate request_size=4 [22:50:09]MH_SAM_APDU [22:50:09]CAPDU: 80 13 01 00 [22:50:09]Write to MH i2c: E2 08 00 5B 12 80 13 01 00 00 00 00 00 EA [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:09]Read from MH i2c: E2 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 0E 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 0E 00 5B 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C6 [22:50:09]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:50:09]wFMCommunicate OK [22:50:09]SAM_PROTO_GetShiftState done [22:50:09]FM_GetShiftState done [22:50:09]req_shift_opened done [22:50:09]requested_item shift.open_date is exist - process it [22:50:09]req_shift_open_date [22:50:09]req_shift_open_date done [22:50:09]produce_requested_data done [22:50:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76671,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:50:09]process_action_free close_receipt [22:50:09]json_value_free [22:50:09]json_value_free done [22:50:09]process_json_proto returns [22:50:09]Send response to host [22:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76671,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:50:09]free response buf [22:50:09]execute_script done [22:50:09]execute_script returns [22:50:09]free content buf [22:50:09]Sock 9.Close socket [22:50:09]Sock 9.Thread stoped [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:28]accept exits with 10 [22:51:28]New connection [22:51:28]New thread 3066948964 created [22:51:28]Thread 3066805604 joined [22:51:28]Waiting for new connection... [22:51:28] Sock 10.Parse request [22:51:28]Sock 10.Check first char [22:51:28]Sock 10.First char is OK [22:51:28]request: POST /json_proto HTTP/1.0 [22:51:28]Method: POST [22:51:28]URL: /json_proto [22:51:28]Method is POST - this is cgi request [22:51:28]url: /json_proto [22:51:28]query_string will be loaded in cgi processing [22:51:28]execute_cgi json_proto POST (null) [22:51:28]execute_cgi path=json_proto method=POST [22:51:28]POST find Content-Length [22:51:28]Host: 172.17.39.195:8080 [22:51:28]Content-Length: 640 [22:51:28]Content-Type: application/json [22:51:28] [22:51:28]POST finish read [22:51:28]Found Content-Length = 640 [22:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220795", "tax_sys" : 0, "items" : [ { "code": "4650243870685", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:28]execute_script... [22:51: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 : (3)220795", "tax_sys" : 0, "items" : [ { "code": "4650243870685", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:28]POST & json_proto [22:51:28]process_json_proto [22:51:28]json parsed OK: [22:51:28]protocol is kg_v1.0 [22:51:28]action value=close_receipt [22:51:28]process_action close_receipt [22:51:28]cmd_close_receipt [22:51:28]MH_GetDate [22:51:28]Write to MH i2c: F0 00 00 5C 12 5D [22:51:28]Write i2c OK [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: F0 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: F0 09 00 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: F0 09 00 5C 12 00 73 B2 74 66 99 81 91 64 74 [22:51:28]GetLastDocTimeStamp 1718923808 [22:51:28]current date 1718923891 [22:51:28]FM_GetShiftState [22:51:28]SAM_PROTO_GetShiftState [22:51:28]wFMCommunicate request_size=4 [22:51:28]MH_SAM_APDU [22:51:28]CAPDU: 80 13 01 00 [22:51:28]Write to MH i2c: E2 08 00 5D 12 80 13 01 00 00 00 00 00 EC [22:51:28]Write i2c OK [22:51:28]MH_I2C_Read... [22:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:28]Read from MH i2c: E2 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 0E 00 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 0E 00 5D 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 C8 [22:51:28]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:51:28]wFMCommunicate OK [22:51:28]SAM_PROTO_GetShiftState done [22:51:28]FM_GetShiftState done [22:51:28]opened in 1718843774 [22:51:28]opened+sec_in_day 1718930174 [22:51:28]quantity*price = 11000 [22:51:28]sum+1 = 11001 [22:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 113 20.06.2024 22:51 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76672 ФПД: 167187709112742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225131&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76672&fm=167187709112742&tin=02508201610067®Number=0000000000095696&sum=11000 0 [22:51:29]StoreToDocumentArchive [22:51:29]shift 393 fd 76672 [22:51:29]save to /storage/0393/doc_00076672 [22:51:29]save last doc name /storage/0393/doc_00076672 to /storage/kkm_last_doc_name [22:51:29]save OK [22:51:29]Clear old archive folders... [22:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=284 [22:51:29]tlvbuf is 00EDC430 [22:51:29]SAM_PROTO_ClearQueue [22:51:29]wFMCommunicate request_size=4 [22:51:29]MH_SAM_APDU [22:51:29]CAPDU: 80 09 00 00 [22:51:29]Write to MH i2c: E2 08 00 6A 12 80 09 00 00 00 00 00 00 EE [22:51:29]Write i2c OK [22:51:29]MH_I2C_Read... [22:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:29]Read from MH i2c: E2 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: E2 03 00 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: E2 03 00 6A 12 00 90 00 F0 [22:51:29]RAPDU: 90 00 [22:51:29]wFMCommunicate OK [22:51:29]SAM_PROTO_ClearQueue done [22:51:29]KKMCreateOFDPacket [22:51:29]OFDProtocolAddRootSTLVToBuf [22:51:29]FM_MakeSignedData [22:51:29]FM_MakeSignedData [22:51:29]SAM_PROTO_SignData [22:51:29]wFMCommunicate request_size=4 [22:51:29]MH_SAM_APDU [22:51:29]CAPDU: 80 0D 01 02 [22:51:29]Write to MH i2c: E2 08 00 6B 12 80 0D 01 02 00 00 00 00 F6 [22:51:29]Write i2c OK [22:51:29]MH_I2C_Read... [22:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:29]Read from MH i2c: E2 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: E2 03 00 [22:51:29]MH_I2C_Read... [22:51:29]Read from MH i2c: E2 03 00 6B 12 00 90 00 F1 [22:51:29]RAPDU: 90 00 [22:51:29]wFMCommunicate OK [22:51:29]wFMCommunicate request_size=255 [22:51:29]MH_SAM_APDU [22:51:29]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 73 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 [22:51:29]Write to MH i2c: E2 02 01 6C 12 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 73 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 00 00 63 [22:51:29]Write i2c OK [22:51:29]MH_I2C_Read... [22:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:30]Read from MH i2c: E2 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 03 00 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 03 00 6C 12 00 90 00 F2 [22:51:30]RAPDU: 90 00 [22:51:30]wFMCommunicate OK [22:51:30]wFMCommunicate request_size=43 [22:51:30]MH_SAM_APDU [22:51:30]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 80 2B 01 00 35 04 06 00 98 0E 6C 03 31 A6 [22:51:30]Write to MH i2c: E2 2E 00 6D 12 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 80 2B 01 00 35 04 06 00 98 0E 6C 03 31 A6 00 00 76 [22:51:30]Write i2c OK [22:51:30]MH_I2C_Read... [22:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:30]Read from MH i2c: E2 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 03 00 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 03 00 6D 12 00 90 00 F3 [22:51:30]RAPDU: 90 00 [22:51:30]wFMCommunicate OK [22:51:30]wFMCommunicate request_size=4 [22:51:30]MH_SAM_APDU [22:51:30]CAPDU: 80 0D 03 02 [22:51:30]Write to MH i2c: E2 08 00 6E 12 80 0D 03 02 00 00 00 00 FB [22:51:30]Write i2c OK [22:51:30]MH_I2C_Read... [22:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:30]Read from MH i2c: E2 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 0B 00 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 0B 00 6E 12 00 AA 00 48 BC 12 F2 3D 9A 90 00 85 [22:51:30]RAPDU: AA 00 48 BC 12 F2 3D 9A 90 00 [22:51:30]wFMCommunicate OK [22:51:30]SAM_PROTO_SignData done [22:51:30]FM_MakeSignedData done [22:51:30]CreateOFDProtocolMessage [22:51:30]wFMCommunicate request_size=4 [22:51:30]MH_SAM_APDU [22:51:30]CAPDU: 80 11 00 00 [22:51:30]Write to MH i2c: E2 08 00 6F 12 80 11 00 00 00 00 00 00 FB [22:51:30]Write i2c OK [22:51:30]MH_I2C_Read... [22:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:30]Read from MH i2c: E2 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 17 00 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: E2 17 00 6F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 4B [22:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:51:30]wFMCommunicate OK [22:51:30]CreateOFDProtocolMessage done [22:51:30]OFDSenderStorePacket 76672 [22:51:30]StoreOFDPacket docnum=76672 [22:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 30 01 00 00 8C FD 28 01 13 DB 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 73 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 80 2B 01 00 35 04 06 00 98 0E 6C 03 31 A6 AA 00 48 BC 12 F2 3D 9A [22:51:30]CheckFolder [22:51:30]dirname=/storage/ofd_packets [22:51:30]CheckFolder done [22:51:30]ProducePacketName [22:51:30]name=ofd_packets/00076672 [22:51:30]NVStorageSaveData ofd_packets/00076672 [22:51:30]File name is /storage/ofd_packets/00076672 [22:51:30]Write 334 bytes [22:51:30]NVStorageSaveData done [22:51:30]OFDSenderStorePacket done [22:51:30]KKMCreateOFDPacket done [22:51:30]NVStorageSaveData kkm_last_timestamp [22:51:30]File name is /storage/kkm_last_timestamp [22:51:30]Write 4 bytes [22:51:30]NVStorageSaveData done [22:51:30]ExternCall_PrintAddStr [22:51:30]wPrintStart [22:51:30]Write to MH i2c: 01 00 00 70 12 82 [22:51:30]Write i2c OK [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: 01 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: 01 07 00 [22:51:30]MH_I2C_Read... [22:51:30]Read from MH i2c: 01 07 00 70 12 00 00 00 00 00 FF 0F 97 [22:51:30]RasterBufferAndPrint [22:51:30]line Счет N : (3)220795 [22:51:30]line ИНН: 02508201610067 [22:51:30]line Контрольно-Кассовый Чек [22:51:30]line ПРОДАЖА [22:51:30]line Товар: 4650243870685 [22:51:30]line Напиток Gorilla ж/б 0,450л EXTRA [22:51:30]line 1.000 * 110.00 [22:51:30]line = 110.00 [22:51:30]line НДС 12% НСП 1% [22:51:30]line > о реализуемом товаре [22:51:30]line ИТОГО: 110.00 [22:51:30]line НСП 1% : 0.97 [22:51:30]line НДС 12% : 11.68 [22:51:30]line Наличными: 110.00 [22:51:30]line Безнал.: 0.00 [22:51:30]line Место: АЗС № 144 "Партнер Нефть" [22:51:30]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:51:30]line СНО: Общий режим [22:51:30]line Чек 113 20.06.2024 22:51 [22:51:30]line Смена: 393 ФФД: 1.0 [22:51:30]line ЗНМ: 0300000170 [22:51:30]line РНМ: 0000000000095696 [22:51:30]line Версия ККМ: 001 [22:51:30]line ФМ: 0000000000875009 [22:51:30]line ФД: 76672 [22:51:30]line ФПД: 167187709112742 [22:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225131&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76672&fm=167187709112742&tin=02508201610067®Number=0000000000095696&sum=11000 [22:51:30]line 0 [22:51:30]OFD Sender: Processing packet 76672 [packets to send 351, broken 350] [22:51:30]ProducePacketName [22:51:30]name=ofd_packets/00076672 [22:51:30]OFD Sender: To server: pG, [22:51:30]CommunicateWithHost lk.salyk.kg:30040 [22:51:30]ConnectInit lk.salyk.kg [22:51:30]written 0, free lines is 4095 [22:51:30]Connected sock=9 [22:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 30 01 00 00 8C FD 28 01 13 DB 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 36 38 35 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 73 B2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 80 2B 01 00 35 04 06 00 98 0E 6C 03 31 A6 AA 00 48 BC 12 F2 3D 9A [22:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 6B 52 47 00 56 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 80 2B 01 00 F4 03 04 00 13 59 74 66 B6 04 01 00 00 26 26 6D 21 45 1D 3E 42 [22:51:30]CommunicateWithHost err = 0 [22:51:30]CheckOFDResponse [22:51:30]1017 (14) - 77093643461234 [22:51:30]1041 (16) - 0000000000875009 [22:51:30]1040 (4) - 76672 [22:51:30]1012 (4) - 20.06.2024 16:30 [22:51:30]1206 (1) - 0 [22:51:30]OFD Sender: Remove packet 76672 [22:51:30]ProducePacketName [22:51:30]name=ofd_packets/00076672 [22:51:30]NVStorageDeleteData [22:51:31]Write to MH i2c: 01 00 00 99 12 AB [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: 01 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: 01 07 00 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: 01 07 00 99 12 00 00 00 00 00 F3 0C B1 [22:51:31]RasterBufferAndPrint [22:51:31]line [22:51:31]line [22:51:31]line [22:51:31]line [22:51:31]line [22:51:31]written 0, free lines is 3325 [22:51:31]MH_Cut [22:51:31]Write to MH i2c: D1 01 00 A0 12 01 84 [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: D1 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: D1 01 00 [22:51:31]MH_I2C_Read... [22:51:31]Read from MH i2c: D1 01 00 A0 12 00 83 [22:51:31]Write to MH i2c: 01 00 00 A1 12 B3 [22:51:31]Write i2c OK [22:51:31]MH_I2C_Read... [22:51:31]OFD Sender: No OFD packet to send [22:51:31]*** Cut start [22:51:31]*** Partial cut [22:51:31]*** CUTSNS_PIN = 1 [22:51:31]*** CUTSNS_PIN = 0 [22:51:32]*** Brake cut motor [22:51:32]Read from MH i2c: 01 [22:51:32]MH_I2C_Read... [22:51:32]*** Stop cut motor [22:51:32]*** Cut end [22:51:32]Read from MH i2c: 01 07 00 [22:51:32]MH_I2C_Read... [22:51:32]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 00 FF 0F C8 [22:51:32]process_action close_receipt done [22:51:32]requested_data is exist [22:51:32]produce_requested_data [22:51:32]requested_item fm.sn is exist - process it [22:51:32]wFMCommunicate request_size=4 [22:51:32]MH_SAM_APDU [22:51:32]CAPDU: 80 11 00 00 [22:51:32]Write to MH i2c: E2 08 00 A2 12 80 11 00 00 00 00 00 00 2E [22:51:32]Write i2c OK [22:51:32]MH_I2C_Read... [22:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:32]Read from MH i2c: E2 [22:51:32]MH_I2C_Read... [22:51:32]Read from MH i2c: E2 17 00 [22:51:32]MH_I2C_Read... [22:51:32]Read from MH i2c: E2 17 00 A2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7E [22:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:51:32]wFMCommunicate OK [22:51:32]requested_item fd.num is exist - process it [22:51:32]SAM_PROTO_GetFieldsCounters [22:51:32]wFMCommunicate request_size=4 [22:51:32]MH_SAM_APDU [22:51:32]CAPDU: 80 13 00 00 [22:51:32]Write to MH i2c: E2 08 00 A3 12 80 13 00 00 00 00 00 00 31 [22:51:32]Write i2c OK [22:51:32]MH_I2C_Read... [22:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:32]Read from MH i2c: E2 [22:51:32]MH_I2C_Read... [22:51:32]Read from MH i2c: E2 62 00 [22:51:32]MH_I2C_Read... [22:51:32]Read from MH i2c: E2 62 00 A3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 80 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [22:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 80 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:32]wFMCommunicate OK [22:51:32]SAM_PROTO_GetFieldsCounters done [22:51:32]requested_item shift.num is exist - process it [22:51:32]requested_item shift.opened is exist - process it [22:51:32]req_shift_opened [22:51:32]FM_GetShiftState [22:51:32]SAM_PROTO_GetShiftState [22:51:32]wFMCommunicate request_size=4 [22:51:32]MH_SAM_APDU [22:51:32]CAPDU: 80 13 01 00 [22:51:32]Write to MH i2c: E2 08 00 A4 12 80 13 01 00 00 00 00 00 33 [22:51:32]Write i2c OK [22:51:32]MH_I2C_Read... [22:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:32]Read from MH i2c: E2 [22:51:32]MH_I2C_Read... [22:51:32]Read from MH i2c: E2 0E 00 [22:51:32]MH_I2C_Read... [22:51:32]Read from MH i2c: E2 0E 00 A4 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 0F [22:51:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:51:32]wFMCommunicate OK [22:51:32]SAM_PROTO_GetShiftState done [22:51:32]FM_GetShiftState done [22:51:32]req_shift_opened done [22:51:32]requested_item shift.open_date is exist - process it [22:51:32]req_shift_open_date [22:51:32]req_shift_open_date done [22:51:32]produce_requested_data done [22:51:32]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76672,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:51:32]process_action_free close_receipt [22:51:32]json_value_free [22:51:32]json_value_free done [22:51:32]process_json_proto returns [22:51:32]Send response to host [22:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76672,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:51:32]free response buf [22:51:32]execute_script done [22:51:32]execute_script returns [22:51:32]free content buf [22:51:32]Sock 10.Close socket [22:51:32]Sock 10.Thread stoped [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:09]accept exits with 7 [22:54:09]New connection [22:54:09]New thread 3066805604 created [22:54:09]Thread 3066948964 joined [22:54:09]Waiting for new connection... [22:54:09] Sock 7.Parse request [22:54:09]Sock 7.Check first char [22:54:09]Sock 7.First char is OK [22:54:09]request: POST /json_proto HTTP/1.0 [22:54:09]Method: POST [22:54:09]URL: /json_proto [22:54:09]Method is POST - this is cgi request [22:54:09]url: /json_proto [22:54:09]query_string will be loaded in cgi processing [22:54:09]execute_cgi json_proto POST (null) [22:54:09]execute_cgi path=json_proto method=POST [22:54:09]POST find Content-Length [22:54:09]Host: 172.17.39.195:8080 [22:54:09]Content-Length: 678 [22:54:09]Content-Type: application/json [22:54:09] [22:54:09]POST finish read [22:54:09]Found Content-Length = 678 [22:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693481", "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.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:09]execute_script... [22:54: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)1693481", "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.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:09]POST & json_proto [22:54:09]process_json_proto [22:54:09]json parsed OK: [22:54:09]protocol is kg_v1.0 [22:54:09]action value=close_receipt [22:54:09]process_action close_receipt [22:54:09]cmd_close_receipt [22:54:09]MH_GetDate [22:54:09]Write to MH i2c: F0 00 00 A5 12 A6 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: F0 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: F0 09 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: F0 09 00 A5 12 00 14 B3 74 66 99 81 91 64 5F [22:54:09]GetLastDocTimeStamp 1718923891 [22:54:09]current date 1718924052 [22:54:09]FM_GetShiftState [22:54:09]SAM_PROTO_GetShiftState [22:54:09]wFMCommunicate request_size=4 [22:54:09]MH_SAM_APDU [22:54:09]CAPDU: 80 13 01 00 [22:54:09]Write to MH i2c: E2 08 00 A6 12 80 13 01 00 00 00 00 00 35 [22:54:09]Write i2c OK [22:54:09]MH_I2C_Read... [22:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:09]Read from MH i2c: E2 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 0E 00 [22:54:09]MH_I2C_Read... [22:54:09]Read from MH i2c: E2 0E 00 A6 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 11 [22:54:09]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:54:09]wFMCommunicate OK [22:54:09]SAM_PROTO_GetShiftState done [22:54:09]FM_GetShiftState done [22:54:09]opened in 1718843774 [22:54:09]opened+sec_in_day 1718930174 [22:54:09]quantity*price = 14010 [22:54:09]sum+1 = 14011 [22:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 114 20.06.2024 22:54 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76673 ФПД: 227479951804654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225413&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76673&fm=227479951804654&tin=02508201610067®Number=0000000000095696&sum=14000 [22:54:10]StoreToDocumentArchive [22:54:10]shift 393 fd 76673 [22:54:10]save to /storage/0393/doc_00076673 [22:54:10]save last doc name /storage/0393/doc_00076673 to /storage/kkm_last_doc_name [22:54:10]save OK [22:54:10]Clear old archive folders... [22:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:10]tlvbuf is 00F32880 [22:54:10]SAM_PROTO_ClearQueue [22:54:10]wFMCommunicate request_size=4 [22:54:10]MH_SAM_APDU [22:54:10]CAPDU: 80 09 00 00 [22:54:10]Write to MH i2c: E2 08 00 B3 12 80 09 00 00 00 00 00 00 37 [22:54:10]Write i2c OK [22:54:10]MH_I2C_Read... [22:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:10]Read from MH i2c: E2 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: E2 03 00 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [22:54:10]RAPDU: 90 00 [22:54:10]wFMCommunicate OK [22:54:10]SAM_PROTO_ClearQueue done [22:54:10]KKMCreateOFDPacket [22:54:10]OFDProtocolAddRootSTLVToBuf [22:54:10]FM_MakeSignedData [22:54:10]FM_MakeSignedData [22:54:10]SAM_PROTO_SignData [22:54:10]wFMCommunicate request_size=4 [22:54:10]MH_SAM_APDU [22:54:10]CAPDU: 80 0D 01 02 [22:54:10]Write to MH i2c: E2 08 00 B4 12 80 0D 01 02 00 00 00 00 3F [22:54:10]Write i2c OK [22:54:10]MH_I2C_Read... [22:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:10]Read from MH i2c: E2 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: E2 03 00 [22:54:10]MH_I2C_Read... [22:54:10]Read from MH i2c: E2 03 00 B4 12 00 90 00 3A [22:54:10]RAPDU: 90 00 [22:54:10]wFMCommunicate OK [22:54:10]wFMCommunicate request_size=255 [22:54:10]MH_SAM_APDU [22:54: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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 15 B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 81 2B 01 00 35 04 06 00 CE [22:54:10]Write to MH i2c: E2 02 01 B5 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 15 B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 81 2B 01 00 35 04 06 00 CE 00 00 C5 [22:54:10]Write i2c OK [22:54:10]MH_I2C_Read... [22:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:11]Read from MH i2c: E2 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 03 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 03 00 B5 12 00 90 00 3B [22:54:11]RAPDU: 90 00 [22:54:11]wFMCommunicate OK [22:54:11]wFMCommunicate request_size=10 [22:54:11]MH_SAM_APDU [22:54:11]CAPDU: 80 0D 02 02 05 E4 4D B8 88 EE [22:54:11]Write to MH i2c: E2 0D 00 B6 12 80 0D 02 02 05 00 E4 4D B8 88 EE 00 00 AB [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:11]Read from MH i2c: E2 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 03 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 03 00 B6 12 00 90 00 3C [22:54:11]RAPDU: 90 00 [22:54:11]wFMCommunicate OK [22:54:11]wFMCommunicate request_size=4 [22:54:11]MH_SAM_APDU [22:54:11]CAPDU: 80 0D 03 02 [22:54:11]Write to MH i2c: E2 08 00 B7 12 80 0D 03 02 00 00 00 00 44 [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:11]Read from MH i2c: E2 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 0B 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: E2 0B 00 B7 12 00 66 8A 7D 10 E1 E5 01 09 90 00 92 [22:54:11]RAPDU: 66 8A 7D 10 E1 E5 01 09 90 00 [22:54:11]wFMCommunicate OK [22:54:11]SAM_PROTO_SignData done [22:54:11]FM_MakeSignedData done [22:54:11]CreateOFDProtocolMessage [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 B8 12 80 11 00 00 00 00 00 00 44 [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]Read from MH i2c: E2 17 00 B8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 94 [22:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:54:11]wFMCommunicate OK [22:54:11]CreateOFDProtocolMessage done [22:54:11]OFDSenderStorePacket 76673 [22:54:11]StoreOFDPacket docnum=76673 [22:54:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 86 43 07 01 3B A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 15 B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 81 2B 01 00 35 04 06 00 CE E4 4D B8 88 EE 66 8A 7D 10 E1 E5 01 09 [22:54:11]CheckFolder [22:54:11]dirname=/storage/ofd_packets [22:54:11]CheckFolder done [22:54:11]ProducePacketName [22:54:11]name=ofd_packets/00076673 [22:54:11]NVStorageSaveData ofd_packets/00076673 [22:54:11]File name is /storage/ofd_packets/00076673 [22:54:11]Write 301 bytes [22:54:11]NVStorageSaveData done [22:54:11]OFDSenderStorePacket done [22:54:11]KKMCreateOFDPacket done [22:54:11]NVStorageSaveData kkm_last_timestamp [22:54:11]File name is /storage/kkm_last_timestamp [22:54:11]Write 4 bytes [22:54:11]NVStorageSaveData done [22:54:11]ExternCall_PrintAddStr [22:54:11]wPrintStart [22:54:11]Write to MH i2c: 01 00 00 B9 12 CB [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: 01 [22:54:11]MH_I2C_Read... [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 B9 12 00 00 00 00 00 FF 0F E0 [22:54:11]RasterBufferAndPrint [22:54:11]line Счет N : (1)1693481 [22:54:11]line ИНН: 02508201610067 [22:54:11]line Контрольно-Кассовый Чек [22:54:11]line ПРОДАЖА [22:54:11]line ТРК (МРК, ГНК) : 53 [22:54:11]line Товар: 2710124130 [22:54:11]line Аи-92-К-5 [22:54:11]line 2.110 * 66.40 [22:54:11]line = 140.10 [22:54:11]line НДС 12% НСП 1% [22:54:11]line > о реализуемом товаре [22:54:11]line ОКРУГЛЕНИЕ: -0.10 [22:54:11]line ИТОГО: 140.00 [22:54:11]line Внесено: 140.00 [22:54:11]line СДАЧА: 0.00 [22:54:11]line НСП 1% : 1.24 [22:54:11]line НДС 12% : 14.88 [22:54:11]line Наличными: 140.00 [22:54:11]line Безнал.: 0.00 [22:54:11]line Место: АЗС № 144 "Партнер Нефть" [22:54:11]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:54:11]line СНО: Общий режим [22:54:11]line Чек 114 20.06.2024 22:54 [22:54:11]line Смена: 393 ФФД: 1.0 [22:54:11]line ЗНМ: 0300000170 [22:54:11]line РНМ: 0000000000095696 [22:54:11]line Версия ККМ: 001 [22:54:11]line ФМ: 0000000000875009 [22:54:11]line ФД: 76673 [22:54:11]line ФПД: 227479951804654 [22:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225413&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76673&fm=227479951804654&tin=02508201610067®Number=0000000000095696&sum=14000 [22:54:11]OFD Sender: Processing packet 76673 [packets to send 351, broken 350] [22:54:11]ProducePacketName [22:54:11]name=ofd_packets/00076673 [22:54:11]OFD Sender: To server: pG, [22:54:11]CommunicateWithHost lk.salyk.kg:30040 [22:54:11]ConnectInit lk.salyk.kg [22:54:11]written 0, free lines is 4095 [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 30 38 37 35 30 30 39 0F 01 00 00 86 43 07 01 3B A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 15 B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 81 2B 01 00 35 04 06 00 CE E4 4D B8 88 EE 66 8A 7D 10 E1 E5 01 09 [22:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D4 3C 47 00 53 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 81 2B 01 00 F4 03 04 00 B4 59 74 66 B6 04 01 00 00 8F 71 6B 75 BA 33 5E 5E [22:54:11]CommunicateWithHost err = 0 [22:54:11]CheckOFDResponse [22:54:11]1017 (14) - 77093643461234 [22:54:11]1041 (16) - 0000000000875009 [22:54:11]1040 (4) - 76673 [22:54:11]1012 (4) - 20.06.2024 16:32 [22:54:11]1206 (1) - 0 [22:54:11]OFD Sender: Remove packet 76673 [22:54:11]ProducePacketName [22:54:11]name=ofd_packets/00076673 [22:54:11]NVStorageDeleteData [22:54:11]Write to MH i2c: 01 00 00 E4 12 F6 [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: 01 [22:54:11]MH_I2C_Read... [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 E4 12 00 00 00 00 00 E4 0C ED [22:54:11]RasterBufferAndPrint [22:54:11]line [22:54:11]line [22:54:11]line [22:54:11]line [22:54:11]line [22:54:11]written 0, free lines is 3306 [22:54:11]MH_Cut [22:54:11]Write to MH i2c: D1 01 00 EB 12 01 CF [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: D1 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: D1 01 00 [22:54:11]MH_I2C_Read... [22:54:11]Read from MH i2c: D1 01 00 EB 12 00 CE [22:54:11]Write to MH i2c: 01 00 00 EC 12 FE [22:54:11]Write i2c OK [22:54:11]MH_I2C_Read... [22:54:12]OFD Sender: No OFD packet to send [22:54:12]*** Cut start [22:54:12]*** Partial cut [22:54:12]*** CUTSNS_PIN = 1 [22:54:12]*** CUTSNS_PIN = 0 [22:54:12]*** Brake cut motor [22:54:13]Read from MH i2c: 01 [22:54:13]MH_I2C_Read... [22:54:13]*** Stop cut motor [22:54:13]*** Cut end [22:54:13]Read from MH i2c: 01 07 00 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: 01 07 00 EC 12 00 00 00 00 00 FF 0F 13 [22:54:13]process_action close_receipt done [22:54:13]requested_data is exist [22:54:13]produce_requested_data [22:54:13]requested_item fm.sn is exist - process it [22:54:13]wFMCommunicate request_size=4 [22:54:13]MH_SAM_APDU [22:54:13]CAPDU: 80 11 00 00 [22:54:13]Write to MH i2c: E2 08 00 ED 12 80 11 00 00 00 00 00 00 79 [22:54:13]Write i2c OK [22:54:13]MH_I2C_Read... [22:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:13]Read from MH i2c: E2 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: E2 17 00 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: E2 17 00 ED 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C9 [22:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:54:13]wFMCommunicate OK [22:54:13]requested_item fd.num is exist - process it [22:54:13]SAM_PROTO_GetFieldsCounters [22:54:13]wFMCommunicate request_size=4 [22:54:13]MH_SAM_APDU [22:54:13]CAPDU: 80 13 00 00 [22:54:13]Write to MH i2c: E2 08 00 EE 12 80 13 00 00 00 00 00 00 7C [22:54:13]Write i2c OK [22:54:13]MH_I2C_Read... [22:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:13]Read from MH i2c: E2 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: E2 62 00 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: E2 62 00 EE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 81 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [22:54:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 81 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:13]wFMCommunicate OK [22:54:13]SAM_PROTO_GetFieldsCounters done [22:54:13]requested_item shift.num is exist - process it [22:54:13]requested_item shift.opened is exist - process it [22:54:13]req_shift_opened [22:54:13]FM_GetShiftState [22:54:13]SAM_PROTO_GetShiftState [22:54:13]wFMCommunicate request_size=4 [22:54:13]MH_SAM_APDU [22:54:13]CAPDU: 80 13 01 00 [22:54:13]Write to MH i2c: E2 08 00 EF 12 80 13 01 00 00 00 00 00 7E [22:54:13]Write i2c OK [22:54:13]MH_I2C_Read... [22:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:13]Read from MH i2c: E2 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: E2 0E 00 [22:54:13]MH_I2C_Read... [22:54:13]Read from MH i2c: E2 0E 00 EF 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5A [22:54:13]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:54:13]wFMCommunicate OK [22:54:13]SAM_PROTO_GetShiftState done [22:54:13]FM_GetShiftState done [22:54:13]req_shift_opened done [22:54:13]requested_item shift.open_date is exist - process it [22:54:13]req_shift_open_date [22:54:13]req_shift_open_date done [22:54:13]produce_requested_data done [22:54:13]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76673,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:54:13]process_action_free close_receipt [22:54:13]json_value_free [22:54:13]json_value_free done [22:54:13]process_json_proto returns [22:54:13]Send response to host [22:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76673,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:54:13]free response buf [22:54:13]execute_script done [22:54:13]execute_script returns [22:54:13]free content buf [22:54:13]Sock 7.Close socket [22:54:13]Sock 7.Thread stoped [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:49]accept exits with 10 [22:54:49]New connection [22:54:49]New thread 3066948964 created [22:54:49]Thread 3066805604 joined [22:54:49]Waiting for new connection... [22:54:49] Sock 10.Parse request [22:54:49]Sock 10.Check first char [22:54:49]Sock 10.First char is OK [22:54:49]request: POST /json_proto HTTP/1.0 [22:54:49]Method: POST [22:54:49]URL: /json_proto [22:54:49]Method is POST - this is cgi request [22:54:49]url: /json_proto [22:54:49]query_string will be loaded in cgi processing [22:54:49]execute_cgi json_proto POST (null) [22:54:49]execute_cgi path=json_proto method=POST [22:54:49]POST find Content-Length [22:54:49]Host: 172.17.39.195:8080 [22:54:49]Content-Length: 678 [22:54:49]Content-Type: application/json [22:54:49] [22:54:49]POST finish read [22:54:49]Found Content-Length = 678 [22:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1693482", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:49]execute_script... [22:54: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)1693482", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:49]POST & json_proto [22:54:49]process_json_proto [22:54:49]json parsed OK: [22:54:49]protocol is kg_v1.0 [22:54:49]action value=close_receipt [22:54:49]process_action close_receipt [22:54:49]cmd_close_receipt [22:54:49]MH_GetDate [22:54:49]Write to MH i2c: F0 00 00 F0 12 F1 [22:54:49]Write i2c OK [22:54:49]MH_I2C_Read... [22:54:49]Read from MH i2c: F0 [22:54:49]MH_I2C_Read... [22:54:49]Read from MH i2c: F0 09 00 [22:54:49]MH_I2C_Read... [22:54:49]Read from MH i2c: F0 09 00 F0 12 00 3D B3 74 66 99 81 91 64 D3 [22:54:49]GetLastDocTimeStamp 1718924053 [22:54:49]current date 1718924093 [22:54:49]FM_GetShiftState [22:54:49]SAM_PROTO_GetShiftState [22:54:49]wFMCommunicate request_size=4 [22:54:49]MH_SAM_APDU [22:54:49]CAPDU: 80 13 01 00 [22:54:49]Write to MH i2c: E2 08 00 F1 12 80 13 01 00 00 00 00 00 80 [22:54:49]Write i2c OK [22:54:49]MH_I2C_Read... [22:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:49]Read from MH i2c: E2 [22:54:49]MH_I2C_Read... [22:54:49]Read from MH i2c: E2 0E 00 [22:54:49]MH_I2C_Read... [22:54:49]Read from MH i2c: E2 0E 00 F1 12 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5C [22:54:49]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:54:49]wFMCommunicate OK [22:54:49]SAM_PROTO_GetShiftState done [22:54:49]FM_GetShiftState done [22:54:49]opened in 1718843774 [22:54:49]opened+sec_in_day 1718930174 [22:54:49]quantity*price = 20052 [22:54:49]sum+1 = 20054 [22:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 115 20.06.2024 22:54 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76674 ФПД: 194322548918124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225453&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76674&fm=194322548918124&tin=02508201610067®Number=0000000000095696&sum=20000 [22:54:51]StoreToDocumentArchive [22:54:51]shift 393 fd 76674 [22:54:51]save to /storage/0393/doc_00076674 [22:54:51]save last doc name /storage/0393/doc_00076674 to /storage/kkm_last_doc_name [22:54:51]save OK [22:54:51]Clear old archive folders... [22:54:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:51]tlvbuf is 00F321C0 [22:54:51]SAM_PROTO_ClearQueue [22:54:51]wFMCommunicate request_size=4 [22:54:51]MH_SAM_APDU [22:54:51]CAPDU: 80 09 00 00 [22:54:51]Write to MH i2c: E2 08 00 FE 12 80 09 00 00 00 00 00 00 82 [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:51]Read from MH i2c: E2 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 FE 12 00 90 00 84 [22:54:51]RAPDU: 90 00 [22:54:51]wFMCommunicate OK [22:54:51]SAM_PROTO_ClearQueue done [22:54:51]KKMCreateOFDPacket [22:54:51]OFDProtocolAddRootSTLVToBuf [22:54:51]FM_MakeSignedData [22:54:51]FM_MakeSignedData [22:54:51]SAM_PROTO_SignData [22:54:51]wFMCommunicate request_size=4 [22:54:51]MH_SAM_APDU [22:54:51]CAPDU: 80 0D 01 02 [22:54:51]Write to MH i2c: E2 08 00 FF 12 80 0D 01 02 00 00 00 00 8A [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:51]Read from MH i2c: E2 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 FF 12 00 90 00 85 [22:54:51]RAPDU: 90 00 [22:54:51]wFMCommunicate OK [22:54:51]wFMCommunicate request_size=255 [22:54:51]MH_SAM_APDU [22:54:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 73 00 00 00 F4 03 04 00 3D B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 82 2B 01 00 35 04 06 00 B0 [22:54:51]Write to MH i2c: E2 02 01 00 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 73 00 00 00 F4 03 04 00 3D B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 82 2B 01 00 35 04 06 00 B0 00 00 2A [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:51]Read from MH i2c: E2 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 00 13 00 90 00 87 [22:54:51]RAPDU: 90 00 [22:54:51]wFMCommunicate OK [22:54:51]wFMCommunicate request_size=10 [22:54:51]MH_SAM_APDU [22:54:51]CAPDU: 80 0D 02 02 05 BC 3E 80 07 6C [22:54:51]Write to MH i2c: E2 0D 00 01 13 80 0D 02 02 05 00 BC 3E 80 07 6C 00 00 85 [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:51]Read from MH i2c: E2 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 03 00 01 13 00 90 00 88 [22:54:51]RAPDU: 90 00 [22:54:51]wFMCommunicate OK [22:54:51]wFMCommunicate request_size=4 [22:54:51]MH_SAM_APDU [22:54:51]CAPDU: 80 0D 03 02 [22:54:51]Write to MH i2c: E2 08 00 02 13 80 0D 03 02 00 00 00 00 90 [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:51]Read from MH i2c: E2 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 0B 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 0B 00 02 13 00 BB 54 CA 04 93 15 C0 60 90 00 36 [22:54:51]RAPDU: BB 54 CA 04 93 15 C0 60 90 00 [22:54:51]wFMCommunicate OK [22:54:51]SAM_PROTO_SignData done [22:54:51]FM_MakeSignedData done [22:54:51]CreateOFDProtocolMessage [22:54:51]wFMCommunicate request_size=4 [22:54:51]MH_SAM_APDU [22:54:51]CAPDU: 80 11 00 00 [22:54:51]Write to MH i2c: E2 08 00 03 13 80 11 00 00 00 00 00 00 90 [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:51]Read from MH i2c: E2 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 17 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: E2 17 00 03 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E0 [22:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:54:51]wFMCommunicate OK [22:54:51]CreateOFDProtocolMessage done [22:54:51]OFDSenderStorePacket 76674 [22:54:51]StoreOFDPacket docnum=76674 [22:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 B9 E9 07 01 6D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 73 00 00 00 F4 03 04 00 3D B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 82 2B 01 00 35 04 06 00 B0 BC 3E 80 07 6C BB 54 CA 04 93 15 C0 60 [22:54:51]CheckFolder [22:54:51]dirname=/storage/ofd_packets [22:54:51]CheckFolder done [22:54:51]ProducePacketName [22:54:51]name=ofd_packets/00076674 [22:54:51]NVStorageSaveData ofd_packets/00076674 [22:54:51]File name is /storage/ofd_packets/00076674 [22:54:51]Write 301 bytes [22:54:51]NVStorageSaveData done [22:54:51]OFDSenderStorePacket done [22:54:51]KKMCreateOFDPacket done [22:54:51]NVStorageSaveData kkm_last_timestamp [22:54:51]File name is /storage/kkm_last_timestamp [22:54:51]Write 4 bytes [22:54:51]NVStorageSaveData done [22:54:51]ExternCall_PrintAddStr [22:54:51]wPrintStart [22:54:51]Write to MH i2c: 01 00 00 04 13 17 [22:54:51]Write i2c OK [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: 01 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: 01 07 00 [22:54:51]MH_I2C_Read... [22:54:51]Read from MH i2c: 01 07 00 04 13 00 00 00 00 00 FF 0F 2C [22:54:51]RasterBufferAndPrint [22:54:51]line Счет N : (1)1693482 [22:54:51]line ИНН: 02508201610067 [22:54:51]line Контрольно-Кассовый Чек [22:54:51]line ПРОДАЖА [22:54:51]line ТРК (МРК, ГНК) : 53 [22:54:51]line Товар: 2710124130 [22:54:51]line Аи-92-К-5 [22:54:51]line 3.020 * 66.40 [22:54:51]line = 200.53 [22:54:51]line НДС 12% НСП 1% [22:54:51]line > о реализуемом товаре [22:54:51]line ОКРУГЛЕНИЕ: -0.53 [22:54:51]line ИТОГО: 200.00 [22:54:51]line Внесено: 200.00 [22:54:51]line СДАЧА: 0.00 [22:54:51]line НСП 1% : 1.77 [22:54:51]line НДС 12% : 21.29 [22:54:51]line Наличными: 200.00 [22:54:51]line Безнал.: 0.00 [22:54:51]line Место: АЗС № 144 "Партнер Нефть" [22:54:51]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:54:51]line СНО: Общий режим [22:54:51]line Чек 115 20.06.2024 22:54 [22:54:51]line Смена: 393 ФФД: 1.0 [22:54:51]line ЗНМ: 0300000170 [22:54:51]line РНМ: 0000000000095696 [22:54:51]line Версия ККМ: 001 [22:54:51]line ФМ: 0000000000875009 [22:54:51]line ФД: 76674 [22:54:51]line ФПД: 194322548918124 [22:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225453&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76674&fm=194322548918124&tin=02508201610067®Number=0000000000095696&sum=20000 [22:54:51]OFD Sender: Processing packet 76674 [packets to send 351, broken 350] [22:54:51]ProducePacketName [22:54:51]name=ofd_packets/00076674 [22:54:51]OFD Sender: To server: pG, [22:54:51]CommunicateWithHost lk.salyk.kg:30040 [22:54:51]ConnectInit lk.salyk.kg [22:54:51]written 0, free lines is 4095 [22:54:52]Write to MH i2c: 01 00 00 2F 13 42 [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: 01 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: 01 07 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: 01 07 00 2F 13 00 00 00 00 00 D0 0C 25 [22:54:52]RasterBufferAndPrint [22:54:52]line [22:54:52]line [22:54:52]line [22:54:52]line [22:54:52]line [22:54:52]written 0, free lines is 3284 [22:54:52]MH_Cut [22:54:52]Write to MH i2c: D1 01 00 36 13 01 1B [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: D1 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: D1 01 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: D1 01 00 36 13 00 1A [22:54:52]Write to MH i2c: 01 00 00 37 13 4A [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:53]*** Cut start [22:54:53]*** Partial cut [22:54:53]*** CUTSNS_PIN = 1 [22:54:53]*** CUTSNS_PIN = 0 [22:54:53]Connected sock=11 [22:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 B9 E9 07 01 6D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 73 00 00 00 F4 03 04 00 3D B3 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 82 2B 01 00 35 04 06 00 B0 BC 3E 80 07 6C BB 54 CA 04 93 15 C0 60 [22:54:53]*** Brake cut motor [22:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B4 8B 47 00 7C 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 82 2B 01 00 F4 03 04 00 DD 59 74 66 B6 04 01 00 00 47 7A EC 5B E1 B2 B6 BB [22:54:53]CommunicateWithHost err = 0 [22:54:53]CheckOFDResponse [22:54:53]1017 (14) - 77093643461234 [22:54:53]1041 (16) - 0000000000875009 [22:54:53]1040 (4) - 76674 [22:54:53]1012 (4) - 20.06.2024 16:33 [22:54:53]1206 (1) - 0 [22:54:53]OFD Sender: Remove packet 76674 [22:54:53]ProducePacketName [22:54:53]name=ofd_packets/00076674 [22:54:53]NVStorageDeleteData [22:54:53]Read from MH i2c: 01 [22:54:53]MH_I2C_Read... [22:54:53]*** Stop cut motor [22:54:53]*** Cut end [22:54:53]Read from MH i2c: 01 07 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 FF 0F 5F [22:54:53]process_action close_receipt done [22:54:53]requested_data is exist [22:54:53]produce_requested_data [22:54:53]requested_item fm.sn is exist - process it [22:54:53]wFMCommunicate request_size=4 [22:54:53]MH_SAM_APDU [22:54:53]CAPDU: 80 11 00 00 [22:54:53]Write to MH i2c: E2 08 00 38 13 80 11 00 00 00 00 00 00 C5 [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:53]Read from MH i2c: E2 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 17 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 17 00 38 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 15 [22:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:54:53]wFMCommunicate OK [22:54:53]requested_item fd.num is exist - process it [22:54:53]SAM_PROTO_GetFieldsCounters [22:54:53]wFMCommunicate request_size=4 [22:54:53]MH_SAM_APDU [22:54:53]CAPDU: 80 13 00 00 [22:54:53]Write to MH i2c: E2 08 00 39 13 80 13 00 00 00 00 00 00 C8 [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]OFD Sender: No OFD packet to send [22:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:53]Read from MH i2c: E2 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 62 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 62 00 39 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 82 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:54:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 82 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:53]wFMCommunicate OK [22:54:53]SAM_PROTO_GetFieldsCounters done [22:54:53]requested_item shift.num is exist - process it [22:54:53]requested_item shift.opened is exist - process it [22:54:53]req_shift_opened [22:54:53]FM_GetShiftState [22:54:53]SAM_PROTO_GetShiftState [22:54:53]wFMCommunicate request_size=4 [22:54:53]MH_SAM_APDU [22:54:53]CAPDU: 80 13 01 00 [22:54:53]Write to MH i2c: E2 08 00 3A 13 80 13 01 00 00 00 00 00 CA [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:54]Read from MH i2c: E2 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 0E 00 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 0E 00 3A 13 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A6 [22:54:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [22:54:54]wFMCommunicate OK [22:54:54]SAM_PROTO_GetShiftState done [22:54:54]FM_GetShiftState done [22:54:54]req_shift_opened done [22:54:54]requested_item shift.open_date is exist - process it [22:54:54]req_shift_open_date [22:54:54]req_shift_open_date done [22:54:54]produce_requested_data done [22:54:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76674,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [22:54:54]process_action_free close_receipt [22:54:54]json_value_free [22:54:54]json_value_free done [22:54:54]process_json_proto returns [22:54:54]Send response to host [22:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76674,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [22:54:54]free response buf [22:54:54]execute_script done [22:54:54]execute_script returns [22:54:54]free content buf [22:54:54]Sock 10.Close socket [22:54:54]Sock 10.Thread stoped [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]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:35]OFD Sender: No OFD packet to send [23:08:37]accept exits with 7 [23:08:37]New connection [23:08:37]New thread 3066805604 created [23:08:37]Thread 3066948964 joined [23:08:37]Waiting for new connection... [23:08:37] Sock 7.Parse request [23:08:37]Sock 7.Check first char [23:08:37]Sock 7.First char is OK [23:08:37]request: POST /json_proto HTTP/1.0 [23:08:37]Method: POST [23:08:37]URL: /json_proto [23:08:37]Method is POST - this is cgi request [23:08:37]url: /json_proto [23:08:37]query_string will be loaded in cgi processing [23:08:37]execute_cgi json_proto POST (null) [23:08:37]execute_cgi path=json_proto method=POST [23:08:37]POST find Content-Length [23:08:37]Host: 172.17.39.195:8080 [23:08:37]Content-Length: 657 [23:08:37]Content-Type: application/json [23:08:37] [23:08:37]POST finish read [23:08:37]Found Content-Length = 657 [23:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220796", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 2.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:37]execute_script... [23:08: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 : (3)220796", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 2.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:37]POST & json_proto [23:08:37]process_json_proto [23:08:37]json parsed OK: [23:08:37]protocol is kg_v1.0 [23:08:37]action value=close_receipt [23:08:37]process_action close_receipt [23:08:37]cmd_close_receipt [23:08:37]MH_GetDate [23:08:37]Write to MH i2c: F0 00 00 3B 13 3D [23:08:37]Write i2c OK [23:08:37]MH_I2C_Read... [23:08:37]Read from MH i2c: F0 [23:08:37]MH_I2C_Read... [23:08:37]Read from MH i2c: F0 09 00 [23:08:37]MH_I2C_Read... [23:08:37]Read from MH i2c: F0 09 00 3B 13 00 79 B6 74 66 99 81 91 64 5E [23:08:37]GetLastDocTimeStamp 1718924093 [23:08:37]current date 1718924921 [23:08:37]FM_GetShiftState [23:08:37]SAM_PROTO_GetShiftState [23:08:37]wFMCommunicate request_size=4 [23:08:37]MH_SAM_APDU [23:08:37]CAPDU: 80 13 01 00 [23:08:37]Write to MH i2c: E2 08 00 3C 13 80 13 01 00 00 00 00 00 CC [23:08:37]Write i2c OK [23:08:37]MH_I2C_Read... [23:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:37]Read from MH i2c: E2 [23:08:37]MH_I2C_Read... [23:08:37]Read from MH i2c: E2 0E 00 [23:08:37]MH_I2C_Read... [23:08:37]Read from MH i2c: E2 0E 00 3C 13 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 A8 [23:08:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:08:37]wFMCommunicate OK [23:08:37]SAM_PROTO_GetShiftState done [23:08:37]FM_GetShiftState done [23:08:37]opened in 1718843774 [23:08:37]opened+sec_in_day 1718930174 [23:08:37]quantity*price = 14400 [23:08:37]sum+1 = 14401 [23:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 116 20.06.2024 23:08 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76675 ФПД: 130974572392017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T230841&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76675&fm=130974572392017&tin=02508201610067®Number=0000000000095696&sum=14400 0 [23:08:38]StoreToDocumentArchive [23:08:38]shift 393 fd 76675 [23:08:38]save to /storage/0393/doc_00076675 [23:08:38]save last doc name /storage/0393/doc_00076675 to /storage/kkm_last_doc_name [23:08:38]save OK [23:08:38]Clear old archive folders... [23:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=294 [23:08:38]tlvbuf is 00EC1240 [23:08:38]SAM_PROTO_ClearQueue [23:08:38]wFMCommunicate request_size=4 [23:08:38]MH_SAM_APDU [23:08:38]CAPDU: 80 09 00 00 [23:08:38]Write to MH i2c: E2 08 00 49 13 80 09 00 00 00 00 00 00 CE [23:08:38]Write i2c OK [23:08:38]MH_I2C_Read... [23:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:38]Read from MH i2c: E2 [23:08:38]MH_I2C_Read... [23:08:38]Read from MH i2c: E2 03 00 [23:08:38]MH_I2C_Read... [23:08:38]Read from MH i2c: E2 03 00 49 13 00 90 00 D0 [23:08:38]RAPDU: 90 00 [23:08:38]wFMCommunicate OK [23:08:38]SAM_PROTO_ClearQueue done [23:08:38]KKMCreateOFDPacket [23:08:38]OFDProtocolAddRootSTLVToBuf [23:08:38]FM_MakeSignedData [23:08:38]FM_MakeSignedData [23:08:38]SAM_PROTO_SignData [23:08:38]wFMCommunicate request_size=4 [23:08:38]MH_SAM_APDU [23:08:38]CAPDU: 80 0D 01 02 [23:08:38]Write to MH i2c: E2 08 00 4A 13 80 0D 01 02 00 00 00 00 D6 [23:08:38]Write i2c OK [23:08:38]MH_I2C_Read... [23:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:38]Read from MH i2c: E2 [23:08:38]MH_I2C_Read... [23:08:38]Read from MH i2c: E2 03 00 [23:08:38]MH_I2C_Read... [23:08:38]Read from MH i2c: E2 03 00 4A 13 00 90 00 D1 [23:08:38]RAPDU: 90 00 [23:08:38]wFMCommunicate OK [23:08:38]wFMCommunicate request_size=255 [23:08:38]MH_SAM_APDU [23:08:38]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 79 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [23:08:38]Write to MH i2c: E2 02 01 4B 13 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 79 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 A5 [23:08:38]Write i2c OK [23:08:38]MH_I2C_Read... [23:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:39]Read from MH i2c: E2 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 03 00 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [23:08:39]RAPDU: 90 00 [23:08:39]wFMCommunicate OK [23:08:39]wFMCommunicate request_size=53 [23:08:39]MH_SAM_APDU [23:08:39]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 83 2B 01 00 35 04 06 00 77 1E E4 DC AE 51 [23:08:39]Write to MH i2c: E2 38 00 4C 13 80 0D 02 02 30 00 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 83 2B 01 00 35 04 06 00 77 1E E4 DC AE 51 00 00 D8 [23:08:39]Write i2c OK [23:08:39]MH_I2C_Read... [23:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:39]Read from MH i2c: E2 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 03 00 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 03 00 4C 13 00 90 00 D3 [23:08:39]RAPDU: 90 00 [23:08:39]wFMCommunicate OK [23:08:39]wFMCommunicate request_size=4 [23:08:39]MH_SAM_APDU [23:08:39]CAPDU: 80 0D 03 02 [23:08:39]Write to MH i2c: E2 08 00 4D 13 80 0D 03 02 00 00 00 00 DB [23:08:39]Write i2c OK [23:08:39]MH_I2C_Read... [23:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:39]Read from MH i2c: E2 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 0B 00 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 0B 00 4D 13 00 AE EE A1 89 F8 65 6A CE 90 00 37 [23:08:39]RAPDU: AE EE A1 89 F8 65 6A CE 90 00 [23:08:39]wFMCommunicate OK [23:08:39]SAM_PROTO_SignData done [23:08:39]FM_MakeSignedData done [23:08:39]CreateOFDProtocolMessage [23:08:39]wFMCommunicate request_size=4 [23:08:39]MH_SAM_APDU [23:08:39]CAPDU: 80 11 00 00 [23:08:39]Write to MH i2c: E2 08 00 4E 13 80 11 00 00 00 00 00 00 DB [23:08:39]Write i2c OK [23:08:39]MH_I2C_Read... [23:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:39]Read from MH i2c: E2 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 17 00 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 17 00 4E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2B [23:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:08:39]wFMCommunicate OK [23:08:39]CreateOFDProtocolMessage done [23:08:39]OFDSenderStorePacket 76675 [23:08:39]StoreOFDPacket docnum=76675 [23:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 27 3A 32 01 0A 21 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 79 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 83 2B 01 00 35 04 06 00 77 1E E4 DC AE 51 AE EE A1 89 F8 65 6A CE [23:08:39]CheckFolder [23:08:39]dirname=/storage/ofd_packets [23:08:39]CheckFolder done [23:08:39]ProducePacketName [23:08:39]name=ofd_packets/00076675 [23:08:39]NVStorageSaveData ofd_packets/00076675 [23:08:39]File name is /storage/ofd_packets/00076675 [23:08:39]Write 344 bytes [23:08:39]NVStorageSaveData done [23:08:39]OFDSenderStorePacket done [23:08:39]KKMCreateOFDPacket done [23:08:39]NVStorageSaveData kkm_last_timestamp [23:08:39]File name is /storage/kkm_last_timestamp [23:08:39]Write 4 bytes [23:08:39]NVStorageSaveData done [23:08:39]ExternCall_PrintAddStr [23:08:39]wPrintStart [23:08:39]Write to MH i2c: 01 00 00 4F 13 62 [23:08:39]Write i2c OK [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: 01 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: 01 07 00 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: 01 07 00 4F 13 00 00 00 00 00 FF 0F 77 [23:08:39]RasterBufferAndPrint [23:08:39]line Счет N : (3)220796 [23:08:39]line ИНН: 02508201610067 [23:08:39]line Контрольно-Кассовый Чек [23:08:39]line ПРОДАЖА [23:08:39]line Товар: 4600682557456 [23:08:39]line Напиток FLash up energy эн ж/б 0,5/0,45л [23:08:39]line 2.000 * 72.00 [23:08:39]line = 144.00 [23:08:39]line НДС 12% НСП 1% [23:08:39]line > о реализуемом товаре [23:08:39]line ИТОГО: 144.00 [23:08:39]line НСП 1% : 1.27 [23:08:39]line НДС 12% : 15.29 [23:08:39]line Наличными: 144.00 [23:08:39]line Безнал.: 0.00 [23:08:39]line Место: АЗС № 144 "Партнер Нефть" [23:08:39]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [23:08:39]line СНО: Общий режим [23:08:39]line Чек 116 20.06.2024 23:08 [23:08:39]line Смена: 393 ФФД: 1.0 [23:08:39]line ЗНМ: 0300000170 [23:08:39]line РНМ: 0000000000095696 [23:08:39]line Версия ККМ: 001 [23:08:39]line ФМ: 0000000000875009 [23:08:39]line ФД: 76675 [23:08:39]line ФПД: 130974572392017 [23:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T230841&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76675&fm=130974572392017&tin=02508201610067®Number=0000000000095696&sum=14400 [23:08:39]line 0 [23:08:39]OFD Sender: Processing packet 76675 [packets to send 351, broken 350] [23:08:39]ProducePacketName [23:08:39]name=ofd_packets/00076675 [23:08:39]OFD Sender: To server: pG, [23:08:39]CommunicateWithHost lk.salyk.kg:30040 [23:08:39]ConnectInit lk.salyk.kg [23:08:39]written 0, free lines is 4095 [23:08:39]Connected sock=10 [23:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 27 3A 32 01 0A 21 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 79 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 83 2B 01 00 35 04 06 00 77 1E E4 DC AE 51 AE EE A1 89 F8 65 6A CE [23:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D7 00 47 00 80 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 83 2B 01 00 F4 03 04 00 18 5D 74 66 B6 04 01 00 00 57 50 F6 2E 4F 2E 02 E4 [23:08:40]CommunicateWithHost err = 0 [23:08:40]CheckOFDResponse [23:08:40]1017 (14) - 77093643461234 [23:08:40]1041 (16) - 0000000000875009 [23:08:40]1040 (4) - 76675 [23:08:40]1012 (4) - 20.06.2024 16:47 [23:08:40]1206 (1) - 0 [23:08:40]OFD Sender: Remove packet 76675 [23:08:40]ProducePacketName [23:08:40]name=ofd_packets/00076675 [23:08:40]NVStorageDeleteData [23:08:40]Write to MH i2c: 01 00 00 78 13 8B [23:08:40]Write i2c OK [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: 01 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: 01 07 00 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: 01 07 00 78 13 00 00 00 00 00 E0 0C 7E [23:08:40]RasterBufferAndPrint [23:08:40]line [23:08:40]line [23:08:40]line [23:08:40]line [23:08:40]line [23:08:40]written 0, free lines is 3302 [23:08:40]MH_Cut [23:08:40]Write to MH i2c: D1 01 00 7F 13 01 64 [23:08:40]Write i2c OK [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: D1 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: D1 01 00 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: D1 01 00 7F 13 00 63 [23:08:40]Write to MH i2c: 01 00 00 80 13 93 [23:08:40]Write i2c OK [23:08:40]MH_I2C_Read... [23:08:40]OFD Sender: No OFD packet to send [23:08:40]*** Cut start [23:08:40]*** Partial cut [23:08:40]*** CUTSNS_PIN = 1 [23:08:40]*** CUTSNS_PIN = 0 [23:08:41]*** Brake cut motor [23:08:41]Read from MH i2c: 01 [23:08:41]MH_I2C_Read... [23:08:41]*** Stop cut motor [23:08:41]*** Cut end [23:08:41]Read from MH i2c: 01 07 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: 01 07 00 80 13 00 00 00 00 00 FF 0F A8 [23:08:41]process_action close_receipt done [23:08:41]requested_data is exist [23:08:41]produce_requested_data [23:08:41]requested_item fm.sn is exist - process it [23:08:41]wFMCommunicate request_size=4 [23:08:41]MH_SAM_APDU [23:08:41]CAPDU: 80 11 00 00 [23:08:41]Write to MH i2c: E2 08 00 81 13 80 11 00 00 00 00 00 00 0E [23:08:41]Write i2c OK [23:08:41]MH_I2C_Read... [23:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:41]Read from MH i2c: E2 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 17 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 17 00 81 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5E [23:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:08:41]wFMCommunicate OK [23:08:41]requested_item fd.num is exist - process it [23:08:41]SAM_PROTO_GetFieldsCounters [23:08:41]wFMCommunicate request_size=4 [23:08:41]MH_SAM_APDU [23:08:41]CAPDU: 80 13 00 00 [23:08:41]Write to MH i2c: E2 08 00 82 13 80 13 00 00 00 00 00 00 11 [23:08:41]Write i2c OK [23:08:41]MH_I2C_Read... [23:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:41]Read from MH i2c: E2 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 62 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 62 00 82 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 83 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [23:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 83 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:41]wFMCommunicate OK [23:08:41]SAM_PROTO_GetFieldsCounters done [23:08:41]requested_item shift.num is exist - process it [23:08:41]requested_item shift.opened is exist - process it [23:08:41]req_shift_opened [23:08:41]FM_GetShiftState [23:08:41]SAM_PROTO_GetShiftState [23:08:41]wFMCommunicate request_size=4 [23:08:41]MH_SAM_APDU [23:08:41]CAPDU: 80 13 01 00 [23:08:41]Write to MH i2c: E2 08 00 83 13 80 13 01 00 00 00 00 00 13 [23:08:41]Write i2c OK [23:08:41]MH_I2C_Read... [23:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:41]Read from MH i2c: E2 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 0E 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 0E 00 83 13 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 EF [23:08:41]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:08:41]wFMCommunicate OK [23:08:41]SAM_PROTO_GetShiftState done [23:08:41]FM_GetShiftState done [23:08:41]req_shift_opened done [23:08:41]requested_item shift.open_date is exist - process it [23:08:41]req_shift_open_date [23:08:41]req_shift_open_date done [23:08:41]produce_requested_data done [23:08:41]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76675,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [23:08:41]process_action_free close_receipt [23:08:41]json_value_free [23:08:41]json_value_free done [23:08:41]process_json_proto returns [23:08:41]Send response to host [23:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76675,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [23:08:41]free response buf [23:08:41]execute_script done [23:08:41]execute_script returns [23:08:41]free content buf [23:08:41]Sock 7.Close socket [23:08:41]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:24]accept exits with 9 [23:10:24]New connection [23:10:24]New thread 3066948964 created [23:10:24]Thread 3066805604 joined [23:10:24]Waiting for new connection... [23:10:24] Sock 9.Parse request [23:10:24]Sock 9.Check first char [23:10:24]Sock 9.First char is OK [23:10:24]request: POST /json_proto HTTP/1.0 [23:10:24]Method: POST [23:10:24]URL: /json_proto [23:10:24]Method is POST - this is cgi request [23:10:24]url: /json_proto [23:10:24]query_string will be loaded in cgi processing [23:10:24]execute_cgi json_proto POST (null) [23:10:24]execute_cgi path=json_proto method=POST [23:10:24]POST find Content-Length [23:10:24]Host: 172.17.39.195:8080 [23:10:24]Content-Length: 680 [23:10:24]Content-Type: application/json [23:10:24] [23:10:24]POST finish read [23:10:24]Found Content-Length = 680 [23:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220797", "tax_sys" : 0, "items" : [ { "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 3.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:24]execute_script... [23:10:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220797", "tax_sys" : 0, "items" : [ { "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 3.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:24]POST & json_proto [23:10:24]process_json_proto [23:10:24]json parsed OK: [23:10:24]protocol is kg_v1.0 [23:10:24]action value=close_receipt [23:10:24]process_action close_receipt [23:10:24]cmd_close_receipt [23:10:24]MH_GetDate [23:10:24]Write to MH i2c: F0 00 00 84 13 86 [23:10:24]Write i2c OK [23:10:24]MH_I2C_Read... [23:10:24]Read from MH i2c: F0 [23:10:24]MH_I2C_Read... [23:10:24]Read from MH i2c: F0 09 00 [23:10:24]MH_I2C_Read... [23:10:24]Read from MH i2c: F0 09 00 84 13 00 E3 B6 74 66 99 81 91 64 11 [23:10:24]GetLastDocTimeStamp 1718924921 [23:10:24]current date 1718925027 [23:10:24]FM_GetShiftState [23:10:24]SAM_PROTO_GetShiftState [23:10:24]wFMCommunicate request_size=4 [23:10:24]MH_SAM_APDU [23:10:24]CAPDU: 80 13 01 00 [23:10:24]Write to MH i2c: E2 08 00 85 13 80 13 01 00 00 00 00 00 15 [23:10:24]Write i2c OK [23:10:24]MH_I2C_Read... [23:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:24]Read from MH i2c: E2 [23:10:24]MH_I2C_Read... [23:10:24]Read from MH i2c: E2 0E 00 [23:10:24]MH_I2C_Read... [23:10:24]Read from MH i2c: E2 0E 00 85 13 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 F1 [23:10:24]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:10:24]wFMCommunicate OK [23:10:24]SAM_PROTO_GetShiftState done [23:10:24]FM_GetShiftState done [23:10:24]opened in 1718843774 [23:10:24]opened+sec_in_day 1718930174 [23:10:24]quantity*price = 3000 [23:10:24]sum+1 = 3001 [23:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 117 20.06.2024 23:10 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76676 ФПД: 205008900822547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T231028&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76676&fm=205008900822547&tin=02508201610067®Number=0000000000095696&sum=3000 0 [23:10:25]StoreToDocumentArchive [23:10:25]shift 393 fd 76676 [23:10:25]save to /storage/0393/doc_00076676 [23:10:25]save last doc name /storage/0393/doc_00076676 to /storage/kkm_last_doc_name [23:10:25]save OK [23:10:25]Clear old archive folders... [23:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=291 [23:10:25]tlvbuf is 00F32510 [23:10:25]SAM_PROTO_ClearQueue [23:10:25]wFMCommunicate request_size=4 [23:10:25]MH_SAM_APDU [23:10:25]CAPDU: 80 09 00 00 [23:10:25]Write to MH i2c: E2 08 00 92 13 80 09 00 00 00 00 00 00 17 [23:10:25]Write i2c OK [23:10:25]MH_I2C_Read... [23:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:25]Read from MH i2c: E2 [23:10:25]MH_I2C_Read... [23:10:25]Read from MH i2c: E2 03 00 [23:10:25]MH_I2C_Read... [23:10:25]Read from MH i2c: E2 03 00 92 13 00 90 00 19 [23:10:25]RAPDU: 90 00 [23:10:25]wFMCommunicate OK [23:10:25]SAM_PROTO_ClearQueue done [23:10:25]KKMCreateOFDPacket [23:10:25]OFDProtocolAddRootSTLVToBuf [23:10:25]FM_MakeSignedData [23:10:25]FM_MakeSignedData [23:10:25]SAM_PROTO_SignData [23:10:25]wFMCommunicate request_size=4 [23:10:25]MH_SAM_APDU [23:10:25]CAPDU: 80 0D 01 02 [23:10:25]Write to MH i2c: E2 08 00 93 13 80 0D 01 02 00 00 00 00 1F [23:10:25]Write i2c OK [23:10:25]MH_I2C_Read... [23:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:25]Read from MH i2c: E2 [23:10:25]MH_I2C_Read... [23:10:25]Read from MH i2c: E2 03 00 [23:10:25]MH_I2C_Read... [23:10:25]Read from MH i2c: E2 03 00 93 13 00 90 00 1A [23:10:25]RAPDU: 90 00 [23:10:25]wFMCommunicate OK [23:10:25]wFMCommunicate request_size=255 [23:10:25]MH_SAM_APDU [23:10:25]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 E4 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [23:10:25]Write to MH i2c: E2 02 01 94 13 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 E4 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 64 [23:10:25]Write i2c OK [23:10:25]MH_I2C_Read... [23:10:25]OFD Sender: No OFD packet to send [23:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:26]Read from MH i2c: E2 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 03 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [23:10:26]RAPDU: 90 00 [23:10:26]wFMCommunicate OK [23:10:26]wFMCommunicate request_size=50 [23:10:26]MH_SAM_APDU [23:10:26]CAPDU: 80 0D 02 02 2D 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 84 2B 01 00 35 04 06 00 BA 74 5A B5 96 13 [23:10:26]Write to MH i2c: E2 35 00 95 13 80 0D 02 02 2D 00 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 84 2B 01 00 35 04 06 00 BA 74 5A B5 96 13 00 00 1E [23:10:26]Write i2c OK [23:10:26]MH_I2C_Read... [23:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:26]Read from MH i2c: E2 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 03 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [23:10:26]RAPDU: 90 00 [23:10:26]wFMCommunicate OK [23:10:26]wFMCommunicate request_size=4 [23:10:26]MH_SAM_APDU [23:10:26]CAPDU: 80 0D 03 02 [23:10:26]Write to MH i2c: E2 08 00 96 13 80 0D 03 02 00 00 00 00 24 [23:10:26]Write i2c OK [23:10:26]MH_I2C_Read... [23:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:26]Read from MH i2c: E2 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 0B 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 0B 00 96 13 00 AC B2 A0 82 65 A3 E3 16 90 00 A6 [23:10:26]RAPDU: AC B2 A0 82 65 A3 E3 16 90 00 [23:10:26]wFMCommunicate OK [23:10:26]SAM_PROTO_SignData done [23:10:26]FM_MakeSignedData done [23:10:26]CreateOFDProtocolMessage [23:10:26]wFMCommunicate request_size=4 [23:10:26]MH_SAM_APDU [23:10:26]CAPDU: 80 11 00 00 [23:10:26]Write to MH i2c: E2 08 00 97 13 80 11 00 00 00 00 00 00 24 [23:10:26]Write i2c OK [23:10:26]MH_I2C_Read... [23:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:26]Read from MH i2c: E2 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 17 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 17 00 97 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 74 [23:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:10:26]wFMCommunicate OK [23:10:26]CreateOFDProtocolMessage done [23:10:26]OFDSenderStorePacket 76676 [23:10:26]StoreOFDPacket docnum=76676 [23:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 37 01 00 00 19 28 2F 01 76 A2 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 E4 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 84 2B 01 00 35 04 06 00 BA 74 5A B5 96 13 AC B2 A0 82 65 A3 E3 16 [23:10:26]CheckFolder [23:10:26]dirname=/storage/ofd_packets [23:10:26]CheckFolder done [23:10:26]ProducePacketName [23:10:26]name=ofd_packets/00076676 [23:10:26]NVStorageSaveData ofd_packets/00076676 [23:10:26]File name is /storage/ofd_packets/00076676 [23:10:26]Write 341 bytes [23:10:26]NVStorageSaveData done [23:10:26]OFDSenderStorePacket done [23:10:26]KKMCreateOFDPacket done [23:10:26]NVStorageSaveData kkm_last_timestamp [23:10:26]File name is /storage/kkm_last_timestamp [23:10:26]Write 4 bytes [23:10:26]NVStorageSaveData done [23:10:26]ExternCall_PrintAddStr [23:10:26]wPrintStart [23:10:26]Write to MH i2c: 01 00 00 98 13 AB [23:10:26]Write i2c OK [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: 01 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: 01 07 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: 01 07 00 98 13 00 00 00 00 00 FF 0F C0 [23:10:26]RasterBufferAndPrint [23:10:26]line Счет N : (3)220797 [23:10:26]line ИНН: 02508201610067 [23:10:26]line Контрольно-Кассовый Чек [23:10:26]line ПРОДАЖА [23:10:26]line Товар: 4620017450726 [23:10:26]line Кар. Страйк ассорти 11.3г/50шт [23:10:26]line 3.000 * 10.00 [23:10:26]line = 30.00 [23:10:26]line НДС 12% НСП 1% [23:10:26]line > о реализуемом товаре [23:10:26]line ИТОГО: 30.00 [23:10:26]line НСП 1% : 0.26 [23:10:26]line НДС 12% : 3.19 [23:10:26]line Наличными: 30.00 [23:10:26]line Безнал.: 0.00 [23:10:26]line Место: АЗС № 144 "Партнер Нефть" [23:10:26]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [23:10:26]line СНО: Общий режим [23:10:26]line Чек 117 20.06.2024 23:10 [23:10:26]line Смена: 393 ФФД: 1.0 [23:10:26]line ЗНМ: 0300000170 [23:10:26]line РНМ: 0000000000095696 [23:10:26]line Версия ККМ: 001 [23:10:26]line ФМ: 0000000000875009 [23:10:26]line ФД: 76676 [23:10:26]line ФПД: 205008900822547 [23:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T231028&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76676&fm=205008900822547&tin=02508201610067®Number=0000000000095696&sum=3000 [23:10:26]OFD Sender: Processing packet 76676 [packets to send 351, broken 350] [23:10:26]ProducePacketName [23:10:26]name=ofd_packets/00076676 [23:10:26]OFD Sender: To server: pG, [23:10:26]CommunicateWithHost lk.salyk.kg:30040 [23:10:26]ConnectInit lk.salyk.kg [23:10:26]line 0 [23:10:26]written 0, free lines is 4095 [23:10:26]Connected sock=10 [23:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 37 01 00 00 19 28 2F 01 76 A2 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 E4 B6 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 84 2B 01 00 35 04 06 00 BA 74 5A B5 96 13 AC B2 A0 82 65 A3 E3 16 [23:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 13 70 47 00 AB 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 84 2B 01 00 F4 03 04 00 83 5D 74 66 B6 04 01 00 00 69 87 AE 9D C2 69 75 65 [23:10:26]CommunicateWithHost err = 0 [23:10:26]CheckOFDResponse [23:10:26]1017 (14) - 77093643461234 [23:10:26]1041 (16) - 0000000000875009 [23:10:26]1040 (4) - 76676 [23:10:26]1012 (4) - 20.06.2024 16:49 [23:10:26]1206 (1) - 0 [23:10:26]OFD Sender: Remove packet 76676 [23:10:26]ProducePacketName [23:10:26]name=ofd_packets/00076676 [23:10:26]NVStorageDeleteData [23:10:26]Write to MH i2c: 01 00 00 C1 13 D4 [23:10:26]Write i2c OK [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: 01 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: 01 07 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: 01 07 00 C1 13 00 00 00 00 00 DF 0C C6 [23:10:27]RasterBufferAndPrint [23:10:27]line [23:10:27]line [23:10:27]line [23:10:27]line [23:10:27]line [23:10:27]written 0, free lines is 3301 [23:10:27]MH_Cut [23:10:27]Write to MH i2c: D1 01 00 C8 13 01 AD [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: D1 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: D1 01 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: D1 01 00 C8 13 00 AC [23:10:27]Write to MH i2c: 01 00 00 C9 13 DC [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]OFD Sender: No OFD packet to send [23:10:27]*** Cut start [23:10:27]*** Partial cut [23:10:27]*** CUTSNS_PIN = 1 [23:10:27]*** CUTSNS_PIN = 0 [23:10:28]*** Brake cut motor [23:10:28]Read from MH i2c: 01 [23:10:28]MH_I2C_Read... [23:10:28]*** Stop cut motor [23:10:28]*** Cut end [23:10:28]Read from MH i2c: 01 07 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: 01 07 00 C9 13 00 00 00 00 00 FF 0F F1 [23:10:28]process_action close_receipt done [23:10:28]requested_data is exist [23:10:28]produce_requested_data [23:10:28]requested_item fm.sn is exist - process it [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 11 00 00 [23:10:28]Write to MH i2c: E2 08 00 CA 13 80 11 00 00 00 00 00 00 57 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 17 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 17 00 CA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A7 [23:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:10:28]wFMCommunicate OK [23:10:28]requested_item fd.num is exist - process it [23:10:28]SAM_PROTO_GetFieldsCounters [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 13 00 00 [23:10:28]Write to MH i2c: E2 08 00 CB 13 80 13 00 00 00 00 00 00 5A [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 62 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 62 00 CB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 84 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [23:10:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 84 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:28]wFMCommunicate OK [23:10:28]SAM_PROTO_GetFieldsCounters done [23:10:28]requested_item shift.num is exist - process it [23:10:28]requested_item shift.opened is exist - process it [23:10:28]req_shift_opened [23:10:28]FM_GetShiftState [23:10:28]SAM_PROTO_GetShiftState [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 13 01 00 [23:10:28]Write to MH i2c: E2 08 00 CC 13 80 13 01 00 00 00 00 00 5C [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 0E 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 0E 00 CC 13 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 38 [23:10:28]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:10:28]wFMCommunicate OK [23:10:28]SAM_PROTO_GetShiftState done [23:10:28]FM_GetShiftState done [23:10:28]req_shift_opened done [23:10:28]requested_item shift.open_date is exist - process it [23:10:28]req_shift_open_date [23:10:28]req_shift_open_date done [23:10:28]produce_requested_data done [23:10:28]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76676,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [23:10:28]process_action_free close_receipt [23:10:28]json_value_free [23:10:28]json_value_free done [23:10:28]process_json_proto returns [23:10:28]Send response to host [23:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76676,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [23:10:28]free response buf [23:10:28]execute_script done [23:10:28]execute_script returns [23:10:28]free content buf [23:10:28]Sock 9.Close socket [23:10:28]Sock 9.Thread stoped [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]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:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:50]accept exits with 7 [23:31:50]New connection [23:31:50]New thread 3066805604 created [23:31:50]Thread 3066948964 joined [23:31:50]Waiting for new connection... [23:31:50] Sock 7.Parse request [23:31:50]Sock 7.Check first char [23:31:50]Sock 7.First char is OK [23:31:50]request: POST /json_proto HTTP/1.0 [23:31:50]Method: POST [23:31:50]URL: /json_proto [23:31:50]Method is POST - this is cgi request [23:31:50]url: /json_proto [23:31:50]query_string will be loaded in cgi processing [23:31:50]execute_cgi json_proto POST (null) [23:31:50]execute_cgi path=json_proto method=POST [23:31:50]POST find Content-Length [23:31:50]Host: 172.17.39.195:8080 [23:31:50]Content-Length: 604 [23:31:50]Content-Type: application/json [23:31:50] [23:31:50]POST finish read [23:31:50]Found Content-Length = 604 [23:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220798", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:50]execute_script... [23:31: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 : (3)220798", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:50]POST & json_proto [23:31:50]process_json_proto [23:31:50]json parsed OK: [23:31:50]protocol is kg_v1.0 [23:31:50]action value=close_receipt [23:31:50]process_action close_receipt [23:31:50]cmd_close_receipt [23:31:50]MH_GetDate [23:31:50]Write to MH i2c: F0 00 00 CD 13 CF [23:31:50]Write i2c OK [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: F0 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: F0 09 00 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: F0 09 00 CD 13 00 E9 BB 74 66 99 81 91 64 65 [23:31:50]GetLastDocTimeStamp 1718925028 [23:31:50]current date 1718926313 [23:31:50]FM_GetShiftState [23:31:50]SAM_PROTO_GetShiftState [23:31:50]wFMCommunicate request_size=4 [23:31:50]MH_SAM_APDU [23:31:50]CAPDU: 80 13 01 00 [23:31:50]Write to MH i2c: E2 08 00 CE 13 80 13 01 00 00 00 00 00 5E [23:31:50]Write i2c OK [23:31:50]MH_I2C_Read... [23:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:50]Read from MH i2c: E2 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: E2 0E 00 [23:31:50]MH_I2C_Read... [23:31:50]Read from MH i2c: E2 0E 00 CE 13 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 3A [23:31:50]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:31:50]wFMCommunicate OK [23:31:50]SAM_PROTO_GetShiftState done [23:31:50]FM_GetShiftState done [23:31:50]opened in 1718843774 [23:31:50]opened+sec_in_day 1718930174 [23:31:50]quantity*price = 63000 [23:31:50]sum+1 = 63001 [23:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 630.00 НСП 1% : 5.57 НДС 12% : 66.90 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 118 20.06.2024 23:31 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76677 ФПД: 66212975702738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233154&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76677&fm=66212975702738&tin=02508201610067®Number=0000000000095696&sum=63000 0 [23:31:51]StoreToDocumentArchive [23:31:51]shift 393 fd 76677 [23:31:51]save to /storage/0393/doc_00076677 [23:31:51]save last doc name /storage/0393/doc_00076677 to /storage/kkm_last_doc_name [23:31:51]save OK [23:31:51]Clear old archive folders... [23:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=264 [23:31:51]tlvbuf is 00EB2DD0 [23:31:51]SAM_PROTO_ClearQueue [23:31:51]wFMCommunicate request_size=4 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 09 00 00 [23:31:51]Write to MH i2c: E2 08 00 DB 13 80 09 00 00 00 00 00 00 60 [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:51]Read from MH i2c: E2 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 DB 13 00 90 00 62 [23:31:51]RAPDU: 90 00 [23:31:51]wFMCommunicate OK [23:31:51]SAM_PROTO_ClearQueue done [23:31:51]KKMCreateOFDPacket [23:31:51]OFDProtocolAddRootSTLVToBuf [23:31:51]FM_MakeSignedData [23:31:51]FM_MakeSignedData [23:31:51]SAM_PROTO_SignData [23:31:51]wFMCommunicate request_size=4 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 0D 01 02 [23:31:51]Write to MH i2c: E2 08 00 DC 13 80 0D 01 02 00 00 00 00 68 [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:51]Read from MH i2c: E2 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 DC 13 00 90 00 63 [23:31:51]RAPDU: 90 00 [23:31:51]wFMCommunicate OK [23:31:51]wFMCommunicate request_size=255 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 0D 02 02 FA 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EA BB 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 [23:31:51]Write to MH i2c: E2 02 01 DD 13 80 0D 02 02 FA 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EA BB 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 00 00 4F [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:51]Read from MH i2c: E2 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 DD 13 00 90 00 64 [23:31:51]RAPDU: 90 00 [23:31:51]wFMCommunicate OK [23:31:51]wFMCommunicate request_size=23 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 0D 02 02 12 10 04 04 00 85 2B 01 00 35 04 06 00 3C 38 68 E5 72 D2 [23:31:51]Write to MH i2c: E2 1A 00 DE 13 80 0D 02 02 12 00 10 04 04 00 85 2B 01 00 35 04 06 00 3C 38 68 E5 72 D2 00 00 9C [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:51]Read from MH i2c: E2 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [23:31:51]RAPDU: 90 00 [23:31:51]wFMCommunicate OK [23:31:51]wFMCommunicate request_size=4 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 0D 03 02 [23:31:51]Write to MH i2c: E2 08 00 DF 13 80 0D 03 02 00 00 00 00 6D [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 0B 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 0B 00 DF 13 00 BE 82 B2 7C FD 5D 12 52 90 00 9A [23:31:52]RAPDU: BE 82 B2 7C FD 5D 12 52 90 00 [23:31:52]wFMCommunicate OK [23:31:52]SAM_PROTO_SignData done [23:31:52]FM_MakeSignedData done [23:31:52]CreateOFDProtocolMessage [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 11 00 00 [23:31:52]Write to MH i2c: E2 08 00 E0 13 80 11 00 00 00 00 00 00 6D [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 17 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 17 00 E0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BD [23:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:31:52]wFMCommunicate OK [23:31:52]CreateOFDProtocolMessage done [23:31:52]OFDSenderStorePacket 76677 [23:31:52]StoreOFDPacket docnum=76677 [23:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 A0 B0 14 01 C8 E5 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EA BB 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 85 2B 01 00 35 04 06 00 3C 38 68 E5 72 D2 BE 82 B2 7C FD 5D 12 52 [23:31:52]CheckFolder [23:31:52]dirname=/storage/ofd_packets [23:31:52]CheckFolder done [23:31:52]ProducePacketName [23:31:52]name=ofd_packets/00076677 [23:31:52]NVStorageSaveData ofd_packets/00076677 [23:31:52]File name is /storage/ofd_packets/00076677 [23:31:52]Write 314 bytes [23:31:52]NVStorageSaveData done [23:31:52]OFDSenderStorePacket done [23:31:52]KKMCreateOFDPacket done [23:31:52]NVStorageSaveData kkm_last_timestamp [23:31:52]File name is /storage/kkm_last_timestamp [23:31:52]Write 4 bytes [23:31:52]NVStorageSaveData done [23:31:52]ExternCall_PrintAddStr [23:31:52]wPrintStart [23:31:52]Write to MH i2c: 01 00 00 E1 13 F4 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 FF 0F 09 [23:31:52]RasterBufferAndPrint [23:31:52]line Счет N : (3)220798 [23:31:52]line ИНН: 02508201610067 [23:31:52]line Контрольно-Кассовый Чек [23:31:52]line ПРОДАЖА [23:31:52]line Товар: 4700002083334 [23:31:52]line Водка Level 0,7л [23:31:52]line 1.000 * 630.00 [23:31:52]line = 630.00 [23:31:52]line НДС 12% НСП 1% [23:31:52]line > о реализуемом товаре [23:31:52]line ИТОГО: 630.00 [23:31:52]line НСП 1% : 5.57 [23:31:52]line НДС 12% : 66.90 [23:31:52]line Наличными: 630.00 [23:31:52]line Безнал.: 0.00 [23:31:52]line Место: АЗС № 144 "Партнер Нефть" [23:31:52]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [23:31:52]line СНО: Общий режим [23:31:52]line Чек 118 20.06.2024 23:31 [23:31:52]line Смена: 393 ФФД: 1.0 [23:31:52]line ЗНМ: 0300000170 [23:31:52]line РНМ: 0000000000095696 [23:31:52]line Версия ККМ: 001 [23:31:52]line ФМ: 0000000000875009 [23:31:52]line ФД: 76677 [23:31:52]line ФПД: 66212975702738 [23:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233154&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76677&fm=66212975702738&tin=02508201610067®Number=0000000000095696&sum=63000 [23:31:52]line 0 [23:31:52]written 0, free lines is 4095 [23:31:52]OFD Sender: Processing packet 76677 [packets to send 351, broken 350] [23:31:52]ProducePacketName [23:31:52]name=ofd_packets/00076677 [23:31:52]OFD Sender: To server: pG, [23:31:52]CommunicateWithHost lk.salyk.kg:30040 [23:31:52]ConnectInit lk.salyk.kg [23:31:52]Connected sock=10 [23:31:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 A0 B0 14 01 C8 E5 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EA BB 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 85 2B 01 00 35 04 06 00 3C 38 68 E5 72 D2 BE 82 B2 7C FD 5D 12 52 [23:31:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 FD B6 47 00 12 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 85 2B 01 00 F4 03 04 00 89 62 74 66 B6 04 01 00 00 C2 B8 13 39 B9 EA AD 78 [23:31:52]CommunicateWithHost err = 0 [23:31:52]CheckOFDResponse [23:31:52]1017 (14) - 77093643461234 [23:31:52]1041 (16) - 0000000000875009 [23:31:52]1040 (4) - 76677 [23:31:52]1012 (4) - 20.06.2024 17:10 [23:31:52]1206 (1) - 0 [23:31:52]OFD Sender: Remove packet 76677 [23:31:52]ProducePacketName [23:31:52]name=ofd_packets/00076677 [23:31:52]NVStorageDeleteData [23:31:52]Write to MH i2c: 01 00 00 09 14 1D [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 09 14 00 00 00 00 00 04 0D 35 [23:31:52]RasterBufferAndPrint [23:31:52]line [23:31:52]line [23:31:52]line [23:31:52]line [23:31:52]line [23:31:52]written 0, free lines is 3339 [23:31:52]MH_Cut [23:31:52]Write to MH i2c: D1 01 00 10 14 01 F6 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: D1 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: D1 01 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: D1 01 00 10 14 00 F5 [23:31:52]Write to MH i2c: 01 00 00 11 14 25 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]OFD Sender: No OFD packet to send [23:31:53]*** Cut start [23:31:53]*** Partial cut [23:31:53]*** CUTSNS_PIN = 1 [23:31:53]*** CUTSNS_PIN = 0 [23:31:53]*** Brake cut motor [23:31:53]Read from MH i2c: 01 [23:31:53]MH_I2C_Read... [23:31:53]*** Stop cut motor [23:31:53]*** Cut end [23:31:53]Read from MH i2c: 01 07 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 11 14 00 00 00 00 00 FF 0F 3A [23:31:53]process_action close_receipt done [23:31:53]requested_data is exist [23:31:53]produce_requested_data [23:31:53]requested_item fm.sn is exist - process it [23:31:53]wFMCommunicate request_size=4 [23:31:53]MH_SAM_APDU [23:31:53]CAPDU: 80 11 00 00 [23:31:53]Write to MH i2c: E2 08 00 12 14 80 11 00 00 00 00 00 00 A0 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:53]Read from MH i2c: E2 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 17 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: E2 17 00 12 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F0 [23:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:31:53]wFMCommunicate OK [23:31:53]requested_item fd.num is exist - process it [23:31:53]SAM_PROTO_GetFieldsCounters [23:31:53]wFMCommunicate request_size=4 [23:31:53]MH_SAM_APDU [23:31:53]CAPDU: 80 13 00 00 [23:31:53]Write to MH i2c: E2 08 00 13 14 80 13 00 00 00 00 00 00 A3 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:54]Read from MH i2c: E2 [23:31:54]MH_I2C_Read... [23:31:54]Read from MH i2c: E2 62 00 [23:31:54]MH_I2C_Read... [23:31:54]Read from MH i2c: E2 62 00 13 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 85 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [23:31:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 85 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:54]wFMCommunicate OK [23:31:54]SAM_PROTO_GetFieldsCounters done [23:31:54]requested_item shift.num is exist - process it [23:31:54]requested_item shift.opened is exist - process it [23:31:54]req_shift_opened [23:31:54]FM_GetShiftState [23:31:54]SAM_PROTO_GetShiftState [23:31:54]wFMCommunicate request_size=4 [23:31:54]MH_SAM_APDU [23:31:54]CAPDU: 80 13 01 00 [23:31:54]Write to MH i2c: E2 08 00 14 14 80 13 01 00 00 00 00 00 A5 [23:31:54]Write i2c OK [23:31:54]MH_I2C_Read... [23:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:54]Read from MH i2c: E2 [23:31:54]MH_I2C_Read... [23:31:54]Read from MH i2c: E2 0E 00 [23:31:54]MH_I2C_Read... [23:31:54]Read from MH i2c: E2 0E 00 14 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 81 [23:31:54]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:31:54]wFMCommunicate OK [23:31:54]SAM_PROTO_GetShiftState done [23:31:54]FM_GetShiftState done [23:31:54]req_shift_opened done [23:31:54]requested_item shift.open_date is exist - process it [23:31:54]req_shift_open_date [23:31:54]req_shift_open_date done [23:31:54]produce_requested_data done [23:31:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76677,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [23:31:54]process_action_free close_receipt [23:31:54]json_value_free [23:31:54]json_value_free done [23:31:54]process_json_proto returns [23:31:54]Send response to host [23:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76677,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [23:31:54]free response buf [23:31:54]execute_script done [23:31:54]execute_script returns [23:31:54]free content buf [23:31:54]Sock 7.Close socket [23:31:54]Sock 7.Thread stoped [23:31:57]OFD Sender: No OFD packet to send [23:32:02]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:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:12]accept exits with 9 [23:38:12]New connection [23:38:12]New thread 3066948964 created [23:38:12]Thread 3066805604 joined [23:38:12]Waiting for new connection... [23:38:12] Sock 9.Parse request [23:38:12]Sock 9.Check first char [23:38:12]Sock 9.First char is OK [23:38:12]request: POST /json_proto HTTP/1.0 [23:38:12]Method: POST [23:38:12]URL: /json_proto [23:38:12]Method is POST - this is cgi request [23:38:12]url: /json_proto [23:38:12]query_string will be loaded in cgi processing [23:38:12]execute_cgi json_proto POST (null) [23:38:12]execute_cgi path=json_proto method=POST [23:38:12]POST find Content-Length [23:38:12]Host: 172.17.39.195:8080 [23:38:12]Content-Length: 621 [23:38:12]Content-Type: application/json [23:38:12] [23:38:12]POST finish read [23:38:12]Found Content-Length = 621 [23:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220799", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:12]execute_script... [23:38: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 : (3)220799", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:12]POST & json_proto [23:38:12]process_json_proto [23:38:12]json parsed OK: [23:38:12]protocol is kg_v1.0 [23:38:12]action value=close_receipt [23:38:12]process_action close_receipt [23:38:12]cmd_close_receipt [23:38:12]MH_GetDate [23:38:12]Write to MH i2c: F0 00 00 15 14 18 [23:38:12]Write i2c OK [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: F0 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: F0 09 00 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: F0 09 00 15 14 00 68 BD 74 66 99 81 91 64 2F [23:38:12]GetLastDocTimeStamp 1718926314 [23:38:12]current date 1718926696 [23:38:12]FM_GetShiftState [23:38:12]SAM_PROTO_GetShiftState [23:38:12]wFMCommunicate request_size=4 [23:38:12]MH_SAM_APDU [23:38:12]CAPDU: 80 13 01 00 [23:38:12]Write to MH i2c: E2 08 00 16 14 80 13 01 00 00 00 00 00 A7 [23:38:12]Write i2c OK [23:38:12]MH_I2C_Read... [23:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:12]Read from MH i2c: E2 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 0E 00 [23:38:12]MH_I2C_Read... [23:38:12]Read from MH i2c: E2 0E 00 16 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 83 [23:38:12]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:38:12]wFMCommunicate OK [23:38:12]SAM_PROTO_GetShiftState done [23:38:12]FM_GetShiftState done [23:38:12]opened in 1718843774 [23:38:12]opened+sec_in_day 1718930174 [23:38:12]quantity*price = 14000 [23:38:12]sum+1 = 14001 [23:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 119 20.06.2024 23:38 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76678 ФПД: 130707162584196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233816&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76678&fm=130707162584196&tin=02508201610067®Number=0000000000095696&sum=14000 0 [23:38:13]StoreToDocumentArchive [23:38:13]shift 393 fd 76678 [23:38:13]save to /storage/0393/doc_00076678 [23:38:13]save last doc name /storage/0393/doc_00076678 to /storage/kkm_last_doc_name [23:38:13]save OK [23:38:13]Clear old archive folders... [23:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:38:13]tlvbuf is 00EA9DC0 [23:38:13]SAM_PROTO_ClearQueue [23:38:13]wFMCommunicate request_size=4 [23:38:13]MH_SAM_APDU [23:38:13]CAPDU: 80 09 00 00 [23:38:13]Write to MH i2c: E2 08 00 23 14 80 09 00 00 00 00 00 00 A9 [23:38:13]Write i2c OK [23:38:13]MH_I2C_Read... [23:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:13]Read from MH i2c: E2 [23:38:13]MH_I2C_Read... [23:38:13]Read from MH i2c: E2 03 00 [23:38:13]MH_I2C_Read... [23:38:13]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [23:38:13]RAPDU: 90 00 [23:38:13]wFMCommunicate OK [23:38:13]SAM_PROTO_ClearQueue done [23:38:13]KKMCreateOFDPacket [23:38:13]OFDProtocolAddRootSTLVToBuf [23:38:13]FM_MakeSignedData [23:38:13]FM_MakeSignedData [23:38:13]SAM_PROTO_SignData [23:38:13]wFMCommunicate request_size=4 [23:38:13]MH_SAM_APDU [23:38:13]CAPDU: 80 0D 01 02 [23:38:13]Write to MH i2c: E2 08 00 24 14 80 0D 01 02 00 00 00 00 B1 [23:38:13]Write i2c OK [23:38:13]MH_I2C_Read... [23:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:13]Read from MH i2c: E2 [23:38:13]MH_I2C_Read... [23:38:13]Read from MH i2c: E2 03 00 [23:38:13]MH_I2C_Read... [23:38:13]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [23:38:13]RAPDU: 90 00 [23:38:13]wFMCommunicate OK [23:38:13]wFMCommunicate request_size=255 [23:38:13]MH_SAM_APDU [23:38:13]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 68 BD 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [23:38:13]Write to MH i2c: E2 02 01 25 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 68 BD 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 9C [23:38:13]Write i2c OK [23:38:13]MH_I2C_Read... [23:38:13]OFD Sender: No OFD packet to send [23:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:13]Read from MH i2c: E2 [23:38:13]MH_I2C_Read... [23:38:13]Read from MH i2c: E2 03 00 [23:38:13]MH_I2C_Read... [23:38:13]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [23:38:13]RAPDU: 90 00 [23:38:13]wFMCommunicate OK [23:38:13]wFMCommunicate request_size=32 [23:38:13]MH_SAM_APDU [23:38:13]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 86 2B 01 00 35 04 06 00 76 E0 A1 FE D4 84 [23:38:13]Write to MH i2c: E2 23 00 26 14 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 86 2B 01 00 35 04 06 00 76 E0 A1 FE D4 84 00 00 0D [23:38:13]Write i2c OK [23:38:13]MH_I2C_Read... [23:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:14]Read from MH i2c: E2 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: E2 03 00 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: E2 03 00 26 14 00 90 00 AE [23:38:14]RAPDU: 90 00 [23:38:14]wFMCommunicate OK [23:38:14]wFMCommunicate request_size=4 [23:38:14]MH_SAM_APDU [23:38:14]CAPDU: 80 0D 03 02 [23:38:14]Write to MH i2c: E2 08 00 27 14 80 0D 03 02 00 00 00 00 B6 [23:38:14]Write i2c OK [23:38:14]MH_I2C_Read... [23:38:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:14]Read from MH i2c: E2 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: E2 0B 00 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: E2 0B 00 27 14 00 2A 2C 5A 81 9D 2A 24 97 90 00 6A [23:38:14]RAPDU: 2A 2C 5A 81 9D 2A 24 97 90 00 [23:38:14]wFMCommunicate OK [23:38:14]SAM_PROTO_SignData done [23:38:14]FM_MakeSignedData done [23:38:14]CreateOFDProtocolMessage [23:38:14]wFMCommunicate request_size=4 [23:38:14]MH_SAM_APDU [23:38:14]CAPDU: 80 11 00 00 [23:38:14]Write to MH i2c: E2 08 00 28 14 80 11 00 00 00 00 00 00 B6 [23:38:14]Write i2c OK [23:38:14]MH_I2C_Read... [23:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:14]Read from MH i2c: E2 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: E2 17 00 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: E2 17 00 28 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 06 [23:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:38:14]wFMCommunicate OK [23:38:14]CreateOFDProtocolMessage done [23:38:14]OFDSenderStorePacket 76678 [23:38:14]StoreOFDPacket docnum=76678 [23:38:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 74 4A 1D 01 E3 18 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 68 BD 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 86 2B 01 00 35 04 06 00 76 E0 A1 FE D4 84 2A 2C 5A 81 9D 2A 24 97 [23:38:14]CheckFolder [23:38:14]dirname=/storage/ofd_packets [23:38:14]CheckFolder done [23:38:14]ProducePacketName [23:38:14]name=ofd_packets/00076678 [23:38:14]NVStorageSaveData ofd_packets/00076678 [23:38:14]File name is /storage/ofd_packets/00076678 [23:38:14]Write 323 bytes [23:38:14]NVStorageSaveData done [23:38:14]OFDSenderStorePacket done [23:38:14]KKMCreateOFDPacket done [23:38:14]NVStorageSaveData kkm_last_timestamp [23:38:14]File name is /storage/kkm_last_timestamp [23:38:14]Write 4 bytes [23:38:14]NVStorageSaveData done [23:38:14]ExternCall_PrintAddStr [23:38:14]wPrintStart [23:38:14]Write to MH i2c: 01 00 00 29 14 3D [23:38:14]Write i2c OK [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: 01 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: 01 07 00 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: 01 07 00 29 14 00 00 00 00 00 FF 0F 52 [23:38:14]RasterBufferAndPrint [23:38:14]line Счет N : (3)220799 [23:38:14]line ИНН: 02508201610067 [23:38:14]line Контрольно-Кассовый Чек [23:38:14]line ПРОДАЖА [23:38:14]line Товар: 48747059 [23:38:14]line Сигареты Winston Legend Blue [23:38:14]line 1.000 * 140.00 [23:38:14]line = 140.00 [23:38:14]line НДС 12% НСП 1% [23:38:14]line > о реализуемом товаре [23:38:14]line ИТОГО: 140.00 [23:38:14]line НСП 1% : 1.24 [23:38:14]line НДС 12% : 14.87 [23:38:14]line Наличными: 140.00 [23:38:14]line Безнал.: 0.00 [23:38:14]line Место: АЗС № 144 "Партнер Нефть" [23:38:14]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [23:38:14]line СНО: Общий режим [23:38:14]line Чек 119 20.06.2024 23:38 [23:38:14]line Смена: 393 ФФД: 1.0 [23:38:14]line ЗНМ: 0300000170 [23:38:14]line РНМ: 0000000000095696 [23:38:14]line Версия ККМ: 001 [23:38:14]line ФМ: 0000000000875009 [23:38:14]line ФД: 76678 [23:38:14]line ФПД: 130707162584196 [23:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233816&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76678&fm=130707162584196&tin=02508201610067®Number=0000000000095696&sum=14000 [23:38:14]line 0 [23:38:14]written 0, free lines is 4095 [23:38:14]OFD Sender: Processing packet 76678 [packets to send 351, broken 350] [23:38:14]ProducePacketName [23:38:14]name=ofd_packets/00076678 [23:38:14]OFD Sender: To server: pG, [23:38:14]CommunicateWithHost lk.salyk.kg:30040 [23:38:14]ConnectInit lk.salyk.kg [23:38:14]Write to MH i2c: 01 00 00 52 14 66 [23:38:14]Write i2c OK [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: 01 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: 01 07 00 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: 01 07 00 52 14 00 00 00 00 00 CD 0C 46 [23:38:14]RasterBufferAndPrint [23:38:14]line [23:38:14]line [23:38:14]line [23:38:14]line [23:38:14]line [23:38:14]written 0, free lines is 3281 [23:38:14]MH_Cut [23:38:14]Write to MH i2c: D1 01 00 59 14 01 3F [23:38:14]Write i2c OK [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: D1 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: D1 01 00 [23:38:14]MH_I2C_Read... [23:38:14]Read from MH i2c: D1 01 00 59 14 00 3E [23:38:14]Write to MH i2c: 01 00 00 5A 14 6E [23:38:14]Write i2c OK [23:38:14]MH_I2C_Read... [23:38:15]*** Cut start [23:38:15]*** Partial cut [23:38:15]*** CUTSNS_PIN = 1 [23:38:15]*** CUTSNS_PIN = 0 [23:38:15]*** Brake cut motor [23:38:15]Read from MH i2c: 01 [23:38:15]MH_I2C_Read... [23:38:15]*** Stop cut motor [23:38:15]*** Cut end [23:38:15]Read from MH i2c: 01 07 00 [23:38:15]MH_I2C_Read... [23:38:15]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 FF 0F 83 [23:38:15]process_action close_receipt done [23:38:15]requested_data is exist [23:38:15]produce_requested_data [23:38:15]requested_item fm.sn is exist - process it [23:38:15]wFMCommunicate request_size=4 [23:38:15]MH_SAM_APDU [23:38:15]CAPDU: 80 11 00 00 [23:38:15]Write to MH i2c: E2 08 00 5B 14 80 11 00 00 00 00 00 00 E9 [23:38:15]Write i2c OK [23:38:15]MH_I2C_Read... [23:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:16]Read from MH i2c: E2 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 17 00 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 17 00 5B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 39 [23:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:38:16]wFMCommunicate OK [23:38:16]requested_item fd.num is exist - process it [23:38:16]SAM_PROTO_GetFieldsCounters [23:38:16]wFMCommunicate request_size=4 [23:38:16]MH_SAM_APDU [23:38:16]CAPDU: 80 13 00 00 [23:38:16]Write to MH i2c: E2 08 00 5C 14 80 13 00 00 00 00 00 00 EC [23:38:16]Write i2c OK [23:38:16]MH_I2C_Read... [23:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:16]Read from MH i2c: E2 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 62 00 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 62 00 5C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 86 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [23:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 86 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:16]wFMCommunicate OK [23:38:16]SAM_PROTO_GetFieldsCounters done [23:38:16]requested_item shift.num is exist - process it [23:38:16]requested_item shift.opened is exist - process it [23:38:16]req_shift_opened [23:38:16]FM_GetShiftState [23:38:16]SAM_PROTO_GetShiftState [23:38:16]wFMCommunicate request_size=4 [23:38:16]MH_SAM_APDU [23:38:16]CAPDU: 80 13 01 00 [23:38:16]Write to MH i2c: E2 08 00 5D 14 80 13 01 00 00 00 00 00 EE [23:38:16]Write i2c OK [23:38:16]MH_I2C_Read... [23:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:16]Read from MH i2c: E2 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 0E 00 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 0E 00 5D 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 CA [23:38:16]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:38:16]wFMCommunicate OK [23:38:16]SAM_PROTO_GetShiftState done [23:38:16]FM_GetShiftState done [23:38:16]req_shift_opened done [23:38:16]requested_item shift.open_date is exist - process it [23:38:16]req_shift_open_date [23:38:16]req_shift_open_date done [23:38:16]produce_requested_data done [23:38:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76678,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [23:38:16]process_action_free close_receipt [23:38:16]json_value_free [23:38:16]json_value_free done [23:38:16]process_json_proto returns [23:38:16]Send response to host [23:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76678,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [23:38:16]free response buf [23:38:16]execute_script done [23:38:16]execute_script returns [23:38:16]free content buf [23:38:16]Sock 9.Close socket [23:38:16]Sock 9.Thread stoped [23:38:16]Connected sock=11 [23:38:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 74 4A 1D 01 E3 18 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 68 BD 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 86 2B 01 00 35 04 06 00 76 E0 A1 FE D4 84 2A 2C 5A 81 9D 2A 24 97 [23:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 67 E6 47 00 A1 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 86 2B 01 00 F4 03 04 00 09 64 74 66 B6 04 01 00 00 89 C9 BC AA 54 CC 8D CF [23:38:17]CommunicateWithHost err = 0 [23:38:17]CheckOFDResponse [23:38:17]1017 (14) - 77093643461234 [23:38:17]1041 (16) - 0000000000875009 [23:38:17]1040 (4) - 76678 [23:38:17]1012 (4) - 20.06.2024 17:16 [23:38:17]1206 (1) - 0 [23:38:17]OFD Sender: Remove packet 76678 [23:38:17]ProducePacketName [23:38:17]name=ofd_packets/00076678 [23:38:17]NVStorageDeleteData [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]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:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43: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]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]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50: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:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52: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: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:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:11]accept exits with 7 [23:59:11]New connection [23:59:11]New thread 3066805604 created [23:59:11]Thread 3066948964 joined [23:59:11]Waiting for new connection... [23:59:11] Sock 7.Parse request [23:59:11]Sock 7.Check first char [23:59:11]Sock 7.First char is OK [23:59:11]request: POST /json_proto HTTP/1.0 [23:59:11]Method: POST [23:59:11]URL: /json_proto [23:59:11]Method is POST - this is cgi request [23:59:11]url: /json_proto [23:59:11]query_string will be loaded in cgi processing [23:59:11]execute_cgi json_proto POST (null) [23:59:11]execute_cgi path=json_proto method=POST [23:59:11]POST find Content-Length [23:59:11]Host: 172.17.39.195:8080 [23:59:11]Content-Length: 690 [23:59:11]Content-Type: application/json [23:59:11] [23:59:11]POST finish read [23:59:11]Found Content-Length = 690 [23:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220800", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:11]execute_script... [23:59: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 : (3)220800", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:11]POST & json_proto [23:59:11]process_json_proto [23:59:11]json parsed OK: [23:59:11]protocol is kg_v1.0 [23:59:11]action value=close_receipt [23:59:11]process_action close_receipt [23:59:11]cmd_close_receipt [23:59:11]MH_GetDate [23:59:11]Write to MH i2c: F0 00 00 5E 14 61 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: F0 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: F0 09 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: F0 09 00 5E 14 00 53 C2 74 66 99 81 91 64 68 [23:59:11]GetLastDocTimeStamp 1718926696 [23:59:11]current date 1718927955 [23:59:11]FM_GetShiftState [23:59:11]SAM_PROTO_GetShiftState [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 13 01 00 [23:59:11]Write to MH i2c: E2 08 00 5F 14 80 13 01 00 00 00 00 00 F0 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 0E 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 0E 00 5F 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 CC [23:59:11]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:59:11]wFMCommunicate OK [23:59:11]SAM_PROTO_GetShiftState done [23:59:11]FM_GetShiftState done [23:59:11]opened in 1718843774 [23:59:11]opened+sec_in_day 1718930174 [23:59:11]quantity*price = 12000 [23:59:11]sum+1 = 12001 [23:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 120 20.06.2024 23:59 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76679 ФПД: 264823371352170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T235915&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76679&fm=264823371352170&tin=02508201610067®Number=0000000000095696&sum=12000 0 [23:59:12]StoreToDocumentArchive [23:59:12]shift 393 fd 76679 [23:59:12]save to /storage/0393/doc_00076679 [23:59:12]save last doc name /storage/0393/doc_00076679 to /storage/kkm_last_doc_name [23:59:12]save OK [23:59:12]Clear old archive folders... [23:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=290 [23:59:12]tlvbuf is B6DA72B0 [23:59:12]SAM_PROTO_ClearQueue [23:59:12]wFMCommunicate request_size=4 [23:59:12]MH_SAM_APDU [23:59:12]CAPDU: 80 09 00 00 [23:59:12]Write to MH i2c: E2 08 00 6C 14 80 09 00 00 00 00 00 00 F2 [23:59:12]Write i2c OK [23:59:12]MH_I2C_Read... [23:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:12]Read from MH i2c: E2 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [23:59:12]RAPDU: 90 00 [23:59:12]wFMCommunicate OK [23:59:12]SAM_PROTO_ClearQueue done [23:59:12]KKMCreateOFDPacket [23:59:12]OFDProtocolAddRootSTLVToBuf [23:59:12]FM_MakeSignedData [23:59:12]FM_MakeSignedData [23:59:12]SAM_PROTO_SignData [23:59:12]wFMCommunicate request_size=4 [23:59:12]MH_SAM_APDU [23:59:12]CAPDU: 80 0D 01 02 [23:59:12]Write to MH i2c: E2 08 00 6D 14 80 0D 01 02 00 00 00 00 FA [23:59:12]Write i2c OK [23:59:12]MH_I2C_Read... [23:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:12]Read from MH i2c: E2 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [23:59:12]RAPDU: 90 00 [23:59:12]wFMCommunicate OK [23:59:12]wFMCommunicate request_size=255 [23:59:12]MH_SAM_APDU [23:59:12]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 53 C2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [23:59:12]Write to MH i2c: E2 02 01 6E 14 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 53 C2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 20 [23:59:12]Write i2c OK [23:59:12]MH_I2C_Read... [23:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:12]Read from MH i2c: E2 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [23:59:12]RAPDU: 90 00 [23:59:12]wFMCommunicate OK [23:59:12]wFMCommunicate request_size=49 [23:59:12]MH_SAM_APDU [23:59:12]CAPDU: 80 0D 02 02 2C 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 87 2B 01 00 35 04 06 00 F0 DA FE FA 48 6A [23:59:12]Write to MH i2c: E2 34 00 6F 14 80 0D 02 02 2C 00 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 87 2B 01 00 35 04 06 00 F0 DA FE FA 48 6A 00 00 58 [23:59:12]Write i2c OK [23:59:12]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 03 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [23:59:13]RAPDU: 90 00 [23:59:13]wFMCommunicate OK [23:59:13]wFMCommunicate request_size=4 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 0D 03 02 [23:59:13]Write to MH i2c: E2 08 00 70 14 80 0D 03 02 00 00 00 00 FF [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 0B 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 0B 00 70 14 00 DA 47 FC D0 C1 FE 0C 4A 90 00 02 [23:59:13]RAPDU: DA 47 FC D0 C1 FE 0C 4A 90 00 [23:59:13]wFMCommunicate OK [23:59:13]SAM_PROTO_SignData done [23:59:13]FM_MakeSignedData done [23:59:13]CreateOFDProtocolMessage [23:59:13]wFMCommunicate request_size=4 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 11 00 00 [23:59:13]Write to MH i2c: E2 08 00 71 14 80 11 00 00 00 00 00 00 FF [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 17 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 17 00 71 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 4F [23:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:59:13]wFMCommunicate OK [23:59:13]CreateOFDProtocolMessage done [23:59:13]OFDSenderStorePacket 76679 [23:59:13]StoreOFDPacket docnum=76679 [23:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 36 01 00 00 04 AB 2E 01 64 7A 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 53 C2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 87 2B 01 00 35 04 06 00 F0 DA FE FA 48 6A DA 47 FC D0 C1 FE 0C 4A [23:59:13]CheckFolder [23:59:13]dirname=/storage/ofd_packets [23:59:13]CheckFolder done [23:59:13]ProducePacketName [23:59:13]name=ofd_packets/00076679 [23:59:13]NVStorageSaveData ofd_packets/00076679 [23:59:13]File name is /storage/ofd_packets/00076679 [23:59:13]Write 340 bytes [23:59:13]NVStorageSaveData done [23:59:13]OFDSenderStorePacket done [23:59:13]KKMCreateOFDPacket done [23:59:13]NVStorageSaveData kkm_last_timestamp [23:59:13]File name is /storage/kkm_last_timestamp [23:59:13]Write 4 bytes [23:59:13]NVStorageSaveData done [23:59:13]ExternCall_PrintAddStr [23:59:13]wPrintStart [23:59:13]Write to MH i2c: 01 00 00 72 14 86 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 72 14 00 00 00 00 00 FF 0F 9B [23:59:13]RasterBufferAndPrint [23:59:13]line Счет N : (3)220800 [23:59:13]line ИНН: 02508201610067 [23:59:13]line Контрольно-Кассовый Чек [23:59:13]line ПРОДАЖА [23:59:13]line Товар: 4630007400990 [23:59:13]line Семечки ДЖИНН Великан 100гр [23:59:13]line 1.000 * 120.00 [23:59:13]line = 120.00 [23:59:13]line НДС 12% НСП 1% [23:59:13]line > о реализуемом товаре [23:59:13]line ИТОГО: 120.00 [23:59:13]line НСП 1% : 1.06 [23:59:13]line НДС 12% : 12.74 [23:59:13]line Наличными: 120.00 [23:59:13]line Безнал.: 0.00 [23:59:13]line Место: АЗС № 144 "Партнер Нефть" [23:59:13]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [23:59:13]line СНО: Общий режим [23:59:13]line Чек 120 20.06.2024 23:59 [23:59:13]line Смена: 393 ФФД: 1.0 [23:59:13]line ЗНМ: 0300000170 [23:59:13]line РНМ: 0000000000095696 [23:59:13]line Версия ККМ: 001 [23:59:13]line ФМ: 0000000000875009 [23:59:13]line ФД: 76679 [23:59:13]line ФПД: 264823371352170 [23:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T235915&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76679&fm=264823371352170&tin=02508201610067®Number=0000000000095696&sum=12000 [23:59:13]line 0 [23:59:13]OFD Sender: Processing packet 76679 [packets to send 351, broken 350] [23:59:13]ProducePacketName [23:59:13]name=ofd_packets/00076679 [23:59:13]OFD Sender: To server: pG, [23:59:13]CommunicateWithHost lk.salyk.kg:30040 [23:59:13]ConnectInit lk.salyk.kg [23:59:13]written 0, free lines is 4095 [23:59:13]Write to MH i2c: 01 00 00 9B 14 AF [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: 01 07 00 9B 14 00 00 00 00 00 E6 0C A8 [23:59:13]RasterBufferAndPrint [23:59:13]line [23:59:13]line [23:59:13]line [23:59:13]line [23:59:13]line [23:59:13]written 0, free lines is 3307 [23:59:13]MH_Cut [23:59:13]Write to MH i2c: D1 01 00 A2 14 01 88 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: D1 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: D1 01 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: D1 01 00 A2 14 00 87 [23:59:13]Write to MH i2c: 01 00 00 A3 14 B7 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:14]Connected sock=11 [23:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 36 01 00 00 04 AB 2E 01 64 7A 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 53 C2 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 87 2B 01 00 35 04 06 00 F0 DA FE FA 48 6A DA 47 FC D0 C1 FE 0C 4A [23:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D5 BC 47 00 33 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 87 2B 01 00 F4 03 04 00 F3 68 74 66 B6 04 01 00 00 3B 8D 81 9A 6F B1 CF F7 [23:59:14]CommunicateWithHost err = 0 [23:59:14]CheckOFDResponse [23:59:14]1017 (14) - 77093643461234 [23:59:14]1041 (16) - 0000000000875009 [23:59:14]1040 (4) - 76679 [23:59:14]1012 (4) - 20.06.2024 17:37 [23:59:14]1206 (1) - 0 [23:59:14]OFD Sender: Remove packet 76679 [23:59:14]ProducePacketName [23:59:14]name=ofd_packets/00076679 [23:59:14]NVStorageDeleteData [23:59:14]*** Cut start [23:59:14]*** Partial cut [23:59:14]*** CUTSNS_PIN = 1 [23:59:14]*** CUTSNS_PIN = 0 [23:59:14]*** Brake cut motor [23:59:14]OFD Sender: No OFD packet to send [23:59:15]Read from MH i2c: 01 [23:59:15]MH_I2C_Read... [23:59:15]*** Stop cut motor [23:59:15]*** Cut end [23:59:15]Read from MH i2c: 01 07 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: 01 07 00 A3 14 00 00 00 00 00 FF 0F CC [23:59:15]process_action close_receipt done [23:59:15]requested_data is exist [23:59:15]produce_requested_data [23:59:15]requested_item fm.sn is exist - process it [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 11 00 00 [23:59:15]Write to MH i2c: E2 08 00 A4 14 80 11 00 00 00 00 00 00 32 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 17 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 17 00 A4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 82 [23:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:59:15]wFMCommunicate OK [23:59:15]requested_item fd.num is exist - process it [23:59:15]SAM_PROTO_GetFieldsCounters [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 13 00 00 [23:59:15]Write to MH i2c: E2 08 00 A5 14 80 13 00 00 00 00 00 00 35 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 62 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 62 00 A5 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 87 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [23:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 87 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:15]wFMCommunicate OK [23:59:15]SAM_PROTO_GetFieldsCounters done [23:59:15]requested_item shift.num is exist - process it [23:59:15]requested_item shift.opened is exist - process it [23:59:15]req_shift_opened [23:59:15]FM_GetShiftState [23:59:15]SAM_PROTO_GetShiftState [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 13 01 00 [23:59:15]Write to MH i2c: E2 08 00 A6 14 80 13 01 00 00 00 00 00 37 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 A6 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 13 [23:59:15]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [23:59:15]wFMCommunicate OK [23:59:15]SAM_PROTO_GetShiftState done [23:59:15]FM_GetShiftState done [23:59:15]req_shift_opened done [23:59:15]requested_item shift.open_date is exist - process it [23:59:15]req_shift_open_date [23:59:15]req_shift_open_date done [23:59:15]produce_requested_data done [23:59:15]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76679,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [23:59:15]process_action_free close_receipt [23:59:15]json_value_free [23:59:15]json_value_free done [23:59:15]process_json_proto returns [23:59:15]Send response to host [23:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76679,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [23:59:15]free response buf [23:59:15]execute_script done [23:59:15]execute_script returns [23:59:15]free content buf [23:59:15]Sock 7.Close socket [23:59:15]Sock 7.Thread stoped [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:13]accept exits with 9 [00:09:13]New connection [00:09:13]New thread 3066948964 created [00:09:13]Thread 3066805604 joined [00:09:13]Waiting for new connection... [00:09:13] Sock 9.Parse request [00:09:13]Sock 9.Check first char [00:09:13]Sock 9.First char is OK [00:09:13]request: POST /json_proto HTTP/1.0 [00:09:13]Method: POST [00:09:13]URL: /json_proto [00:09:13]Method is POST - this is cgi request [00:09:13]url: /json_proto [00:09:13]query_string will be loaded in cgi processing [00:09:13]execute_cgi json_proto POST (null) [00:09:13]execute_cgi path=json_proto method=POST [00:09:13]POST find Content-Length [00:09:13]Host: 172.17.39.195:8080 [00:09:13]Content-Length: 624 [00:09:13]Content-Type: application/json [00:09:13] [00:09:13]POST finish read [00:09:13]Found Content-Length = 624 [00:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220801", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:13]execute_script... [00:09: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 : (3)220801", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:13]POST & json_proto [00:09:13]process_json_proto [00:09:13]json parsed OK: [00:09:13]protocol is kg_v1.0 [00:09:13]action value=close_receipt [00:09:13]process_action close_receipt [00:09:13]cmd_close_receipt [00:09:13]MH_GetDate [00:09:13]Write to MH i2c: F0 00 00 A7 14 AA [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: F0 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: F0 09 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: F0 09 00 A7 14 00 AD C4 74 66 99 81 91 64 0D [00:09:13]GetLastDocTimeStamp 1718927955 [00:09:13]current date 1718928557 [00:09:13]FM_GetShiftState [00:09:13]SAM_PROTO_GetShiftState [00:09:13]wFMCommunicate request_size=4 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 13 01 00 [00:09:13]Write to MH i2c: E2 08 00 A8 14 80 13 01 00 00 00 00 00 39 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 0E 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 0E 00 A8 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 15 [00:09:13]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:09:13]wFMCommunicate OK [00:09:13]SAM_PROTO_GetShiftState done [00:09:13]FM_GetShiftState done [00:09:13]opened in 1718843774 [00:09:13]opened+sec_in_day 1718930174 [00:09:13]quantity*price = 30000 [00:09:13]sum+1 = 30001 [00:09:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 121 21.06.2024 00:09 Смена: 393 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76680 ФПД: 117454000917771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T000917&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76680&fm=117454000917771&tin=02508201610067®Number=0000000000095696&sum=30000 0 [00:09:14]StoreToDocumentArchive [00:09:14]shift 393 fd 76680 [00:09:14]save to /storage/0393/doc_00076680 [00:09:14]save last doc name /storage/0393/doc_00076680 to /storage/kkm_last_doc_name [00:09:14]save OK [00:09:14]Clear old archive folders... [00:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=268 [00:09:14]tlvbuf is 00EC0760 [00:09:14]SAM_PROTO_ClearQueue [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 09 00 00 [00:09:14]Write to MH i2c: E2 08 00 B5 14 80 09 00 00 00 00 00 00 3B [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:14]Read from MH i2c: E2 03 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [00:09:14]RAPDU: 90 00 [00:09:14]wFMCommunicate OK [00:09:14]SAM_PROTO_ClearQueue done [00:09:14]KKMCreateOFDPacket [00:09:14]OFDProtocolAddRootSTLVToBuf [00:09:14]FM_MakeSignedData [00:09:14]FM_MakeSignedData [00:09:14]SAM_PROTO_SignData [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 0D 01 02 [00:09:14]Write to MH i2c: E2 08 00 B6 14 80 0D 01 02 00 00 00 00 43 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [00:09:14]RAPDU: 90 00 [00:09:14]wFMCommunicate OK [00:09:14]wFMCommunicate request_size=255 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AD C4 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [00:09:14]Write to MH i2c: E2 02 01 B7 14 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AD C4 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 46 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [00:09:14]RAPDU: 90 00 [00:09:14]wFMCommunicate OK [00:09:14]wFMCommunicate request_size=27 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 88 2B 01 00 35 04 06 00 6A D2 E4 00 8D 0B [00:09:14]Write to MH i2c: E2 1E 00 B8 14 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 88 2B 01 00 35 04 06 00 6A D2 E4 00 8D 0B 00 00 03 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:15]Read from MH i2c: E2 03 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [00:09:15]RAPDU: 90 00 [00:09:15]wFMCommunicate OK [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 0D 03 02 [00:09:15]Write to MH i2c: E2 08 00 B9 14 80 0D 03 02 00 00 00 00 48 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0B 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0B 00 B9 14 00 83 89 AA E3 2F 69 9B 1C 90 00 31 [00:09:15]RAPDU: 83 89 AA E3 2F 69 9B 1C 90 00 [00:09:15]wFMCommunicate OK [00:09:15]SAM_PROTO_SignData done [00:09:15]FM_MakeSignedData done [00:09:15]CreateOFDProtocolMessage [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 11 00 00 [00:09:15]Write to MH i2c: E2 08 00 BA 14 80 11 00 00 00 00 00 00 48 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 17 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 17 00 BA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 98 [00:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:09:15]wFMCommunicate OK [00:09:15]CreateOFDProtocolMessage done [00:09:15]OFDSenderStorePacket 76680 [00:09:15]StoreOFDPacket docnum=76680 [00:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 19 1E 18 01 8D A4 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AD C4 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 88 2B 01 00 35 04 06 00 6A D2 E4 00 8D 0B 83 89 AA E3 2F 69 9B 1C [00:09:15]CheckFolder [00:09:15]dirname=/storage/ofd_packets [00:09:15]CheckFolder done [00:09:15]ProducePacketName [00:09:15]name=ofd_packets/00076680 [00:09:15]NVStorageSaveData ofd_packets/00076680 [00:09:15]File name is /storage/ofd_packets/00076680 [00:09:15]Write 318 bytes [00:09:15]NVStorageSaveData done [00:09:15]OFDSenderStorePacket done [00:09:15]KKMCreateOFDPacket done [00:09:15]NVStorageSaveData kkm_last_timestamp [00:09:15]File name is /storage/kkm_last_timestamp [00:09:15]Write 4 bytes [00:09:15]NVStorageSaveData done [00:09:15]ExternCall_PrintAddStr [00:09:15]wPrintStart [00:09:15]Write to MH i2c: 01 00 00 BB 14 CF [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 FF 0F E4 [00:09:15]RasterBufferAndPrint [00:09:15]line Счет N : (3)220801 [00:09:15]line ИНН: 02508201610067 [00:09:15]line Контрольно-Кассовый Чек [00:09:15]line ПРОДАЖА [00:09:15]line Товар: 4600721021627 [00:09:15]line Пиво БАД 0,5л ст [00:09:15]line 2.000 * 150.00 [00:09:15]line = 300.00 [00:09:15]line НДС 12% НСП 1% [00:09:15]line > о реализуемом товаре [00:09:15]line ИТОГО: 300.00 [00:09:15]line НСП 1% : 2.65 [00:09:15]line НДС 12% : 31.86 [00:09:15]line Наличными: 300.00 [00:09:15]line Безнал.: 0.00 [00:09:15]line Место: АЗС № 144 "Партнер Нефть" [00:09:15]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [00:09:15]line СНО: Общий режим [00:09:15]line Чек 121 21.06.2024 00:09 [00:09:15]line Смена: 393 ФФД: 1.0 [00:09:15]line ЗНМ: 0300000170 [00:09:15]line РНМ: 0000000000095696 [00:09:15]line Версия ККМ: 001 [00:09:15]line ФМ: 0000000000875009 [00:09:15]line ФД: 76680 [00:09:15]line ФПД: 117454000917771 [00:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T000917&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76680&fm=117454000917771&tin=02508201610067®Number=0000000000095696&sum=30000 [00:09:15]line 0 [00:09:15]written 0, free lines is 4095 [00:09:15]OFD Sender: Processing packet 76680 [packets to send 351, broken 350] [00:09:15]ProducePacketName [00:09:15]name=ofd_packets/00076680 [00:09:15]OFD Sender: To server: pG, [00:09:15]CommunicateWithHost lk.salyk.kg:30040 [00:09:15]ConnectInit lk.salyk.kg [00:09:15]Connected sock=10 [00:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 19 1E 18 01 8D A4 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AD C4 74 66 0E 04 04 00 89 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 88 2B 01 00 35 04 06 00 6A D2 E4 00 8D 0B 83 89 AA E3 2F 69 9B 1C [00:09:15]Write to MH i2c: 01 00 00 E3 14 F7 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 00 0D 0B [00:09:15]RasterBufferAndPrint [00:09:15]line [00:09:15]line [00:09:15]line [00:09:15]line [00:09:15]line [00:09:15]written 0, free lines is 3334 [00:09:15]MH_Cut [00:09:15]Write to MH i2c: D1 01 00 EA 14 01 D0 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: D1 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: D1 01 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: D1 01 00 EA 14 00 CF [00:09:15]Write to MH i2c: 01 00 00 EB 14 FF [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 44 77 47 00 9E F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 88 2B 01 00 F4 03 04 00 4C 6B 74 66 B6 04 01 00 00 C9 AC 77 E6 D5 AA 09 BF [00:09:15]CommunicateWithHost err = 0 [00:09:15]CheckOFDResponse [00:09:15]1017 (14) - 77093643461234 [00:09:15]1041 (16) - 0000000000875009 [00:09:15]1040 (4) - 76680 [00:09:15]1012 (4) - 20.06.2024 17:47 [00:09:15]1206 (1) - 0 [00:09:15]OFD Sender: Remove packet 76680 [00:09:15]ProducePacketName [00:09:15]name=ofd_packets/00076680 [00:09:15]NVStorageDeleteData [00:09:16]OFD Sender: No OFD packet to send [00:09:16]*** Cut start [00:09:16]*** Partial cut [00:09:16]*** CUTSNS_PIN = 1 [00:09:16]*** CUTSNS_PIN = 0 [00:09:16]*** Brake cut motor [00:09:16]Read from MH i2c: 01 [00:09:16]MH_I2C_Read... [00:09:16]*** Stop cut motor [00:09:16]*** Cut end [00:09:16]Read from MH i2c: 01 07 00 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: 01 07 00 EB 14 00 00 00 00 00 FF 0F 14 [00:09:16]process_action close_receipt done [00:09:16]requested_data is exist [00:09:16]produce_requested_data [00:09:16]requested_item fm.sn is exist - process it [00:09:16]wFMCommunicate request_size=4 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 11 00 00 [00:09:16]Write to MH i2c: E2 08 00 EC 14 80 11 00 00 00 00 00 00 7A [00:09:16]Write i2c OK [00:09:16]MH_I2C_Read... [00:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:16]Read from MH i2c: E2 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 17 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 17 00 EC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CA [00:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:09:17]wFMCommunicate OK [00:09:17]requested_item fd.num is exist - process it [00:09:17]SAM_PROTO_GetFieldsCounters [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 13 00 00 [00:09:17]Write to MH i2c: E2 08 00 ED 14 80 13 00 00 00 00 00 00 7D [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 62 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 62 00 ED 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [00:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:17]wFMCommunicate OK [00:09:17]SAM_PROTO_GetFieldsCounters done [00:09:17]requested_item shift.num is exist - process it [00:09:17]requested_item shift.opened is exist - process it [00:09:17]req_shift_opened [00:09:17]FM_GetShiftState [00:09:17]SAM_PROTO_GetShiftState [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 13 01 00 [00:09:17]Write to MH i2c: E2 08 00 EE 14 80 13 01 00 00 00 00 00 7F [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 0E 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 0E 00 EE 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5B [00:09:17]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:09:17]wFMCommunicate OK [00:09:17]SAM_PROTO_GetShiftState done [00:09:17]FM_GetShiftState done [00:09:17]req_shift_opened done [00:09:17]requested_item shift.open_date is exist - process it [00:09:17]req_shift_open_date [00:09:17]req_shift_open_date done [00:09:17]produce_requested_data done [00:09:17]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [00:09:17]process_action_free close_receipt [00:09:17]json_value_free [00:09:17]json_value_free done [00:09:17]process_json_proto returns [00:09:17]Send response to host [00:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [00:09:17]free response buf [00:09:17]execute_script done [00:09:17]execute_script returns [00:09:17]free content buf [00:09:17]Sock 9.Close socket [00:09:17]Sock 9.Thread stoped [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:04]accept exits with 7 [00:19:04]New connection [00:19:04]New thread 3066805604 created [00:19:04]Thread 3066948964 joined [00:19:04]Waiting for new connection... [00:19:04] Sock 7.Parse request [00:19:04]Sock 7.Check first char [00:19:04]Sock 7.First char is OK [00:19:04]request: POST /json_proto HTTP/1.0 [00:19:04]Method: POST [00:19:04]URL: /json_proto [00:19:04]Method is POST - this is cgi request [00:19:04]url: /json_proto [00:19:04]query_string will be loaded in cgi processing [00:19:04]execute_cgi json_proto POST (null) [00:19:04]execute_cgi path=json_proto method=POST [00:19:04]POST find Content-Length [00:19:04]Host: 172.17.39.195:8080 [00:19:04]Content-Length: 215 [00:19:04]Content-Type: application/json [00:19:04] [00:19:04]POST finish read [00:19:04]Found Content-Length = 215 [00:19: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" ] } } [00:19:04]execute_script... [00:19:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:04]POST & json_proto [00:19:04]process_json_proto [00:19:04]json parsed OK: [00:19:04]protocol is kg_v1.0 [00:19:04]action value=get_value [00:19:04]process_action get_value [00:19:04]cmd_get_value [00:19:04]process_action get_value done [00:19:04]requested_data is exist [00:19:04]produce_requested_data [00:19:04]requested_item kkm.sn is exist - process it [00:19:04]requested_item kkm.ver is exist - process it [00:19:04]requested_item fm.sn is exist - process it [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 11 00 00 [00:19:04]Write to MH i2c: E2 08 00 EF 14 80 11 00 00 00 00 00 00 7D [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 17 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 17 00 EF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CD [00:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:19:04]wFMCommunicate OK [00:19:04]requested_item fd.num is exist - process it [00:19:04]SAM_PROTO_GetFieldsCounters [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 13 00 00 [00:19:04]Write to MH i2c: E2 08 00 F0 14 80 13 00 00 00 00 00 00 80 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 62 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 62 00 F0 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [00:19:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:04]wFMCommunicate OK [00:19:04]SAM_PROTO_GetFieldsCounters done [00:19:04]requested_item shift.num is exist - process it [00:19:04]requested_item shift.opened is exist - process it [00:19:04]req_shift_opened [00:19:04]FM_GetShiftState [00:19:04]SAM_PROTO_GetShiftState [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 13 01 00 [00:19:04]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 0E 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 5E [00:19:04]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:19:04]wFMCommunicate OK [00:19:04]SAM_PROTO_GetShiftState done [00:19:04]FM_GetShiftState done [00:19:04]req_shift_opened done [00:19:04]requested_item shift.open_date is exist - process it [00:19:04]req_shift_open_date [00:19:04]req_shift_open_date done [00:19:04]produce_requested_data done [00:19:04]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [00:19:04]process_action_free get_value [00:19:04]json_value_free [00:19:04]json_value_free done [00:19:04]process_json_proto returns [00:19:04]Send response to host [00:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [00:19:04]free response buf [00:19:04]execute_script done [00:19:04]execute_script returns [00:19:04]free content buf [00:19:04]Sock 7.Close socket [00:19:04]Sock 7.Thread stoped [00:19:04]accept exits with 9 [00:19:04]New connection [00:19:04]New thread 3066948964 created [00:19:04]Thread 3066805604 joined [00:19:04]Waiting for new connection... [00:19:04] Sock 9.Parse request [00:19:04]Sock 9.Check first char [00:19:04]Sock 9.First char is OK [00:19:04]request: POST /json_proto HTTP/1.0 [00:19:04]Method: POST [00:19:04]URL: /json_proto [00:19:04]Method is POST - this is cgi request [00:19:04]url: /json_proto [00:19:04]query_string will be loaded in cgi processing [00:19:04]execute_cgi json_proto POST (null) [00:19:04]execute_cgi path=json_proto method=POST [00:19:04]POST find Content-Length [00:19:04]Host: 172.17.39.195:8080 [00:19:04]Content-Length: 331 [00:19:04]Content-Type: application/json [00:19:04] [00:19:04]POST finish read [00:19:04]Found Content-Length = 331 [00:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:04]execute_script... [00:19:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:04]POST & json_proto [00:19:04]process_json_proto [00:19:04]json parsed OK: [00:19:04]protocol is kg_v1.0 [00:19:04]action value=get_value [00:19:04]process_action get_value [00:19:04]cmd_get_value [00:19:04]process_action get_value done [00:19:04]requested_data is exist [00:19:04]produce_requested_data [00:19:04]requested_item fm.sale.total is exist - process it [00:19:04]SAM_PROTO_GetFMData [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 13 03 00 [00:19:04]Write to MH i2c: E2 08 00 F2 14 80 13 03 00 00 00 00 00 85 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 F2 14 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 A6 [00:19:05]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:19:05]wFMCommunicate OK [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 17 00 00 [00:19:05]Write to MH i2c: E2 08 00 F3 14 80 17 00 00 00 00 00 00 87 [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 F3 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 3C [00:19:05]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:19:05]wFMCommunicate OK [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 17 00 00 [00:19:05]Write to MH i2c: E2 08 00 F4 14 80 17 00 00 00 00 00 00 88 [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 F4 14 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 AF [00:19:05]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:19:05]wFMCommunicate OK [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 17 00 00 [00:19:05]Write to MH i2c: E2 08 00 F5 14 80 17 00 00 00 00 00 00 89 [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 F5 14 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 04 [00:19:06]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 17 00 00 [00:19:06]Write to MH i2c: E2 08 00 F6 14 80 17 00 00 00 00 00 00 8A [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 E3 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 E3 00 F6 14 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 69 [00:19:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:06]wFMCommunicate OK [00:19:06]SAM_PROTO_GetFMData done [00:19:06]requested_item fm.sale_refund.total is exist - process it [00:19:06]requested_item fm.buy.total is exist - process it [00:19:06]requested_item shift.sale.total is exist - process it [00:19:06]SAM_PROTO_GetShiftData [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 13 02 00 [00:19:06]Write to MH i2c: E2 08 00 F7 14 80 13 02 00 00 00 00 00 89 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 F7 14 00 B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 A9 [00:19:06]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 17 00 00 [00:19:06]Write to MH i2c: E2 08 00 F8 14 80 17 00 00 00 00 00 00 8C [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 F8 14 00 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 33 [00:19:07]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:19:07]wFMCommunicate OK [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 17 00 00 [00:19:07]Write to MH i2c: E2 08 00 F9 14 80 17 00 00 00 00 00 00 8D [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]OFD Sender: No OFD packet to send [00:19:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 F9 14 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 2F [00:19:07]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:19:07]wFMCommunicate OK [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 17 00 00 [00:19:07]Write to MH i2c: E2 08 00 FA 14 80 17 00 00 00 00 00 00 8E [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 FA 14 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 17 [00:19:07]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:19:07]wFMCommunicate OK [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 17 00 00 [00:19:07]Write to MH i2c: E2 08 00 FB 14 80 17 00 00 00 00 00 00 8F [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 D5 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 D5 00 FB 14 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 70 [00:19:08]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:19:08]wFMCommunicate OK [00:19:08]SAM_PROTO_GetShiftData done [00:19:08]requested_item shift.sale.total_cash is exist - process it [00:19:08]requested_item shift.sale_refund.total is exist - process it [00:19:08]requested_item shift.sale_refund.total_cash is exist - process it [00:19:08]requested_item shift.buy.total is exist - process it [00:19:08]requested_item shift.buy.total_cash is exist - process it [00:19:08]produce_requested_data done [00:19:08]produce_requested_data return {"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:08]process_action_free get_value [00:19:08]json_value_free [00:19:08]json_value_free done [00:19:08]process_json_proto returns [00:19:08]Send response to host [00:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:08]free response buf [00:19:08]execute_script done [00:19:08]execute_script returns [00:19:08]free content buf [00:19:08]Sock 9.Close socket [00:19:08]Sock 9.Thread stoped [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:28]accept exits with 7 [00:20:28]New connection [00:20:28]New thread 3066805604 created [00:20:28]Thread 3066948964 joined [00:20:28]Waiting for new connection... [00:20:28] Sock 7.Parse request [00:20:28]Sock 7.Check first char [00:20:28]Sock 7.First char is OK [00:20:28]request: POST /json_proto HTTP/1.0 [00:20:29]Method: POST [00:20:29]URL: /json_proto [00:20:29]Method is POST - this is cgi request [00:20:29]url: /json_proto [00:20:29]query_string will be loaded in cgi processing [00:20:29]execute_cgi json_proto POST (null) [00:20:29]execute_cgi path=json_proto method=POST [00:20:29]POST find Content-Length [00:20:29]Host: 172.17.39.195:8080 [00:20:29]Content-Length: 215 [00:20:29]Content-Type: application/json [00:20:29] [00:20:29]POST finish read [00:20:29]Found Content-Length = 215 [00:20:29]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:29]execute_script... [00:20:29]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:29]POST & json_proto [00:20:29]process_json_proto [00:20:29]json parsed OK: [00:20:29]protocol is kg_v1.0 [00:20:29]action value=get_value [00:20:29]process_action get_value [00:20:29]cmd_get_value [00:20:29]process_action get_value done [00:20:29]requested_data is exist [00:20:29]produce_requested_data [00:20:29]requested_item kkm.sn is exist - process it [00:20:29]requested_item kkm.ver is exist - process it [00:20:29]requested_item fm.sn is exist - process it [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 11 00 00 [00:20:29]Write to MH i2c: E2 08 00 FC 14 80 11 00 00 00 00 00 00 8A [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 17 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 17 00 FC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DA [00:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:20:29]wFMCommunicate OK [00:20:29]requested_item fd.num is exist - process it [00:20:29]SAM_PROTO_GetFieldsCounters [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 13 00 00 [00:20:29]Write to MH i2c: E2 08 00 FD 14 80 13 00 00 00 00 00 00 8D [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 62 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 62 00 FD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [00:20:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:29]wFMCommunicate OK [00:20:29]SAM_PROTO_GetFieldsCounters done [00:20:29]requested_item shift.num is exist - process it [00:20:29]requested_item shift.opened is exist - process it [00:20:29]req_shift_opened [00:20:29]FM_GetShiftState [00:20:29]SAM_PROTO_GetShiftState [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 13 01 00 [00:20:29]Write to MH i2c: E2 08 00 FE 14 80 13 01 00 00 00 00 00 8F [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 0E 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 0E 00 FE 14 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 6B [00:20:29]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:20:29]wFMCommunicate OK [00:20:29]SAM_PROTO_GetShiftState done [00:20:29]FM_GetShiftState done [00:20:29]req_shift_opened done [00:20:29]requested_item shift.open_date is exist - process it [00:20:29]req_shift_open_date [00:20:29]req_shift_open_date done [00:20:29]produce_requested_data done [00:20:29]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [00:20:29]process_action_free get_value [00:20:29]json_value_free [00:20:29]json_value_free done [00:20:29]process_json_proto returns [00:20:29]Send response to host [00:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [00:20:29]free response buf [00:20:29]execute_script done [00:20:29]execute_script returns [00:20:29]free content buf [00:20:29]Sock 7.Close socket [00:20:29]Sock 7.Thread stoped [00:20:29]accept exits with 9 [00:20:29]New connection [00:20:29]New thread 3066948964 created [00:20:29]Thread 3066805604 joined [00:20:29]Waiting for new connection... [00:20:29] Sock 9.Parse request [00:20:29]Sock 9.Check first char [00:20:29]Sock 9.First char is OK [00:20:29]request: POST /json_proto HTTP/1.0 [00:20:29]Method: POST [00:20:29]URL: /json_proto [00:20:29]Method is POST - this is cgi request [00:20:29]url: /json_proto [00:20:29]query_string will be loaded in cgi processing [00:20:29]execute_cgi json_proto POST (null) [00:20:29]execute_cgi path=json_proto method=POST [00:20:29]POST find Content-Length [00:20:29]Host: 172.17.39.195:8080 [00:20:29]Content-Length: 331 [00:20:29]Content-Type: application/json [00:20:29] [00:20:29]POST finish read [00:20:29]Found Content-Length = 331 [00:20:29]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:29]execute_script... [00:20:29]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:29]POST & json_proto [00:20:29]process_json_proto [00:20:29]json parsed OK: [00:20:29]protocol is kg_v1.0 [00:20:29]action value=get_value [00:20:29]process_action get_value [00:20:29]cmd_get_value [00:20:29]process_action get_value done [00:20:29]requested_data is exist [00:20:29]produce_requested_data [00:20:29]requested_item fm.sale.total is exist - process it [00:20:29]SAM_PROTO_GetFMData [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 13 03 00 [00:20:29]Write to MH i2c: E2 08 00 FF 14 80 13 03 00 00 00 00 00 92 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 13 03 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 FF 14 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 B3 [00:20:29]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 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 00 15 80 17 00 00 00 00 00 00 95 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 00 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 4A [00:20:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 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 01 15 80 17 00 00 00 00 00 00 96 [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 = 250! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 01 15 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 BD [00:20:30]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 02 15 80 17 00 00 00 00 00 00 97 [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 = 250! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 02 15 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [00:20:30]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 03 15 80 17 00 00 00 00 00 00 98 [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 E3 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 E3 00 03 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [00:20:31]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:31]wFMCommunicate OK [00:20:31]SAM_PROTO_GetFMData done [00:20:31]requested_item fm.sale_refund.total is exist - process it [00:20:31]requested_item fm.buy.total is exist - process it [00:20:31]requested_item shift.sale.total is exist - process it [00:20:31]SAM_PROTO_GetShiftData [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 13 02 00 [00:20:31]Write to MH i2c: E2 08 00 04 15 80 13 02 00 00 00 00 00 97 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 04 15 00 B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 B7 [00:20:31]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 05 15 80 17 00 00 00 00 00 00 9A [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 05 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 41 [00:20:31]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 06 15 80 17 00 00 00 00 00 00 9B [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 06 15 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 3D [00:20:32]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:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 07 15 80 17 00 00 00 00 00 00 9C [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 07 15 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 25 [00:20:32]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:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 08 15 80 17 00 00 00 00 00 00 9D [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 D5 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 D5 00 08 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [00:20:32]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:32]wFMCommunicate OK [00:20:32]SAM_PROTO_GetShiftData done [00:20:32]requested_item shift.sale.total_cash is exist - process it [00:20:32]requested_item shift.sale_refund.total is exist - process it [00:20:32]requested_item shift.sale_refund.total_cash is exist - process it [00:20:32]requested_item shift.buy.total is exist - process it [00:20:32]requested_item shift.buy.total_cash is exist - process it [00:20:32]produce_requested_data done [00:20:32]produce_requested_data return {"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:32]process_action_free get_value [00:20:32]json_value_free [00:20:32]json_value_free done [00:20:32]process_json_proto returns [00:20:32]Send response to host [00:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:32]free response buf [00:20:32]execute_script done [00:20:32]execute_script returns [00:20:32]free content buf [00:20:32]Sock 9.Close socket [00:20:32]Sock 9.Thread stoped [00:20:32]OFD Sender: No OFD packet to send [00:20:32]accept exits with 7 [00:20:32]New connection [00:20:32]New thread 3066805604 created [00:20:32]Thread 3066948964 joined [00:20:32]Waiting for new connection... [00:20:32] Sock 7.Parse request [00:20:32]Sock 7.Check first char [00:20:32]Sock 7.First char is OK [00:20:32]request: POST /json_proto HTTP/1.0 [00:20:32]Method: POST [00:20:32]URL: /json_proto [00:20:32]Method is POST - this is cgi request [00:20:32]url: /json_proto [00:20:32]query_string will be loaded in cgi processing [00:20:32]execute_cgi json_proto POST (null) [00:20:32]execute_cgi path=json_proto method=POST [00:20:32]POST find Content-Length [00:20:32]Host: 172.17.39.195:8080 [00:20:32]Content-Length: 331 [00:20:32]Content-Type: application/json [00:20:32] [00:20:32]POST finish read [00:20:32]Found Content-Length = 331 [00:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:32]execute_script... [00:20:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:32]POST & json_proto [00:20:32]process_json_proto [00:20:32]json parsed OK: [00:20:32]protocol is kg_v1.0 [00:20:32]action value=get_value [00:20:32]process_action get_value [00:20:32]cmd_get_value [00:20:32]process_action get_value done [00:20:32]requested_data is exist [00:20:32]produce_requested_data [00:20:32]requested_item fm.sale.total is exist - process it [00:20:32]SAM_PROTO_GetFMData [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 13 03 00 [00:20:32]Write to MH i2c: E2 08 00 09 15 80 13 03 00 00 00 00 00 9D [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 09 15 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 BE [00:20:33]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 0A 15 80 17 00 00 00 00 00 00 9F [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 0A 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 54 [00:20:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 0B 15 80 17 00 00 00 00 00 00 A0 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 0B 15 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 C7 [00:20:33]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 0C 15 80 17 00 00 00 00 00 00 A1 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 0C 15 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [00:20:34]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 17 00 00 [00:20:34]Write to MH i2c: E2 08 00 0D 15 80 17 00 00 00 00 00 00 A2 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 E3 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 E3 00 0D 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [00:20:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:34]wFMCommunicate OK [00:20:34]SAM_PROTO_GetFMData done [00:20:34]requested_item fm.sale_refund.total is exist - process it [00:20:34]requested_item fm.buy.total is exist - process it [00:20:34]requested_item shift.sale.total is exist - process it [00:20:34]SAM_PROTO_GetShiftData [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 13 02 00 [00:20:34]Write to MH i2c: E2 08 00 0E 15 80 13 02 00 00 00 00 00 A1 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 0E 15 00 B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 C1 [00:20:35]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:20:35]wFMCommunicate OK [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 17 00 00 [00:20:35]Write to MH i2c: E2 08 00 0F 15 80 17 00 00 00 00 00 00 A4 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 0F 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 4B [00:20:35]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:20:35]wFMCommunicate OK [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 17 00 00 [00:20:35]Write to MH i2c: E2 08 00 10 15 80 17 00 00 00 00 00 00 A5 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 10 15 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 47 [00:20:36]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:36]wFMCommunicate OK [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 17 00 00 [00:20:36]Write to MH i2c: E2 08 00 11 15 80 17 00 00 00 00 00 00 A6 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 FD 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 FD 00 11 15 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 2F [00:20:36]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:36]wFMCommunicate OK [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 17 00 00 [00:20:36]Write to MH i2c: E2 08 00 12 15 80 17 00 00 00 00 00 00 A7 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 D5 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 D5 00 12 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [00:20:36]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:36]wFMCommunicate OK [00:20:36]SAM_PROTO_GetShiftData done [00:20:36]requested_item shift.sale.total_cash is exist - process it [00:20:36]requested_item shift.sale_refund.total is exist - process it [00:20:36]requested_item shift.sale_refund.total_cash is exist - process it [00:20:36]requested_item shift.buy.total is exist - process it [00:20:36]requested_item shift.buy.total_cash is exist - process it [00:20:36]produce_requested_data done [00:20:36]produce_requested_data return {"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:36]process_action_free get_value [00:20:36]json_value_free [00:20:36]json_value_free done [00:20:36]process_json_proto returns [00:20:36]Send response to host [00:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:36]free response buf [00:20:36]execute_script done [00:20:36]execute_script returns [00:20:36]free content buf [00:20:36]Sock 7.Close socket [00:20:36]Sock 7.Thread stoped [00:20:36]accept exits with 9 [00:20:36]New connection [00:20:36]New thread 3066948964 created [00:20:36]Thread 3066805604 joined [00:20:36]Waiting for new connection... [00:20:36] Sock 9.Parse request [00:20:36]Sock 9.Check first char [00:20:36]Sock 9.First char is OK [00:20:36]request: POST /json_proto HTTP/1.0 [00:20:36]Method: POST [00:20:36]URL: /json_proto [00:20:36]Method is POST - this is cgi request [00:20:37]url: /json_proto [00:20:37]query_string will be loaded in cgi processing [00:20:37]execute_cgi json_proto POST (null) [00:20:37]execute_cgi path=json_proto method=POST [00:20:37]POST find Content-Length [00:20:37]Host: 172.17.39.195:8080 [00:20:37]Content-Length: 263 [00:20:37]Content-Type: application/json [00:20:37] [00:20:37]POST finish read [00:20:37]Found Content-Length = 263 [00:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:37]execute_script... [00:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:37]POST & json_proto [00:20:37]process_json_proto [00:20:37]json parsed OK: [00:20:37]protocol is kg_v1.0 [00:20:37]action value=x_report [00:20:37]process_action x_report [00:20:37]cmd_x_report [00:20:37]MH_GetDate [00:20:37]Write to MH i2c: F0 00 00 13 15 17 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: F0 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: F0 09 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: F0 09 00 13 15 00 58 C7 74 66 99 81 91 64 28 [00:20:37]GetLastDocTimeStamp 1718928557 [00:20:37]current date 1718929240 [00:20:37]FM_GetShiftState [00:20:37]SAM_PROTO_GetShiftState [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 01 00 [00:20:37]Write to MH i2c: E2 08 00 14 15 80 13 01 00 00 00 00 00 A6 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 14 15 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 82 [00:20:37]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetShiftState done [00:20:37]FM_GetShiftState done [00:20:37]KKMCreateXReportDocument [00:20:37]Load OK [00:20:37]Malloc new data [00:20:37]MH_GetDate [00:20:37]Write to MH i2c: F0 00 00 15 15 19 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: F0 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: F0 09 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: F0 09 00 15 15 00 58 C7 74 66 99 81 91 64 2A [00:20:37]Malloc new data [00:20:37]Malloc new data [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 11 00 00 [00:20:37]Write to MH i2c: E2 08 00 16 15 80 11 00 00 00 00 00 00 A5 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 17 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 17 00 16 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F5 [00:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetFieldsCounters [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 00 00 [00:20:37]Write to MH i2c: E2 08 00 17 15 80 13 00 00 00 00 00 00 A8 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:37]Read from MH i2c: E2 62 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 62 00 17 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [00:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetFieldsCounters done [00:20:37]Malloc new data [00:20:37]Malloc new data [00:20:37]Malloc new data [00:20:37]KKMCreateXReportDocument OK [00:20:37]KKMSetXReportData OK [00:20:37]KKMPrepareXReportFMData [00:20:37]SAM_PROTO_GetShiftData [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 02 00 [00:20:37]Write to MH i2c: E2 08 00 18 15 80 13 02 00 00 00 00 00 AB [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]OFD Sender: No OFD packet to send [00:20:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 18 15 00 B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 CB [00:20:37]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 19 15 80 17 00 00 00 00 00 00 AE [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 19 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 55 [00:20:38]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 1A 15 80 17 00 00 00 00 00 00 AF [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 1A 15 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 51 [00:20:38]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:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 1B 15 80 17 00 00 00 00 00 00 B0 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 1B 15 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 39 [00:20:39]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:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 1C 15 80 17 00 00 00 00 00 00 B1 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 D5 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 D5 00 1C 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [00:20:39]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:39]wFMCommunicate OK [00:20:39]SAM_PROTO_GetShiftData done [00:20:39]1194 (1204) - счетчики итогов смены [00:20:39] 1134 (4) - 121 - количество чеков со всеми признаками расчетов [00:20:39] 1129 (155) - счетчики операций «приход» [00:20:39] 1135 (4) - 120 - количество чеков по признаку расчетов [00:20:39] 1201 (3) - 45859.86 - общая итоговая сумма в чеках [00:20:39] 1136 (3) - 31634.00 - итоговая сумма в чеках наличными [00:20:39] 1138 (3) - 14225.86 - итоговая сумма в чеках безналичными [00:20:39] 1024 (122) - суммы налогов [00:20:39] 1006 (9) - суммы НДС [00:20:39] 1010 (1) - 0% - код ставки НДС [00:20:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:39] 1006 (12) - суммы НДС [00:20:39] 1010 (1) - 12% - код ставки НДС [00:20:39] 1011 (3) - 4871.14 - сумма НДС по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 0% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (11) - суммы НСП [00:20:39] 1014 (1) - 1% - код ставки НСП [00:20:39] 1015 (2) - 405.78 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 2% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 3% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 5% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 0,50% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 1,50% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1130 (151) - счетчики операций «возврат прихода» [00:20:39] 1135 (4) - 1 - количество чеков по признаку расчетов [00:20:39] 1201 (3) - 1285.00 - общая итоговая сумма в чеках [00:20:39] 1136 (3) - 1285.00 - итоговая сумма в чеках наличными [00:20:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:39] 1024 (121) - суммы налогов [00:20:39] 1006 (9) - суммы НДС [00:20:39] 1010 (1) - 0% - код ставки НДС [00:20:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:39] 1006 (11) - суммы НДС [00:20:39] 1010 (1) - 12% - код ставки НДС [00:20:39] 1011 (2) - 136.51 - сумма НДС по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 0% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (11) - суммы НСП [00:20:39] 1014 (1) - 1% - код ставки НСП [00:20:39] 1015 (2) - 11.38 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 2% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 3% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 5% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 0,50% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 1,50% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1131 (141) - счетчики операций «расход» [00:20:39] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:39] 1024 (117) - суммы налогов [00:20:39] 1006 (9) - суммы НДС [00:20:39] 1010 (1) - 0% - код ставки НДС [00:20:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:39] 1006 (9) - суммы НДС [00:20:39] 1010 (1) - 12% - код ставки НДС [00:20:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 0% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 1% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 2% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 3% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:39] 1007 (9) - суммы НСП [00:20:39] 1014 (1) - 5% - код ставки НСП [00:20:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 0,50% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 1,50% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1132 (141) - счетчики операций «возврат расхода» [00:20:40] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:40] 1024 (117) - суммы налогов [00:20:40] 1006 (9) - суммы НДС [00:20:40] 1010 (1) - 0% - код ставки НДС [00:20:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:40] 1006 (9) - суммы НДС [00:20:40] 1010 (1) - 12% - код ставки НДС [00:20:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 0% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 1% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 2% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 3% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 5% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 0,50% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1007 (9) - суммы НСП [00:20:40] 1014 (1) - 1,50% - код ставки НСП [00:20:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:40] 1133 (588) - - счетчики коррекции - не используются [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1194 (04AA) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1134 (046E) [00:20:40]Malloc new data [00:20:40]Processing tag 1129 (0469) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1135 (046F) [00:20:40]Malloc new data [00:20:40]Processing tag 1201 (04B1) [00:20:40]Malloc new data [00:20:40]Processing tag 1136 (0470) [00:20:40]Malloc new data [00:20:40]Processing tag 1138 (0472) [00:20:40]Malloc new data [00:20:40]Processing tag 1024 (0400) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1130 (046A) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1135 (046F) [00:20:40]Malloc new data [00:20:40]Processing tag 1201 (04B1) [00:20:40]Malloc new data [00:20:40]Processing tag 1136 (0470) [00:20:40]Malloc new data [00:20:40]Processing tag 1138 (0472) [00:20:40]Malloc new data [00:20:40]Processing tag 1024 (0400) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1131 (046B) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1135 (046F) [00:20:40]Malloc new data [00:20:40]Processing tag 1201 (04B1) [00:20:40]Malloc new data [00:20:40]Processing tag 1136 (0470) [00:20:40]Malloc new data [00:20:40]Processing tag 1138 (0472) [00:20:40]Malloc new data [00:20:40]Processing tag 1024 (0400) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1132 (046C) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1135 (046F) [00:20:40]Malloc new data [00:20:40]Processing tag 1201 (04B1) [00:20:40]Malloc new data [00:20:40]Processing tag 1136 (0470) [00:20:40]Malloc new data [00:20:40]Processing tag 1138 (0472) [00:20:40]Malloc new data [00:20:40]Processing tag 1024 (0400) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1006 (03EE) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1010 (03F2) [00:20:40]Malloc new data [00:20:40]Processing tag 1011 (03F3) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1007 (03EF) [00:20:40]Load OK [00:20:40]SetTLVBufToDocument [00:20:40]Processing tag 1014 (03F6) [00:20:40]Malloc new data [00:20:40]Processing tag 1015 (03F7) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Processing tag 1133 (046D) [00:20:40]Malloc new data [00:20:40]SetTLVBufToDocument err=0 [00:20:40]SetTLVBufToDocument err=0 [00:20:40]Malloc new data [00:20:40]SAM_PROTO_GetFMData [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 13 03 00 [00:20:40]Write to MH i2c: E2 08 00 1D 15 80 13 03 00 00 00 00 00 B1 [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 1D 15 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 D2 [00:20:41]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 17 00 00 [00:20:41]Write to MH i2c: E2 08 00 1E 15 80 17 00 00 00 00 00 00 B3 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 1E 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 68 [00:20:42]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:20:42]wFMCommunicate OK [00:20:42]wFMCommunicate request_size=4 [00:20:42]MH_SAM_APDU [00:20:42]CAPDU: 80 17 00 00 [00:20:42]Write to MH i2c: E2 08 00 1F 15 80 17 00 00 00 00 00 00 B4 [00:20:42]Write i2c OK [00:20:42]MH_I2C_Read... [00:20:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:42]Read from MH i2c: E2 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 1F 15 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 DB [00:20:42]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:20:42]wFMCommunicate OK [00:20:42]wFMCommunicate request_size=4 [00:20:42]MH_SAM_APDU [00:20:42]CAPDU: 80 17 00 00 [00:20:42]Write to MH i2c: E2 08 00 20 15 80 17 00 00 00 00 00 00 B5 [00:20:42]Write i2c OK [00:20:42]MH_I2C_Read... [00:20:42]OFD Sender: No OFD packet to send [00:20:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:42]Read from MH i2c: E2 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 20 15 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [00:20:43]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:43]wFMCommunicate OK [00:20:43]wFMCommunicate request_size=4 [00:20:43]MH_SAM_APDU [00:20:43]CAPDU: 80 17 00 00 [00:20:43]Write to MH i2c: E2 08 00 21 15 80 17 00 00 00 00 00 00 B6 [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:20:43]Read from MH i2c: E2 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 E3 00 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 E3 00 21 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 95 [00:20:43]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:43]wFMCommunicate OK [00:20:43]SAM_PROTO_GetFMData done [00:20:43]FM_GetFMData:85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:44]oper:6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 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:20:44]total:33 83 64 B0 01 [00:20:44]Malloc new data [00:20:44]oper:6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:44]total:08 B7 77 A0 [00:20:44]Malloc new data [00:20:44]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:20:44]total: [00:20:44]Malloc new data [00:20:44]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:20:44]total: [00:20:44]Malloc new data [00:20:44]KKMPrepareXReportFMData err=0 [00:20:44]Х отчет ИНН: 02508201610067 Кассир: Эсенканов Э. 21.06.2024 00:20 Смена: 266 РНМ: 0000000000095696 ЗНМ: 0300000170 СНО: Общий режим Всего чеков: 121 ИТОГИ ПРИХОД Чеков: 120 Общий итог: 45859.86 Итого наличными: 31634.00 Итого безнал.: 14225.86 НДС 0% : 0.00 НДС 12% : 4871.14 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 405.78 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 1285.00 Итого наличными: 1285.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 136.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 11.38 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 30349.00 НС Приход: 72543444.99 НС Возвр.Прихода: 26922002.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875009 [00:20:44]StoreToDocumentArchive [00:20:44]MH_GetDate [00:20:44]Write to MH i2c: F0 00 00 22 15 26 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: F0 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: F0 09 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: F0 09 00 22 15 00 60 C7 74 66 99 81 91 64 3F [00:20:44]shift 266 fd 1718929248 [00:20:44]Create dir for shift 0266 [00:20:44]save to /storage/0266/doc_1718929248 [00:20:44]save last doc name /storage/0266/doc_1718929248 to /storage/kkm_last_doc_name [00:20:44]save OK [00:20:44]Clear old archive folders... [00:20:44]NVStorageSaveData kkm_last_timestamp [00:20:44]File name is /storage/kkm_last_timestamp [00:20:44]Write 4 bytes [00:20:44]NVStorageSaveData done [00:20:44]ExternCall_PrintAddStr [00:20:44]wPrintStart [00:20:44]Write to MH i2c: 01 00 00 23 15 38 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 23 15 00 00 00 00 00 FF 0F 4D [00:20:44]RasterBufferAndPrint [00:20:44]line Х отчет [00:20:44]line ИНН: 02508201610067 [00:20:44]line Кассир: Эсенканов Э. [00:20:44]line 21.06.2024 00:20 [00:20:44]line Смена: 266 [00:20:44]line РНМ: 0000000000095696 [00:20:44]line ЗНМ: 0300000170 [00:20:44]line СНО: Общий режим [00:20:44]line Всего чеков: 121 [00:20:44]line ИТОГИ ПРИХОД [00:20:44]line Чеков: 120 [00:20:44]line Общий итог: 45859.86 [00:20:44]line Итого наличными: 31634.00 [00:20:44]line Итого безнал.: 14225.86 [00:20:44]line НДС 0% : 0.00 [00:20:44]line НДС 12% : 4871.14 [00:20:44]line НСП 0% : 0.00 [00:20:44]line НСП 1,50% : 0.00 [00:20:44]line НСП 0,50% : 0.00 [00:20:45]line НСП 5% : 0.00 [00:20:45]line НСП 3% : 0.00 [00:20:45]line НСП 2% : 0.00 [00:20:45]line НСП 1% : 405.78 [00:20:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:45]line Чеков: 1 [00:20:45]line Общий итог: 1285.00 [00:20:45]line Итого наличными: 1285.00 [00:20:45]line Итого безнал.: 0.00 [00:20:45]line НДС 0% : 0.00 [00:20:45]line НДС 12% : 136.51 [00:20:45]line НСП 0% : 0.00 [00:20:45]line НСП 1,50% : 0.00 [00:20:45]line НСП 0,50% : 0.00 [00:20:45]line НСП 5% : 0.00 [00:20:45]line НСП 3% : 0.00 [00:20:45]line НСП 2% : 0.00 [00:20:45]line НСП 1% : 11.38 [00:20:45]line ИТОГИ РАСХОД [00:20:45]line Чеков: 0 [00:20:45]line Общий итог: 0.00 [00:20:45]line Итого наличными: 0.00 [00:20:45]line Итого безнал.: 0.00 [00:20:45]line НДС 0% : 0.00 [00:20:45]line НДС 12% : 0.00 [00:20:45]line НСП 0% : 0.00 [00:20:45]line НСП 1,50% : 0.00 [00:20:45]line НСП 0,50% : 0.00 [00:20:45]line НСП 5% : 0.00 [00:20:45]line НСП 3% : 0.00 [00:20:45]line НСП 2% : 0.00 [00:20:45]line НСП 1% : 0.00 [00:20:45]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:45]line Чеков: 0 [00:20:45]line Общий итог: 0.00 [00:20:45]line Итого наличными: 0.00 [00:20:45]line Итого безнал.: 0.00 [00:20:45]line НДС 0% : 0.00 [00:20:45]line НДС 12% : 0.00 [00:20:45]line НСП 0% : 0.00 [00:20:45]line НСП 1,50% : 0.00 [00:20:45]line НСП 0,50% : 0.00 [00:20:45]line НСП 5% : 0.00 [00:20:45]line НСП 3% : 0.00 [00:20:45]line НСП 2% : 0.00 [00:20:45]line НСП 1% : 0.00 [00:20:45]line Сумма внесений: 0.00 [00:20:45]line Сумма выплат: 0.00 [00:20:45]line Нал. в кассе: 30349.00 [00:20:45]line НС Приход: 72543444.99 [00:20:45]line НС Возвр.Прихода: 26922002.00 [00:20:45]line НС Расход: 0.00 [00:20:45]line НС Возвр.Расхода: 0.00 [00:20:45]line ФМ: 0000000000875009 [00:20:45]written 0, free lines is 4095 [00:20:45]Write to MH i2c: 01 00 00 6F 15 84 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: 01 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: 01 07 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: 01 07 00 6F 15 00 00 00 00 00 A9 0A 3E [00:20:45]RasterBufferAndPrint [00:20:45]line [00:20:45]line [00:20:45]line [00:20:45]line [00:20:45]line [00:20:45]written 0, free lines is 2766 [00:20:45]MH_Cut [00:20:45]Write to MH i2c: D1 01 00 76 15 01 5D [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: D1 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: D1 01 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: D1 01 00 76 15 00 5C [00:20:45]Write to MH i2c: 01 00 00 77 15 8C [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:46]*** Cut start [00:20:46]*** Partial cut [00:20:46]*** CUTSNS_PIN = 1 [00:20:46]*** CUTSNS_PIN = 0 [00:20:47]*** Brake cut motor [00:20:47]Read from MH i2c: 01 [00:20:47]MH_I2C_Read... [00:20:47]*** Stop cut motor [00:20:47]*** Cut end [00:20:47]Read from MH i2c: 01 07 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 FF 0F A1 [00:20:47]process_action x_report done [00:20:47]requested_data is exist [00:20:47]produce_requested_data [00:20:47]requested_item fd.num is exist - process it [00:20:47]SAM_PROTO_GetFieldsCounters [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 13 00 00 [00:20:47]Write to MH i2c: E2 08 00 78 15 80 13 00 00 00 00 00 00 09 [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 62 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 62 00 78 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [00:20:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:47]wFMCommunicate OK [00:20:47]SAM_PROTO_GetFieldsCounters done [00:20:47]requested_item shift.num is exist - process it [00:20:47]requested_item shift.opened is exist - process it [00:20:47]req_shift_opened [00:20:47]FM_GetShiftState [00:20:47]SAM_PROTO_GetShiftState [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 13 01 00 [00:20:47]Write to MH i2c: E2 08 00 79 15 80 13 01 00 00 00 00 00 0B [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]OFD Sender: No OFD packet to send [00:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 0E 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 0E 00 79 15 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 E7 [00:20:47]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:20:47]wFMCommunicate OK [00:20:47]SAM_PROTO_GetShiftState done [00:20:47]FM_GetShiftState done [00:20:47]req_shift_opened done [00:20:47]requested_item shift.open_date is exist - process it [00:20:47]req_shift_open_date [00:20:47]req_shift_open_date done [00:20:47]produce_requested_data done [00:20:47]produce_requested_data return {"fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [00:20:47]process_action_free x_report [00:20:47]json_value_free [00:20:47]json_value_free done [00:20:47]process_json_proto returns [00:20:47]Send response to host [00:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [00:20:47]free response buf [00:20:47]execute_script done [00:20:47]execute_script returns [00:20:47]free content buf [00:20:47]Sock 9.Close socket [00:20:47]Sock 9.Thread stoped [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:21]accept exits with 7 [00:21:21]New connection [00:21:21]New thread 3066805604 created [00:21:21]Thread 3066948964 joined [00:21:21]Waiting for new connection... [00:21:21] Sock 7.Parse request [00:21:21]Sock 7.Check first char [00:21:21]Sock 7.First char is OK [00:21:21]request: POST /json_proto HTTP/1.0 [00:21:21]Method: POST [00:21:21]URL: /json_proto [00:21:21]Method is POST - this is cgi request [00:21:21]url: /json_proto [00:21:21]query_string will be loaded in cgi processing [00:21:21]execute_cgi json_proto POST (null) [00:21:21]execute_cgi path=json_proto method=POST [00:21:21]POST find Content-Length [00:21:21]Host: 172.17.39.195:8080 [00:21:21]Content-Length: 215 [00:21:21]Content-Type: application/json [00:21:21] [00:21:21]POST finish read [00:21:21]Found Content-Length = 215 [00:21: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" ] } } [00:21:21]execute_script... [00:21: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" ] } } [00:21:21]POST & json_proto [00:21:21]process_json_proto [00:21:21]json parsed OK: [00:21:21]protocol is kg_v1.0 [00:21:21]action value=get_value [00:21:21]process_action get_value [00:21:21]cmd_get_value [00:21:21]process_action get_value done [00:21:21]requested_data is exist [00:21:21]produce_requested_data [00:21:21]requested_item kkm.sn is exist - process it [00:21:21]requested_item kkm.ver is exist - process it [00:21:21]requested_item fm.sn is exist - process it [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 11 00 00 [00:21:21]Write to MH i2c: E2 08 00 7A 15 80 11 00 00 00 00 00 00 09 [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 17 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 17 00 7A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 59 [00:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:21:21]wFMCommunicate OK [00:21:21]requested_item fd.num is exist - process it [00:21:21]SAM_PROTO_GetFieldsCounters [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 13 00 00 [00:21:21]Write to MH i2c: E2 08 00 7B 15 80 13 00 00 00 00 00 00 0C [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 62 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 62 00 7B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 88 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:21]wFMCommunicate OK [00:21:21]SAM_PROTO_GetFieldsCounters done [00:21:21]requested_item shift.num is exist - process it [00:21:21]requested_item shift.opened is exist - process it [00:21:21]req_shift_opened [00:21:21]FM_GetShiftState [00:21:21]SAM_PROTO_GetShiftState [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 13 01 00 [00:21:21]Write to MH i2c: E2 08 00 7C 15 80 13 01 00 00 00 00 00 0E [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 0E 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 0E 00 7C 15 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 EA [00:21:21]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:21:21]wFMCommunicate OK [00:21:21]SAM_PROTO_GetShiftState done [00:21:21]FM_GetShiftState done [00:21:21]req_shift_opened done [00:21:21]requested_item shift.open_date is exist - process it [00:21:21]req_shift_open_date [00:21:21]req_shift_open_date done [00:21:21]produce_requested_data done [00:21:21]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774} [00:21:21]process_action_free get_value [00:21:21]json_value_free [00:21:21]json_value_free done [00:21:21]process_json_proto returns [00:21:21]Send response to host [00:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76680,"shift.num":393,"shift.opened":1,"shift.open_date":1718843774}}} [00:21:21]free response buf [00:21:21]execute_script done [00:21:21]execute_script returns [00:21:21]free content buf [00:21:21]Sock 7.Close socket [00:21:21]Sock 7.Thread stoped [00:21:21]accept exits with 9 [00:21:21]New connection [00:21:21]New thread 3066948964 created [00:21:21]Thread 3066805604 joined [00:21:21]Waiting for new connection... [00:21:21] Sock 9.Parse request [00:21:21]Sock 9.Check first char [00:21:21]Sock 9.First char is OK [00:21:21]request: POST /json_proto HTTP/1.0 [00:21:21]Method: POST [00:21:21]URL: /json_proto [00:21:21]Method is POST - this is cgi request [00:21:21]url: /json_proto [00:21:21]query_string will be loaded in cgi processing [00:21:21]execute_cgi json_proto POST (null) [00:21:21]execute_cgi path=json_proto method=POST [00:21:21]POST find Content-Length [00:21:21]Host: 172.17.39.195:8080 [00:21:21]Content-Length: 331 [00:21:21]Content-Type: application/json [00:21:21] [00:21:21]POST finish read [00:21:21]Found Content-Length = 331 [00:21: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" ] } } [00:21:21]execute_script... [00:21: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" ] } } [00:21:21]POST & json_proto [00:21:21]process_json_proto [00:21:21]json parsed OK: [00:21:21]protocol is kg_v1.0 [00:21:21]action value=get_value [00:21:21]process_action get_value [00:21:21]cmd_get_value [00:21:21]process_action get_value done [00:21:21]requested_data is exist [00:21:21]produce_requested_data [00:21:21]requested_item fm.sale.total is exist - process it [00:21:21]SAM_PROTO_GetFMData [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 13 03 00 [00:21:21]Write to MH i2c: E2 08 00 7D 15 80 13 03 00 00 00 00 00 11 [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:22]Read from MH i2c: E2 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 7D 15 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 32 [00:21:22]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:21:22]wFMCommunicate OK [00:21:22]wFMCommunicate request_size=4 [00:21:22]MH_SAM_APDU [00:21:22]CAPDU: 80 17 00 00 [00:21:22]Write to MH i2c: E2 08 00 7E 15 80 17 00 00 00 00 00 00 13 [00:21:22]Write i2c OK [00:21:22]MH_I2C_Read... [00:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:22]Read from MH i2c: E2 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 7E 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 C8 [00:21:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:21:22]wFMCommunicate OK [00:21:22]wFMCommunicate request_size=4 [00:21:22]MH_SAM_APDU [00:21:22]CAPDU: 80 17 00 00 [00:21:22]Write to MH i2c: E2 08 00 7F 15 80 17 00 00 00 00 00 00 14 [00:21:22]Write i2c OK [00:21:22]MH_I2C_Read... [00:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:22]Read from MH i2c: E2 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 7F 15 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 3B [00:21:22]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:21:22]03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:21:23]wFMCommunicate OK [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 17 00 00 [00:21:23]Write to MH i2c: E2 08 00 80 15 80 17 00 00 00 00 00 00 15 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 FD 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 FD 00 80 15 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [00:21:23]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:23]wFMCommunicate OK [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 17 00 00 [00:21:23]Write to MH i2c: E2 08 00 81 15 80 17 00 00 00 00 00 00 16 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 E3 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 E3 00 81 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F5 [00:21:23]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:21:23]wFMCommunicate OK [00:21:23]SAM_PROTO_GetFMData done [00:21:23]requested_item fm.sale_refund.total is exist - process it [00:21:23]requested_item fm.buy.total is exist - process it [00:21:23]requested_item shift.sale.total is exist - process it [00:21:23]SAM_PROTO_GetShiftData [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 13 02 00 [00:21:23]Write to MH i2c: E2 08 00 82 15 80 13 02 00 00 00 00 00 15 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 82 15 00 B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 35 [00:21:24]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 17 00 00 [00:21:24]Write to MH i2c: E2 08 00 83 15 80 17 00 00 00 00 00 00 18 [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 83 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 BF [00:21:24]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 17 00 00 [00:21:24]Write to MH i2c: E2 08 00 84 15 80 17 00 00 00 00 00 00 19 [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 84 15 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 BB [00:21:25]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:21:25]wFMCommunicate OK [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 17 00 00 [00:21:25]Write to MH i2c: E2 08 00 85 15 80 17 00 00 00 00 00 00 1A [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 85 15 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 A3 [00:21:25]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:21:25]wFMCommunicate OK [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 17 00 00 [00:21:25]Write to MH i2c: E2 08 00 86 15 80 17 00 00 00 00 00 00 1B [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 D5 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 D5 00 86 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [00:21:26]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:21:26]wFMCommunicate OK [00:21:26]SAM_PROTO_GetShiftData done [00:21:26]requested_item shift.sale.total_cash is exist - process it [00:21:26]requested_item shift.sale_refund.total is exist - process it [00:21:26]requested_item shift.sale_refund.total_cash is exist - process it [00:21:26]requested_item shift.buy.total is exist - process it [00:21:26]requested_item shift.buy.total_cash is exist - process it [00:21:26]produce_requested_data done [00:21:26]produce_requested_data return {"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:26]process_action_free get_value [00:21:26]json_value_free [00:21:26]json_value_free done [00:21:26]process_json_proto returns [00:21:26]Send response to host [00:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:26]free response buf [00:21:26]execute_script done [00:21:26]execute_script returns [00:21:26]free content buf [00:21:26]Sock 9.Close socket [00:21:26]Sock 9.Thread stoped [00:21:26]accept exits with 7 [00:21:26]New connection [00:21:26]New thread 3066805604 created [00:21:26]Thread 3066948964 joined [00:21:26]Waiting for new connection... [00:21:26] Sock 7.Parse request [00:21:26]Sock 7.Check first char [00:21:26]Sock 7.First char is OK [00:21:26]request: POST /json_proto HTTP/1.0 [00:21:26]Method: POST [00:21:26]URL: /json_proto [00:21:26]Method is POST - this is cgi request [00:21:26]url: /json_proto [00:21:26]query_string will be loaded in cgi processing [00:21:26]execute_cgi json_proto POST (null) [00:21:26]execute_cgi path=json_proto method=POST [00:21:26]POST find Content-Length [00:21:26]Host: 172.17.39.195:8080 [00:21:26]Content-Length: 331 [00:21:26]Content-Type: application/json [00:21:26] [00:21:26]POST finish read [00:21:26]Found Content-Length = 331 [00:21:26]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:21:26]execute_script... [00:21:26]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:21:26]POST & json_proto [00:21:26]process_json_proto [00:21:26]json parsed OK: [00:21:26]protocol is kg_v1.0 [00:21:26]action value=get_value [00:21:26]process_action get_value [00:21:26]cmd_get_value [00:21:26]process_action get_value done [00:21:26]requested_data is exist [00:21:26]produce_requested_data [00:21:26]requested_item fm.sale.total is exist - process it [00:21:26]SAM_PROTO_GetFMData [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 13 03 00 [00:21:26]Write to MH i2c: E2 08 00 87 15 80 13 03 00 00 00 00 00 1B [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 87 15 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 3C [00:21:27]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:21:27]wFMCommunicate OK [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 17 00 00 [00:21:27]Write to MH i2c: E2 08 00 88 15 80 17 00 00 00 00 00 00 1D [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 FD 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 FD 00 88 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 D2 [00:21:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:21:27]wFMCommunicate OK [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 17 00 00 [00:21:27]Write to MH i2c: E2 08 00 89 15 80 17 00 00 00 00 00 00 1E [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 FD 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 FD 00 89 15 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 45 [00:21:28]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 OFD Sender: No OFD packet to send [00:21:28]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:21:28]wFMCommunicate OK [00:21:28]wFMCommunicate request_size=4 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 17 00 00 [00:21:28]Write to MH i2c: E2 08 00 8A 15 80 17 00 00 00 00 00 00 1F [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 FD 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 FD 00 8A 15 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [00:21:28]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:28]wFMCommunicate OK [00:21:28]wFMCommunicate request_size=4 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 17 00 00 [00:21:28]Write to MH i2c: E2 08 00 8B 15 80 17 00 00 00 00 00 00 20 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 E3 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 E3 00 8B 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FF [00:21:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:21:29]wFMCommunicate OK [00:21:29]SAM_PROTO_GetFMData done [00:21:29]requested_item fm.sale_refund.total is exist - process it [00:21:29]requested_item fm.buy.total is exist - process it [00:21:29]requested_item shift.sale.total is exist - process it [00:21:29]SAM_PROTO_GetShiftData [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 13 02 00 [00:21:29]Write to MH i2c: E2 08 00 8C 15 80 13 02 00 00 00 00 00 1F [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 8C 15 00 B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 3F [00:21:30]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 8D 15 80 17 00 00 00 00 00 00 22 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 8D 15 00 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 C9 [00:21:30]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 8E 15 80 17 00 00 00 00 00 00 23 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 8E 15 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 C5 [00:21:31]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:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 17 00 00 [00:21:31]Write to MH i2c: E2 08 00 8F 15 80 17 00 00 00 00 00 00 24 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 8F 15 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 AD [00:21:31]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:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 17 00 00 [00:21:31]Write to MH i2c: E2 08 00 90 15 80 17 00 00 00 00 00 00 25 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 D5 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 D5 00 90 15 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 06 [00:21:32]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:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_GetShiftData done [00:21:32]requested_item shift.sale.total_cash is exist - process it [00:21:32]requested_item shift.sale_refund.total is exist - process it [00:21:32]requested_item shift.sale_refund.total_cash is exist - process it [00:21:32]requested_item shift.buy.total is exist - process it [00:21:32]requested_item shift.buy.total_cash is exist - process it [00:21:32]produce_requested_data done [00:21:32]produce_requested_data return {"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:32]process_action_free get_value [00:21:32]json_value_free [00:21:32]json_value_free done [00:21:32]process_json_proto returns [00:21:32]Send response to host [00:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:32]free response buf [00:21:32]execute_script done [00:21:32]execute_script returns [00:21:32]free content buf [00:21:32]Sock 7.Close socket [00:21:32]Sock 7.Thread stoped [00:21:32]accept exits with 9 [00:21:32]New connection [00:21:32]New thread 3066948964 created [00:21:32]Thread 3066805604 joined [00:21:32]Waiting for new connection... [00:21:32] Sock 9.Parse request [00:21:32]Sock 9.Check first char [00:21:32]Sock 9.First char is OK [00:21:32]request: POST /json_proto HTTP/1.0 [00:21:32]Method: POST [00:21:32]URL: /json_proto [00:21:32]Method is POST - this is cgi request [00:21:32]url: /json_proto [00:21:32]query_string will be loaded in cgi processing [00:21:32]execute_cgi json_proto POST (null) [00:21:32]execute_cgi path=json_proto method=POST [00:21:32]POST find Content-Length [00:21:32]Host: 172.17.39.195:8080 [00:21:32]Content-Length: 266 [00:21:32]Content-Type: application/json [00:21:32] [00:21:32]POST finish read [00:21:32]Found Content-Length = 266 [00:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:32]execute_script... [00:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:32]POST & json_proto [00:21:32]process_json_proto [00:21:32]json parsed OK: [00:21:32]protocol is kg_v1.0 [00:21:32]action value=close_shift [00:21:32]process_action close_shift [00:21:32]cmd_close_shift [00:21:32]MH_GetDate [00:21:32]Write to MH i2c: F0 00 00 91 15 95 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: F0 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: F0 09 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: F0 09 00 91 15 00 90 C7 74 66 99 81 91 64 DE [00:21:32]GetLastDocTimeStamp 1718929240 [00:21:32]current date 1718929296 [00:21:32]FM_GetShiftState [00:21:32]SAM_PROTO_GetShiftState [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 13 01 00 [00:21:32]Write to MH i2c: E2 08 00 92 15 80 13 01 00 00 00 00 00 24 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 0E 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 0E 00 92 15 00 09 00 01 7E 79 73 66 00 00 00 00 90 00 00 [00:21:32]RAPDU: 09 00 01 7E 79 73 66 00 00 00 00 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_GetShiftState done [00:21:32]FM_GetShiftState done [00:21:32]KKMCreateCloseShiftDocument [00:21:32]Load OK [00:21:32]Malloc new data [00:21:32]MH_GetDate [00:21:32]Write to MH i2c: F0 00 00 93 15 97 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: F0 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: F0 09 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: F0 09 00 93 15 00 90 C7 74 66 99 81 91 64 E0 [00:21:32]Malloc new data [00:21:32]Malloc new data [00:21:32]Malloc new data [00:21:32]Malloc new data [00:21:32]KKMCreateCloseShiftDocument OK [00:21:32]KKMSetCloseShiftData OK [00:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:21:32]tlvbuf is 00F72960 [00:21:32]KKMLoadAndSignCloseShiftData [00:21:32]SAM_PROTO_ProcessDocument [00:21:32]wFMCommunicate request_size=9 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 15 01 00 04 05 00 49 00 [00:21:32]Write to MH i2c: E2 0C 00 94 15 80 15 01 00 04 00 05 00 49 00 00 00 7E [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=23 [00:21:32]MH_SAM_APDU [00:21:32]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:21:32]Write to MH i2c: E2 1A 00 95 15 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 1F [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=32 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 [00:21:32]Write to MH i2c: E2 23 00 96 15 80 15 02 00 1B 00 FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 00 00 EB [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=13 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 15 02 00 08 F4 03 04 00 90 C7 74 66 [00:21:32]Write to MH i2c: E2 10 00 97 15 80 15 02 00 08 00 F4 03 04 00 90 C7 74 66 00 00 68 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=25 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 [00:21:32]Write to MH i2c: E2 1C 00 98 15 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 00 00 99 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 03 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [00:21:33]RAPDU: 90 00 [00:21:33]wFMCommunicate OK [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 15 03 00 [00:21:33]Write to MH i2c: E2 08 00 99 15 80 15 03 00 00 00 00 00 2F [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]OFD Sender: No OFD packet to send [00:21:33]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 FD 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 FD 00 99 15 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 89 2B 01 00 0E 04 04 00 89 01 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 90 00 98 [00:21:33]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 89 2B 01 00 0E 04 04 00 89 01 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 90 00 [00:21:33]wFMCommunicate OK [00:21:33]SAM_PROTO_ProcessDocument answer len = 1275 [00:21:33]SAM_PROTO_ProcessDocument remain to read = 1027 [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 17 00 00 [00:21:33]Write to MH i2c: E2 08 00 9A 15 80 17 00 00 00 00 00 00 2F [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 9A 15 00 04 03 00 F4 F5 01 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 53 35 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 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 85 [00:21:34]RAPDU: 04 03 00 F4 F5 01 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 53 35 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 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:21:34]wFMCommunicate OK [00:21:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:34]SAM_PROTO_ProcessDocument remain to read = 777 [00:21:34]wFMCommunicate request_size=4 [00:21:34]MH_SAM_APDU [00:21:34]CAPDU: 80 17 00 00 [00:21:34]Write to MH i2c: E2 08 00 9B 15 80 17 00 00 00 00 00 00 30 [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 9B 15 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 92 [00:21:34]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:21:35]wFMCommunicate OK [00:21:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:35]SAM_PROTO_ProcessDocument remain to read = 527 [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 17 00 00 [00:21:35]Write to MH i2c: E2 08 00 9C 15 80 17 00 00 00 00 00 00 31 [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 FD 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 FD 00 9C 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 44 [00:21:35]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 00 EF 03 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 [00:21:35]wFMCommunicate OK [00:21:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:35]SAM_PROTO_ProcessDocument remain to read = 277 [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 17 00 00 [00:21:35]Write to MH i2c: E2 08 00 9D 15 80 17 00 00 00 00 00 00 32 [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:35]Read from MH i2c: E2 FD 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 FD 00 9D 15 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 71 [00:21:36]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:21:36]wFMCommunicate OK [00:21:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:36]SAM_PROTO_ProcessDocument remain to read = 27 [00:21:36]wFMCommunicate request_size=4 [00:21:36]MH_SAM_APDU [00:21:36]CAPDU: 80 17 00 00 [00:21:36]Write to MH i2c: E2 08 00 9E 15 80 17 00 00 00 00 00 00 33 [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 1E 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 1E 00 9E 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D4 3A 58 6B 42 4C 90 00 CF [00:21:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D4 3A 58 6B 42 4C 90 00 [00:21:36]wFMCommunicate OK [00:21:36]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:21:36]SAM_PROTO_ProcessDocument done [00:21:36]1209 (1) - 1.0 - номер версии ФФД [00:21:36]1041 (16) - 0000000000875009 - номер ФМ [00:21:36]1040 (4) - 76681 - номер ФД [00:21:36]1038 (4) - 393 - номер смены [00:21:36]1118 (4) - 121 - количество кассовых чеков за смену [00:21:36]1111 (4) - 123 - общее количество ФД за смену [00:21:36]1194 (1204) - счетчики итогов смены [00:21:36] 1134 (4) - 121 - количество чеков со всеми признаками расчетов [00:21:36] 1129 (155) - счетчики операций «приход» [00:21:36] 1135 (4) - 120 - количество чеков по признаку расчетов [00:21:36] 1201 (3) - 45859.86 - общая итоговая сумма в чеках [00:21:36] 1136 (3) - 31634.00 - итоговая сумма в чеках наличными [00:21:36] 1138 (3) - 14225.86 - итоговая сумма в чеках безналичными [00:21:36] 1024 (122) - суммы налогов [00:21:36] 1006 (9) - суммы НДС [00:21:36] 1010 (1) - 0% - код ставки НДС [00:21:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:36] 1006 (12) - суммы НДС [00:21:36] 1010 (1) - 12% - код ставки НДС [00:21:36] 1011 (3) - 4871.14 - сумма НДС по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (11) - суммы НСП [00:21:36] 1014 (1) - 1% - код ставки НСП [00:21:36] 1015 (2) - 405.78 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 2% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 3% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 5% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 1,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1130 (151) - счетчики операций «возврат прихода» [00:21:36] 1135 (4) - 1 - количество чеков по признаку расчетов [00:21:36] 1201 (3) - 1285.00 - общая итоговая сумма в чеках [00:21:36] 1136 (3) - 1285.00 - итоговая сумма в чеках наличными [00:21:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:36] 1024 (121) - суммы налогов [00:21:36] 1006 (9) - суммы НДС [00:21:36] 1010 (1) - 0% - код ставки НДС [00:21:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:36] 1006 (11) - суммы НДС [00:21:36] 1010 (1) - 12% - код ставки НДС [00:21:36] 1011 (2) - 136.51 - сумма НДС по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (11) - суммы НСП [00:21:36] 1014 (1) - 1% - код ставки НСП [00:21:36] 1015 (2) - 11.38 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 2% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 3% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 5% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 1,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1131 (141) - счетчики операций «расход» [00:21:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:36] 1024 (117) - суммы налогов [00:21:36] 1006 (9) - суммы НДС [00:21:36] 1010 (1) - 0% - код ставки НДС [00:21:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:36] 1006 (9) - суммы НДС [00:21:36] 1010 (1) - 12% - код ставки НДС [00:21:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 1% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 2% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 3% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 5% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 1,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1132 (141) - счетчики операций «возврат расхода» [00:21:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:36] 1024 (117) - суммы налогов [00:21:36] 1006 (9) - суммы НДС [00:21:36] 1010 (1) - 0% - код ставки НДС [00:21:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:36] 1006 (9) - суммы НДС [00:21:36] 1010 (1) - 12% - код ставки НДС [00:21:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 1% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 2% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 3% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 5% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 0,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1007 (9) - суммы НСП [00:21:36] 1014 (1) - 1,50% - код ставки НСП [00:21:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:36] 1133 (588) - - счетчики коррекции - не используются [00:21:36]1077 (6) - 233347056616012 - ФПД [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1209 (04B9) [00:21:36]Malloc new data [00:21:36]Processing tag 1041 (0411) [00:21:36]Processing tag 1040 (0410) [00:21:36]Malloc new data [00:21:36]Processing tag 1038 (040E) [00:21:36]Malloc new data [00:21:36]Processing tag 1118 (045E) [00:21:36]Malloc new data [00:21:36]Processing tag 1111 (0457) [00:21:36]Malloc new data [00:21:36]Processing tag 1194 (04AA) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1134 (046E) [00:21:36]Malloc new data [00:21:36]Processing tag 1129 (0469) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1135 (046F) [00:21:36]Malloc new data [00:21:36]Processing tag 1201 (04B1) [00:21:36]Malloc new data [00:21:36]Processing tag 1136 (0470) [00:21:36]Malloc new data [00:21:36]Processing tag 1138 (0472) [00:21:36]Malloc new data [00:21:36]Processing tag 1024 (0400) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1130 (046A) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1135 (046F) [00:21:36]Malloc new data [00:21:36]Processing tag 1201 (04B1) [00:21:36]Malloc new data [00:21:36]Processing tag 1136 (0470) [00:21:36]Malloc new data [00:21:36]Processing tag 1138 (0472) [00:21:36]Malloc new data [00:21:36]Processing tag 1024 (0400) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]SetTLVBufToDocument err=0 [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1131 (046B) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1135 (046F) [00:21:37]Malloc new data [00:21:37]Processing tag 1201 (04B1) [00:21:37]Malloc new data [00:21:37]Processing tag 1136 (0470) [00:21:37]Malloc new data [00:21:37]Processing tag 1138 (0472) [00:21:37]Malloc new data [00:21:37]Processing tag 1024 (0400) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1006 (03EE) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1010 (03F2) [00:21:37]Malloc new data [00:21:37]Processing tag 1011 (03F3) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1006 (03EE) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1010 (03F2) [00:21:37]Malloc new data [00:21:37]Processing tag 1011 (03F3) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]SetTLVBufToDocument err=0 [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1132 (046C) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1135 (046F) [00:21:37]Malloc new data [00:21:37]Processing tag 1201 (04B1) [00:21:37]Malloc new data [00:21:37]Processing tag 1136 (0470) [00:21:37]Malloc new data [00:21:37]Processing tag 1138 (0472) [00:21:37]Malloc new data [00:21:37]Processing tag 1024 (0400) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1006 (03EE) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1010 (03F2) [00:21:37]Malloc new data [00:21:37]Processing tag 1011 (03F3) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1006 (03EE) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1010 (03F2) [00:21:37]Malloc new data [00:21:37]Processing tag 1011 (03F3) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1007 (03EF) [00:21:37]Load OK [00:21:37]SetTLVBufToDocument [00:21:37]Processing tag 1014 (03F6) [00:21:37]Malloc new data [00:21:37]Processing tag 1015 (03F7) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]SetTLVBufToDocument err=0 [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1133 (046D) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Processing tag 1077 (0435) [00:21:37]Malloc new data [00:21:37]SetTLVBufToDocument err=0 [00:21:37]Malloc new data [00:21:37]SAM_PROTO_GetFMData [00:21:37]wFMCommunicate request_size=4 [00:21:37]MH_SAM_APDU [00:21:37]CAPDU: 80 13 03 00 [00:21:37]Write to MH i2c: E2 08 00 9F 15 80 13 03 00 00 00 00 00 33 [00:21:37]Write i2c OK [00:21:37]MH_I2C_Read... [00:21:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:37]Read from MH i2c: E2 [00:21:37]MH_I2C_Read... [00:21:37]Read from MH i2c: E2 FD 00 [00:21:37]MH_I2C_Read... [00:21:37]Read from MH i2c: E2 FD 00 9F 15 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 54 [00:21:38]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:21:38]wFMCommunicate OK [00:21:38]wFMCommunicate request_size=4 [00:21:38]MH_SAM_APDU [00:21:38]CAPDU: 80 17 00 00 [00:21:38]Write to MH i2c: E2 08 00 A0 15 80 17 00 00 00 00 00 00 35 [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:38]OFD Sender: No OFD packet to send [00:21:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:38]Read from MH i2c: E2 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 FD 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 FD 00 A0 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 EA [00:21:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:21:38]wFMCommunicate OK [00:21:38]wFMCommunicate request_size=4 [00:21:38]MH_SAM_APDU [00:21:38]CAPDU: 80 17 00 00 [00:21:38]Write to MH i2c: E2 08 00 A1 15 80 17 00 00 00 00 00 00 36 [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:39]Read from MH i2c: E2 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: E2 FD 00 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: E2 FD 00 A1 15 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 5D [00:21:39]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:21:39]wFMCommunicate OK [00:21:39]wFMCommunicate request_size=4 [00:21:39]MH_SAM_APDU [00:21:39]CAPDU: 80 17 00 00 [00:21:39]Write to MH i2c: E2 08 00 A2 15 80 17 00 00 00 00 00 00 37 [00:21:39]Write i2c OK [00:21:39]MH_I2C_Read... [00:21:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:39]Read from MH i2c: E2 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: E2 FD 00 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: E2 FD 00 A2 15 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [00:21:40]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:40]wFMCommunicate OK [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 17 00 00 [00:21:40]Write to MH i2c: E2 08 00 A3 15 80 17 00 00 00 00 00 00 38 [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 E3 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 E3 00 A3 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 17 [00:21:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_GetFMData done [00:21:40]Malloc new data [00:21:40]Malloc new data [00:21:40]Malloc new data [00:21:40]Malloc new data [00:21:40]KKMLoadAndSignCloseShiftData err=0 [00:21:40]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Эсенканов Э. 21.06.2024 00:21 Смена: 393 РНМ: 0000000000095696 ЗНМ: 0300000170 СНО: Общий режим Чеков за смену: 121 ФД за смену: 123 Всего чеков: 121 ИТОГИ ПРИХОД Чеков: 120 Общий итог: 45859.86 Итого наличными: 31634.00 Итого безнал.: 14225.86 НДС 0% : 0.00 НДС 12% : 4871.14 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 405.78 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 1285.00 Итого наличными: 1285.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 136.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 11.38 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 30349.00 НС Приход: 72543444.99 НС Возвр.Прихода: 26922002.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 76681 ФМ: 0000000000875009 ФПД: 233347056616012 [00:21:40]StoreToDocumentArchive [00:21:40]shift 393 fd 76681 [00:21:40]save to /storage/0393/doc_00076681 [00:21:40]save last doc name /storage/0393/doc_00076681 to /storage/kkm_last_doc_name [00:21:40]save OK [00:21:40]Clear old archive folders... [00:21:40]Remove dir /storage/0266 [00:21:40]opendir ok [00:21:40]file . [00:21:40]file .. [00:21:40]file doc_1718929248 [00:21:40]remove file /storage/0266/doc_1718929248 [00:21:40]remove dir /storage/0266 [00:21:40]NVStorageSaveData kkm_registers [00:21:40]File name is /storage/kkm_registers [00:21:40]Write 24 bytes [00:21:40]NVStorageSaveData done [00:21:40]NVStorageSaveData kkm_registers [00:21:40]File name is /storage/kkm_registers [00:21:40]Write 24 bytes [00:21:40]NVStorageSaveData done [00:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=1387 [00:21:40]tlvbuf is 00F4DC10 [00:21:40]SAM_PROTO_ClearQueue [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 09 00 00 [00:21:40]Write to MH i2c: E2 08 00 A4 15 80 09 00 00 00 00 00 00 2B [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [00:21:40]RAPDU: 90 00 [00:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_ClearQueue done [00:21:40]KKMCreateOFDPacket [00:21:40]OFDProtocolAddRootSTLVToBuf [00:21:40]FM_MakeSignedData [00:21:40]FM_MakeSignedData [00:21:41]SAM_PROTO_SignData [00:21:41]wFMCommunicate request_size=4 [00:21:41]MH_SAM_APDU [00:21:41]CAPDU: 80 0D 01 02 [00:21:41]Write to MH i2c: E2 08 00 A5 15 80 0D 01 02 00 00 00 00 33 [00:21:41]Write i2c OK [00:21:41]MH_I2C_Read... [00:21:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:41]Read from MH i2c: E2 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [00:21:41]RAPDU: 90 00 [00:21:41]wFMCommunicate OK [00:21:41]wFMCommunicate request_size=255 [00:21:41]MH_SAM_APDU [00:21:41]CAPDU: 80 0D 02 02 FA 05 00 6B 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 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 90 C7 74 66 0E 04 04 00 89 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 AA 04 DB 04 6E 04 04 00 79 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA 6E 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:21:41]Write to MH i2c: E2 02 01 A6 15 80 0D 02 02 FA 00 05 00 6B 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 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 90 C7 74 66 0E 04 04 00 89 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 AA 04 DB 04 6E 04 04 00 79 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA 6E 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 8A [00:21:41]Write i2c OK [00:21:41]MH_I2C_Read... [00:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:41]Read from MH i2c: E2 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [00:21:41]RAPDU: 90 00 [00:21:41]wFMCommunicate OK [00:21:41]wFMCommunicate request_size=255 [00:21:41]MH_SAM_APDU [00:21:41]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 9E 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 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 72 04 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 [00:21:42]Write to MH i2c: E2 02 01 A7 15 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 82 9E 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 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 72 04 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 00 00 AB [00:21:42]Write i2c OK [00:21:42]MH_I2C_Read... [00:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:42]Read from MH i2c: E2 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: E2 03 00 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [00:21:42]RAPDU: 90 00 [00:21:42]wFMCommunicate OK [00:21:42]wFMCommunicate request_size=255 [00:21:42]MH_SAM_APDU [00:21:42]CAPDU: 80 0D 02 02 FA 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:21:42]Write to MH i2c: E2 02 01 A8 15 80 0D 02 02 FA 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 00 FB [00:21:42]Write i2c OK [00:21:42]MH_I2C_Read... [00:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:43]Read from MH i2c: E2 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 03 00 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 03 00 A8 15 00 90 00 31 [00:21:43]RAPDU: 90 00 [00:21:43]wFMCommunicate OK [00:21:43]wFMCommunicate request_size=255 [00:21:43]MH_SAM_APDU [00:21:43]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 [00:21:43]Write to MH i2c: E2 02 01 A9 15 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [00:21:43]00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 F4 [00:21:43]Write i2c OK [00:21:43]MH_I2C_Read... [00:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:44]Read from MH i2c: E2 [00:21:44]MH_I2C_Read... [00:21:44]Read from MH i2c: E2 03 00 [00:21:44]MH_I2C_Read... [00:21:44]Read from MH i2c: E2 03 00 A9 15 00 90 00 32 [00:21:44]RAPDU: 90 00 [00:21:44]wFMCommunicate OK [00:21:44]wFMCommunicate request_size=255 [00:21:44]MH_SAM_APDU [00:21:44]CAPDU: 80 0D 02 02 FA 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE [00:21:44]Write to MH i2c: E2 02 01 AA 15 80 0D 02 02 FA 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 00 00 C5 [00:21:44]Write i2c OK [00:21:44]MH_I2C_Read... [00:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:44]Read from MH i2c: E2 [00:21:44]MH_I2C_Read... [00:21:44]Read from MH i2c: E2 03 00 [00:21:44]MH_I2C_Read... [00:21:44]Read from MH i2c: E2 03 00 AA 15 00 90 00 33 [00:21:44]RAPDU: 90 00 [00:21:44]wFMCommunicate OK [00:21:44]wFMCommunicate request_size=146 [00:21:44]MH_SAM_APDU [00:21:44]CAPDU: 80 0D 02 02 8D 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 D4 3A 58 6B 42 4C [00:21:44]Write to MH i2c: E2 95 00 AB 15 80 0D 02 02 8D 00 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 D4 3A 58 6B 42 4C 00 00 98 [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:45]Read from MH i2c: E2 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 03 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 03 00 AB 15 00 90 00 34 [00:21:45]RAPDU: 90 00 [00:21:45]wFMCommunicate OK [00:21:45]wFMCommunicate request_size=4 [00:21:45]MH_SAM_APDU [00:21:45]CAPDU: 80 0D 03 02 [00:21:45]Write to MH i2c: E2 08 00 AC 15 80 0D 03 02 00 00 00 00 3C [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:45]Read from MH i2c: E2 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 0B 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 0B 00 AC 15 00 76 C5 DC 33 F7 95 79 43 90 00 CF [00:21:45]RAPDU: 76 C5 DC 33 F7 95 79 43 90 00 [00:21:45]wFMCommunicate OK [00:21:45]SAM_PROTO_SignData done [00:21:45]FM_MakeSignedData done [00:21:45]CreateOFDProtocolMessage [00:21:45]wFMCommunicate request_size=4 [00:21:45]MH_SAM_APDU [00:21:45]CAPDU: 80 11 00 00 [00:21:45]Write to MH i2c: E2 08 00 AD 15 80 11 00 00 00 00 00 00 3C [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:45]Read from MH i2c: E2 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 17 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 17 00 AD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8C [00:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:21:45]wFMCommunicate OK [00:21:45]CreateOFDProtocolMessage done [00:21:45]OFDSenderStorePacket 76681 [00:21:45]StoreOFDPacket docnum=76681 [00:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 7F 05 00 00 C8 9E 77 05 A1 4E 5A 05 01 00 05 00 6B 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 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 90 C7 74 66 0E 04 04 00 89 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 AA 04 DB 04 6E 04 04 00 79 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA 6E 07 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 82 9E 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 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 72 04 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 89 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 D4 3A 58 6B 42 4C 76 C5 DC 33 F7 95 79 43 [00:21:45]CheckFolder [00:21:45]dirname=/storage/ofd_packets [00:21:45]CheckFolder done [00:21:45]ProducePacketName [00:21:45]name=ofd_packets/00076681 [00:21:45]NVStorageSaveData ofd_packets/00076681 [00:21:45]File name is /storage/ofd_packets/00076681 [00:21:45]Write 1437 bytes [00:21:45]NVStorageSaveData done [00:21:45]OFDSenderStorePacket done [00:21:45]KKMCreateOFDPacket done [00:21:45]NVStorageSaveData kkm_last_timestamp [00:21:45]File name is /storage/kkm_last_timestamp [00:21:45]Write 4 bytes [00:21:45]NVStorageSaveData done [00:21:45]ExternCall_PrintAddStr [00:21:45]wPrintStart [00:21:45]Write to MH i2c: 01 00 00 AE 15 C3 [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: 01 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: 01 07 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: 01 07 00 AE 15 00 00 00 00 00 FF 0F D8 [00:21:45]RasterBufferAndPrint [00:21:45]line Отчет о закрытии смены [00:21:45]line ФФД: 1.0 [00:21:45]line ИНН: 02508201610067 [00:21:45]line Кассир: Эсенканов Э. [00:21:45]line 21.06.2024 00:21 [00:21:45]line Смена: 393 [00:21:45]line РНМ: 0000000000095696 [00:21:45]line ЗНМ: 0300000170 [00:21:45]line СНО: Общий режим [00:21:45]line Чеков за смену: 121 [00:21:45]line ФД за смену: 123 [00:21:45]line Всего чеков: 121 [00:21:45]line ИТОГИ ПРИХОД [00:21:45]line Чеков: 120 [00:21:45]line Общий итог: 45859.86 [00:21:45]line Итого наличными: 31634.00 [00:21:45]line Итого безнал.: 14225.86 [00:21:45]line НДС 0% : 0.00 [00:21:45]line НДС 12% : 4871.14 [00:21:45]line НСП 0% : 0.00 [00:21:45]line НСП 1,50% : 0.00 [00:21:45]line НСП 0,50% : 0.00 [00:21:45]line НСП 5% : 0.00 [00:21:45]line НСП 3% : 0.00 [00:21:45]line НСП 2% : 0.00 [00:21:45]line НСП 1% : 405.78 [00:21:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:21:45]line Чеков: 1 [00:21:45]line Общий итог: 1285.00 [00:21:45]line Итого наличными: 1285.00 [00:21:45]line Итого безнал.: 0.00 [00:21:45]line НДС 0% : 0.00 [00:21:45]line НДС 12% : 136.51 [00:21:45]line НСП 0% : 0.00 [00:21:45]line НСП 1,50% : 0.00 [00:21:45]line НСП 0,50% : 0.00 [00:21:45]line НСП 5% : 0.00 [00:21:45]line НСП 3% : 0.00 [00:21:45]line НСП 2% : 0.00 [00:21:45]line НСП 1% : 11.38 [00:21:45]line ИТОГИ РАСХОД [00:21:45]line Чеков: 0 [00:21:45]line Общий итог: 0.00 [00:21:45]line Итого наличными: 0.00 [00:21:45]line Итого безнал.: 0.00 [00:21:45]line НДС 0% : 0.00 [00:21:45]line НДС 12% : 0.00 [00:21:45]line НСП 0% : 0.00 [00:21:45]line НСП 1,50% : 0.00 [00:21:45]line НСП 0,50% : 0.00 [00:21:45]line НСП 5% : 0.00 [00:21:45]line НСП 3% : 0.00 [00:21:45]line НСП 2% : 0.00 [00:21:45]line НСП 1% : 0.00 [00:21:45]line ИТОГИ ВОЗВРАТ РАСХОДА [00:21:45]line Чеков: 0 [00:21:45]line Общий итог: 0.00 [00:21:45]line Итого наличными: 0.00 [00:21:45]line Итого безнал.: 0.00 [00:21:45]line НДС 0% : 0.00 [00:21:45]line НДС 12% : 0.00 [00:21:45]line НСП 0% : 0.00 [00:21:45]line НСП 1,50% : 0.00 [00:21:45]line НСП 0,50% : 0.00 [00:21:45]line НСП 5% : 0.00 [00:21:45]line НСП 3% : 0.00 [00:21:45]line НСП 2% : 0.00 [00:21:45]line НСП 1% : 0.00 [00:21:45]line Сумма внесений: 0.00 [00:21:45]line Сумма выплат: 0.00 [00:21:45]line Нал. в кассе: 30349.00 [00:21:45]line НС Приход: 72543444.99 [00:21:45]line НС Возвр.Прихода: 26922002.00 [00:21:45]OFD Sender: Processing packet 76681 [packets to send 351, broken 350] [00:21:45]line НС Расход: 0.00 [00:21:45]ProducePacketName [00:21:45]line НС Возвр.Расхода: 0.00 [00:21:45]name=ofd_packets/00076681 [00:21:45]line ФД: 76681 [00:21:45]OFD Sender: To server: pG, [00:21:45]line ФМ: 0000000000875009 [00:21:45]CommunicateWithHost lk.salyk.kg:30040 [00:21:45]line ФПД: 233347056616012 [00:21:45]ConnectInit lk.salyk.kg [00:21:45]written 0, free lines is 4095 [00:21:46]Connected sock=10 [00:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 7F 05 00 00 C8 9E 77 05 A1 4E 5A 05 01 00 05 00 6B 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 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 90 C7 74 66 0E 04 04 00 89 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 AA 04 DB 04 6E 04 04 00 79 00 00 00 69 04 A2 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA 6E 07 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 82 9E 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 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 72 04 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 Write to MH i2c: 01 00 00 00 00 EF FF 03 15 0A 14 00 F6 03 01 00 06 F7 03 01 00 00 [00:21:46]EF Write i2c OK [00:21:46]03 MH_I2C_Read... [00:21:46]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 Read from MH i2c: 00 01 F6 [00:21:47]03 01 MH_I2C_Read... [00:21:47]00 02 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 07 01 00 00 [00:21:47]03 F7 03 00 00 EF 03 09 00 F6 03 01 MH_I2C_Read... [00:21:47]00 Read from MH i2c: 04 01 F7 07 03 00 00 FF 00 15 EF 00 03 00 09 00 00 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 A1 00 0A 70 C6 04 [00:21:47]00 RasterBufferAndPrint [00:21:47]line [00:21:47]line [00:21:47]line [00:21:47]line [00:21:47]line [00:21:47]00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 written 0, free lines is 3467 [00:21:47]00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 MH_Cut [00:21:47]00 Write to MH i2c: F6 D1 03 01 01 00 00 06 04 16 F7 01 03 EE 00 [00:21:47]00 EF 03 09 00 F6 03 01 00 05 F7 03 Write i2c OK [00:21:47]00 MH_I2C_Read... [00:21:47]00 Read from MH i2c: EF D1 03 [00:21:47]09 00 MH_I2C_Read... [00:21:47]F6 03 01 00 06 F7 03 00 Read from MH i2c: 00 D1 7A 01 04 00 8D [00:21:47]00 MH_I2C_Read... [00:21:47]6F Read from MH i2c: 04 D1 04 01 00 00 00 06 00 16 00 00 00 ED B1 [00:21:47]04 Write to MH i2c: 00 01 00 00 70 00 04 07 00 16 00 1D [00:21:47]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:21:47]03 MH_I2C_Read... [00:21:47]01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 D4 3A 58 6B 42 4C 76 C5 DC 33 F7 95 79 *** Cut start [00:21:47]43 *** Partial cut [00:21:48] [00:21:48]*** CUTSNS_PIN = 1 [00:21:48]*** CUTSNS_PIN = 0 [00:21:48]*** Brake cut motor [00:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 7A 6E 47 00 F3 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 89 2B 01 00 F4 03 04 00 3C 6E 74 66 B6 04 01 00 00 40 5A 84 C0 3A 9B F7 7C [00:21:48]CommunicateWithHost err = 0 [00:21:48]CheckOFDResponse [00:21:48]1017 (14) - 77093643461234 [00:21:48]1041 (16) - 0000000000875009 [00:21:48]1040 (4) - 76681 [00:21:48]1012 (4) - 20.06.2024 18:00 [00:21:48]1206 (1) - 0 [00:21:48]OFD Sender: Remove packet 76681 [00:21:48]ProducePacketName [00:21:48]name=ofd_packets/00076681 [00:21:48]NVStorageDeleteData [00:21:48]Read from MH i2c: 01 [00:21:48]MH_I2C_Read... [00:21:48]*** Stop cut motor [00:21:48]*** Cut end [00:21:48]Read from MH i2c: 01 07 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: 01 07 00 07 16 00 00 00 00 00 FF 0F 32 [00:21:48]process_action close_shift done [00:21:48]requested_data is exist [00:21:48]produce_requested_data [00:21:48]requested_item fd.num is exist - process it [00:21:48]SAM_PROTO_GetFieldsCounters [00:21:48]wFMCommunicate request_size=4 [00:21:48]MH_SAM_APDU [00:21:48]CAPDU: 80 13 00 00 [00:21:48]Write to MH i2c: E2 08 00 08 16 80 13 00 00 00 00 00 00 9A [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:48]Read from MH i2c: E2 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 62 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 62 00 08 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 89 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [00:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 89 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetFieldsCounters done [00:21:49]requested_item shift.num is exist - process it [00:21:49]requested_item shift.opened is exist - process it [00:21:49]req_shift_opened [00:21:49]FM_GetShiftState [00:21:49]SAM_PROTO_GetShiftState [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: OFD Sender: No OFD packet to send [00:21:49]80 13 01 00 [00:21:49]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 09 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A7 [00:21:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetShiftState done [00:21:49]FM_GetShiftState done [00:21:49]req_shift_opened done [00:21:49]requested_item shift.open_date is exist - process it [00:21:49]req_shift_open_date [00:21:49]FM_GetShiftState [00:21:49]SAM_PROTO_GetShiftState [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 13 01 00 [00:21:49]Write to MH i2c: E2 08 00 0A 16 80 13 01 00 00 00 00 00 9D [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 0A 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A8 [00:21:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetShiftState done [00:21:49]FM_GetShiftState done [00:21:49]req_shift_open_date done [00:21:49]produce_requested_data done [00:21:49]produce_requested_data return {"fd.num":76681,"shift.num":393,"shift.opened":0,"shift.open_date":0} [00:21:49]process_action_free close_shift [00:21:49]json_value_free [00:21:49]json_value_free done [00:21:49]process_json_proto returns [00:21:49]Send response to host [00:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76681,"shift.num":393,"shift.opened":0,"shift.open_date":0}}} [00:21:49]free response buf [00:21:49]execute_script done [00:21:49]execute_script returns [00:21:49]free content buf [00:21:49]Sock 9.Close socket [00:21:49]Sock 9.Thread stoped [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]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:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:17]accept exits with 7 [00:33:17]New connection [00:33:17]New thread 3066805604 created [00:33:17]Thread 3066948964 joined [00:33:17]Waiting for new connection... [00:33:17] Sock 7.Parse request [00:33:17]Sock 7.Check first char [00:33:17]Sock 7.First char is OK [00:33:17]request: POST /json_proto HTTP/1.0 [00:33:17]Method: POST [00:33:17]URL: /json_proto [00:33:17]Method is POST - this is cgi request [00:33:17]url: /json_proto [00:33:17]query_string will be loaded in cgi processing [00:33:17]execute_cgi json_proto POST (null) [00:33:17]execute_cgi path=json_proto method=POST [00:33:17]POST find Content-Length [00:33:17]Host: 172.17.39.195:8080 [00:33:17]Content-Length: 215 [00:33:17]Content-Type: application/json [00:33:17] [00:33:17]POST finish read [00:33:17]Found Content-Length = 215 [00:33: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:33:17]execute_script... [00:33: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:33:17]POST & json_proto [00:33:17]process_json_proto [00:33:17]json parsed OK: [00:33:17]protocol is kg_v1.0 [00:33:17]action value=get_value [00:33:17]process_action get_value [00:33:17]cmd_get_value [00:33:17]process_action get_value done [00:33:17]requested_data is exist [00:33:17]produce_requested_data [00:33:17]requested_item kkm.sn is exist - process it [00:33:17]requested_item kkm.ver is exist - process it [00:33:17]requested_item fm.sn is exist - process it [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 11 00 00 [00:33:17]Write to MH i2c: E2 08 00 0B 16 80 11 00 00 00 00 00 00 9B [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 17 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 17 00 0B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EB [00:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:33:17]wFMCommunicate OK [00:33:17]requested_item fd.num is exist - process it [00:33:17]SAM_PROTO_GetFieldsCounters [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 13 00 00 [00:33:17]Write to MH i2c: E2 08 00 0C 16 80 13 00 00 00 00 00 00 9E [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 62 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 62 00 0C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 89 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [00:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 89 2B 01 00 0E 04 04 00 89 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:17]wFMCommunicate OK [00:33:17]SAM_PROTO_GetFieldsCounters done [00:33:17]requested_item shift.num is exist - process it [00:33:17]requested_item shift.opened is exist - process it [00:33:17]req_shift_opened [00:33:17]FM_GetShiftState [00:33:17]SAM_PROTO_GetShiftState [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 13 01 00 [00:33:17]Write to MH i2c: E2 08 00 0D 16 80 13 01 00 00 00 00 00 A0 [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 0E 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 0E 00 0D 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AB [00:33:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:17]wFMCommunicate OK [00:33:17]SAM_PROTO_GetShiftState done [00:33:17]FM_GetShiftState done [00:33:17]req_shift_opened done [00:33:17]requested_item shift.open_date is exist - process it [00:33:17]req_shift_open_date [00:33:17]FM_GetShiftState [00:33:17]SAM_PROTO_GetShiftState [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 13 01 00 [00:33:17]Write to MH i2c: E2 08 00 0E 16 80 13 01 00 00 00 00 00 A1 [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 0E 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 0E 00 0E 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AC [00:33:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:17]wFMCommunicate OK [00:33:17]SAM_PROTO_GetShiftState done [00:33:17]FM_GetShiftState done [00:33:17]req_shift_open_date done [00:33:17]produce_requested_data done [00:33:17]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76681,"shift.num":393,"shift.opened":0,"shift.open_date":0} [00:33:17]process_action_free get_value [00:33:17]json_value_free [00:33:17]json_value_free done [00:33:17]process_json_proto returns [00:33:17]Send response to host [00:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76681,"shift.num":393,"shift.opened":0,"shift.open_date":0}}} [00:33:17]free response buf [00:33:17]execute_script done [00:33:17]execute_script returns [00:33:17]free content buf [00:33:17]Sock 7.Close socket [00:33:17]Sock 7.Thread stoped [00:33:17]accept exits with 9 [00:33:17]New connection [00:33:17]New thread 3066948964 created [00:33:17]Thread 3066805604 joined [00:33:17]Waiting for new connection... [00:33:17] Sock 9.Parse request [00:33:17]Sock 9.Check first char [00:33:17]Sock 9.First char is OK [00:33:17]request: POST /json_proto HTTP/1.0 [00:33:17]Method: POST [00:33:17]URL: /json_proto [00:33:17]Method is POST - this is cgi request [00:33:17]url: /json_proto [00:33:17]query_string will be loaded in cgi processing [00:33:17]execute_cgi json_proto POST (null) [00:33:17]execute_cgi path=json_proto method=POST [00:33:17]POST find Content-Length [00:33:17]Host: 172.17.39.195:8080 [00:33:17]Content-Length: 331 [00:33:17]Content-Type: application/json [00:33:17] [00:33:17]POST finish read [00:33:17]Found Content-Length = 331 [00:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:17]execute_script... [00:33:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:17]POST & json_proto [00:33:17]process_json_proto [00:33:17]json parsed OK: [00:33:17]protocol is kg_v1.0 [00:33:17]action value=get_value [00:33:17]process_action get_value [00:33:17]cmd_get_value [00:33:17]process_action get_value done [00:33:17]requested_data is exist [00:33:17]produce_requested_data [00:33:17]requested_item fm.sale.total is exist - process it [00:33:17]SAM_PROTO_GetFMData [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 13 03 00 [00:33:17]Write to MH i2c: E2 08 00 0F 16 80 13 03 00 00 00 00 00 A4 [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 0F 16 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 C5 [00:33:18]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 10 16 80 17 00 00 00 00 00 00 A6 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 10 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 5B [00:33:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 11 16 80 17 00 00 00 00 00 00 A7 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 11 16 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 CE [00:33:18]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 12 16 80 17 00 00 00 00 00 00 A8 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 12 16 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 23 [00:33:19]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:19]wFMCommunicate OK [00:33:19]wFMCommunicate request_size=4 [00:33:19]MH_SAM_APDU [00:33:19]CAPDU: 80 17 00 00 [00:33:19]Write to MH i2c: E2 08 00 13 16 80 17 00 00 00 00 00 00 A9 [00:33:19]Write i2c OK [00:33:19]MH_I2C_Read... [00:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:33:19]Read from MH i2c: E2 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 E3 00 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 E3 00 13 16 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [00:33:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:33:19]wFMCommunicate OK [00:33:19]SAM_PROTO_GetFMData done [00:33:19]requested_item fm.sale_refund.total is exist - process it [00:33:19]requested_item fm.buy.total is exist - process it [00:33:19]requested_item shift.sale.total is exist - process it [00:33:19]SAM_PROTO_GetShiftData [00:33:19]wFMCommunicate request_size=4 [00:33:19]MH_SAM_APDU [00:33:19]CAPDU: 80 13 02 00 [00:33:19]Write to MH i2c: E2 08 00 14 16 80 13 02 00 00 00 00 00 A8 [00:33:19]Write i2c OK [00:33:19]MH_I2C_Read... [00:33:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:19]Read from MH i2c: E2 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 14 16 00 B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 C8 [00:33:19]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 78 00 00 00 B1 04 03 00 02 FA 45 70 04 03 00 08 45 30 72 04 03 00 FA B4 15 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 CA 6E 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 82 9E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 F4 F5 01 70 04 03 00 F4 F5 01 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 53 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:33:19]wFMCommunicate OK [00:33:19]wFMCommunicate request_size=4 [00:33:19]MH_SAM_APDU [00:33:19]CAPDU: 80 17 00 00 [00:33:19]Write to MH i2c: E2 08 00 15 16 80 17 00 00 00 00 00 00 AB [00:33:19]Write i2c OK [00:33:19]MH_I2C_Read... [00:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:19]Read from MH i2c: E2 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 15 16 00 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 52 [00:33:20]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 72 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=4 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 17 00 00 [00:33:20]Write to MH i2c: E2 08 00 16 16 80 17 00 00 00 00 00 00 AC [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 FD 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 FD 00 16 16 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 4E [00:33:20]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:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=4 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 17 00 00 [00:33:20]Write to MH i2c: E2 08 00 17 16 80 17 00 00 00 00 00 00 AD [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]OFD Sender: No OFD packet to send [00:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 FD 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 FD 00 17 16 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 36 [00:33:20]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:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=4 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 17 00 00 [00:33:20]Write to MH i2c: E2 08 00 18 16 80 17 00 00 00 00 00 00 AE [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 D5 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 D5 00 18 16 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [00:33:20]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:33:20]wFMCommunicate OK [00:33:20]SAM_PROTO_GetShiftData done [00:33:20]requested_item shift.sale.total_cash is exist - process it [00:33:20]requested_item shift.sale_refund.total is exist - process it [00:33:20]requested_item shift.sale_refund.total_cash is exist - process it [00:33:20]requested_item shift.buy.total is exist - process it [00:33:20]requested_item shift.buy.total_cash is exist - process it [00:33:20]produce_requested_data done [00:33:20]produce_requested_data return {"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:33:20]process_action_free get_value [00:33:20]json_value_free [00:33:20]json_value_free done [00:33:20]process_json_proto returns [00:33:20]Send response to host [00:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":45859.86,"shift.sale.total_cash":31634.00,"shift.sale_refund.total":1285.00,"shift.sale_refund.total_cash":1285.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:33:20]free response buf [00:33:20]execute_script done [00:33:20]execute_script returns [00:33:20]free content buf [00:33:20]Sock 9.Close socket [00:33:20]Sock 9.Thread stoped [00:33:21]accept exits with 7 [00:33:21]New connection [00:33:21]New thread 3066805604 created [00:33:21]Thread 3066948964 joined [00:33:21]Waiting for new connection... [00:33:21] Sock 7.Parse request [00:33:21]Sock 7.Check first char [00:33:21]Sock 7.First char is OK [00:33:21]request: POST /json_proto HTTP/1.0 [00:33:21]Method: POST [00:33:21]URL: /json_proto [00:33:21]Method is POST - this is cgi request [00:33:21]url: /json_proto [00:33:21]query_string will be loaded in cgi processing [00:33:21]execute_cgi json_proto POST (null) [00:33:21]execute_cgi path=json_proto method=POST [00:33:21]POST find Content-Length [00:33:21]Host: 172.17.39.195:8080 [00:33:21]Content-Length: 265 [00:33:21]Content-Type: application/json [00:33:21] [00:33:21]POST finish read [00:33:21]Found Content-Length = 265 [00:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u043E\u043D\u0443\u0440\u0431\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:21]execute_script... [00:33:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u043E\u043D\u0443\u0440\u0431\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:21]POST & json_proto [00:33:21]process_json_proto [00:33:21]json parsed OK: [00:33:21]protocol is kg_v1.0 [00:33:21]action value=open_shift [00:33:21]process_action open_shift [00:33:21]cmd_open_shift [00:33:21]MH_GetDate [00:33:21]Write to MH i2c: F0 00 00 19 16 1E [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: F0 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: F0 09 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: F0 09 00 19 16 00 54 CA 74 66 99 81 91 64 2E [00:33:21]GetLastDocTimeStamp 1718929296 [00:33:21]current date 1718930004 [00:33:21]FM_GetShiftState [00:33:21]SAM_PROTO_GetShiftState [00:33:21]wFMCommunicate request_size=4 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 13 01 00 [00:33:21]Write to MH i2c: E2 08 00 1A 16 80 13 01 00 00 00 00 00 AD [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 0E 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 0E 00 1A 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B8 [00:33:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:21]wFMCommunicate OK [00:33:21]SAM_PROTO_GetShiftState done [00:33:21]FM_GetShiftState done [00:33:21]KKMCreateOpenShiftDocument [00:33:21]Load OK [00:33:21]Malloc new data [00:33:21]MH_GetDate [00:33:21]Write to MH i2c: F0 00 00 1B 16 20 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: F0 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: F0 09 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: F0 09 00 1B 16 00 55 CA 74 66 99 81 91 64 31 [00:33:21]Malloc new data [00:33:21]KKMCreateOpenShiftDocument OK [00:33:21]KKMSetOpenShiftData OK [00:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=202 [00:33:21]tlvbuf is 00F4F4F0 [00:33:21]KKMLoadAndSignOpenShiftData [00:33:21]SAM_PROTO_ProcessDocument [00:33:21]wFMCommunicate request_size=9 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 01 00 04 02 00 CA 00 [00:33:21]Write to MH i2c: E2 0C 00 1C 16 80 15 01 00 04 00 02 00 CA 00 00 00 85 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 1C 16 00 90 00 A6 [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=23 [00:33:21]MH_SAM_APDU [00:33: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:33:21]Write to MH i2c: E2 1A 00 1D 16 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 A8 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 1D 16 00 90 00 A7 [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=32 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9A D0 BE D0 BD D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 [00:33:21]Write to MH i2c: E2 23 00 1E 16 80 15 02 00 1B 00 FD 03 17 00 D0 9A D0 BE D0 BD D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 00 00 13 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 1E 16 00 90 00 A8 [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=88 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 02 00 53 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 [00:33:21]Write to MH i2c: E2 5B 00 1F 16 80 15 02 00 53 00 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 00 00 B7 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 1F 16 00 90 00 A9 [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=51 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 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:33:21]Write to MH i2c: E2 36 00 20 16 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 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 61 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 20 16 00 90 00 AA [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=13 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 02 00 08 F4 03 04 00 55 CA 74 66 [00:33:21]Write to MH i2c: E2 10 00 21 16 80 15 02 00 08 00 F4 03 04 00 55 CA 74 66 00 00 BB [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 21 16 00 90 00 AB [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=25 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 [00:33:21]Write to MH i2c: E2 1C 00 22 16 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 00 00 24 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 22 16 00 90 00 AC [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=4 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 03 00 [00:33:21]Write to MH i2c: E2 08 00 23 16 80 15 03 00 00 00 00 00 BA [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:22]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:33:22]Read from MH i2c: E2 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 38 00 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 38 00 23 16 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8A 2B 01 00 0E 04 04 00 8A 01 00 00 35 04 06 00 D8 34 82 17 43 24 90 00 D0 [00:33:22]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8A 2B 01 00 0E 04 04 00 8A 01 00 00 35 04 06 00 D8 34 82 17 43 24 90 00 [00:33:22]wFMCommunicate OK [00:33:22]SAM_PROTO_ProcessDocument answer len = 51 [00:33:22]SAM_PROTO_ProcessDocument done [00:33:22]SetTLVBufToDocument [00:33:22]Processing tag 1209 (04B9) [00:33:22]Malloc new data [00:33:22]Processing tag 1041 (0411) [00:33:22]Processing tag 1040 (0410) [00:33:22]Malloc new data [00:33:22]Processing tag 1038 (040E) [00:33:22]Malloc new data [00:33:22]Processing tag 1077 (0435) [00:33:22]Malloc new data [00:33:22]SetTLVBufToDocument err=0 [00:33:22]KKMLoadAndSignOpenShiftData store KKM data [00:33:22]KKMLoadAndSignOpenShiftData err=0 [00:33:22]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Конурбаев Т. Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 Место: АЗС № 144 "Партнер Нефть" 21.06.2024 00:33 Смена: 394 РНМ: 0000000000095696 ЗНМ: 0300000170 ФД: 76682 ФМ: 0000000000875009 ФПД: 237720032461604 [00:33:22]StoreToDocumentArchive [00:33:22]shift 394 fd 76682 [00:33:22]Create dir for shift 0394 [00:33:22]save to /storage/0394/doc_00076682 [00:33:22]save last doc name /storage/0394/doc_00076682 to /storage/kkm_last_doc_name [00:33:22]save OK [00:33:22]Clear old archive folders... [00:33:22]Remove dir /storage/0393 [00:33:22]opendir ok [00:33:22]file . [00:33:22]file .. [00:33:22]file doc_00076559 [00:33:22]remove file /storage/0393/doc_00076559 [00:33:22]file doc_00076560 [00:33:22]remove file /storage/0393/doc_00076560 [00:33:22]file doc_00076561 [00:33:22]remove file /storage/0393/doc_00076561 [00:33:22]file doc_00076562 [00:33:22]remove file /storage/0393/doc_00076562 [00:33:22]file doc_00076563 [00:33:22]remove file /storage/0393/doc_00076563 [00:33:22]file doc_00076564 [00:33:22]remove file /storage/0393/doc_00076564 [00:33:22]file doc_00076565 [00:33:22]remove file /storage/0393/doc_00076565 [00:33:22]file doc_00076566 [00:33:22]remove file /storage/0393/doc_00076566 [00:33:22]file doc_00076567 [00:33:22]remove file /storage/0393/doc_00076567 [00:33:22]file doc_00076568 [00:33:22]remove file /storage/0393/doc_00076568 [00:33:22]file doc_00076569 [00:33:22]remove file /storage/0393/doc_00076569 [00:33:22]file doc_00076570 [00:33:22]remove file /storage/0393/doc_00076570 [00:33:22]file doc_00076571 [00:33:22]remove file /storage/0393/doc_00076571 [00:33:22]file doc_00076572 [00:33:22]remove file /storage/0393/doc_00076572 [00:33:22]file doc_00076573 [00:33:22]remove file /storage/0393/doc_00076573 [00:33:22]file doc_00076574 [00:33:22]remove file /storage/0393/doc_00076574 [00:33:22]file doc_00076575 [00:33:22]remove file /storage/0393/doc_00076575 [00:33:22]file doc_00076576 [00:33:22]remove file /storage/0393/doc_00076576 [00:33:22]file doc_00076577 [00:33:22]remove file /storage/0393/doc_00076577 [00:33:22]file doc_00076578 [00:33:22]remove file /storage/0393/doc_00076578 [00:33:22]file doc_00076579 [00:33:22]remove file /storage/0393/doc_00076579 [00:33:22]file doc_00076580 [00:33:22]remove file /storage/0393/doc_00076580 [00:33:22]file doc_00076581 [00:33:22]remove file /storage/0393/doc_00076581 [00:33:22]file doc_00076582 [00:33:22]remove file /storage/0393/doc_00076582 [00:33:22]file doc_00076583 [00:33:22]remove file /storage/0393/doc_00076583 [00:33:22]file doc_00076584 [00:33:22]remove file /storage/0393/doc_00076584 [00:33:22]file doc_00076585 [00:33:22]remove file /storage/0393/doc_00076585 [00:33:22]file doc_00076586 [00:33:22]remove file /storage/0393/doc_00076586 [00:33:22]file doc_00076587 [00:33:22]remove file /storage/0393/doc_00076587 [00:33:22]file doc_00076588 [00:33:22]remove file /storage/0393/doc_00076588 [00:33:22]file doc_00076589 [00:33:22]remove file /storage/0393/doc_00076589 [00:33:22]file doc_00076590 [00:33:22]remove file /storage/0393/doc_00076590 [00:33:22]file doc_00076591 [00:33:22]remove file /storage/0393/doc_00076591 [00:33:22]file doc_00076592 [00:33:22]remove file /storage/0393/doc_00076592 [00:33:22]file doc_00076593 [00:33:22]remove file /storage/0393/doc_00076593 [00:33:22]file doc_00076594 [00:33:22]remove file /storage/0393/doc_00076594 [00:33:22]file doc_00076595 [00:33:22]remove file /storage/0393/doc_00076595 [00:33:22]file doc_00076596 [00:33:22]remove file /storage/0393/doc_00076596 [00:33:22]file doc_00076597 [00:33:22]remove file /storage/0393/doc_00076597 [00:33:22]file doc_00076598 [00:33:22]remove file /storage/0393/doc_00076598 [00:33:22]file doc_00076599 [00:33:22]remove file /storage/0393/doc_00076599 [00:33:22]file doc_00076600 [00:33:22]remove file /storage/0393/doc_00076600 [00:33:22]file doc_00076601 [00:33:22]remove file /storage/0393/doc_00076601 [00:33:22]file doc_00076602 [00:33:22]remove file /storage/0393/doc_00076602 [00:33:22]file doc_00076603 [00:33:22]remove file /storage/0393/doc_00076603 [00:33:22]file doc_00076604 [00:33:22]remove file /storage/0393/doc_00076604 [00:33:22]file doc_00076605 [00:33:22]remove file /storage/0393/doc_00076605 [00:33:22]file doc_00076606 [00:33:22]remove file /storage/0393/doc_00076606 [00:33:22]file doc_00076607 [00:33:22]remove file /storage/0393/doc_00076607 [00:33:22]file doc_00076608 [00:33:22]remove file /storage/0393/doc_00076608 [00:33:22]file doc_00076609 [00:33:22]remove file /storage/0393/doc_00076609 [00:33:22]file doc_00076610 [00:33:22]remove file /storage/0393/doc_00076610 [00:33:22]file doc_00076611 [00:33:22]remove file /storage/0393/doc_00076611 [00:33:22]file doc_00076612 [00:33:22]remove file /storage/0393/doc_00076612 [00:33:22]file doc_00076613 [00:33:22]remove file /storage/0393/doc_00076613 [00:33:22]file doc_00076614 [00:33:22]remove file /storage/0393/doc_00076614 [00:33:22]file doc_00076615 [00:33:22]remove file /storage/0393/doc_00076615 [00:33:22]file doc_00076616 [00:33:22]remove file /storage/0393/doc_00076616 [00:33:22]file doc_00076617 [00:33:22]remove file /storage/0393/doc_00076617 [00:33:22]file doc_00076618 [00:33:22]remove file /storage/0393/doc_00076618 [00:33:22]file doc_00076619 [00:33:22]remove file /storage/0393/doc_00076619 [00:33:22]file doc_00076620 [00:33:22]remove file /storage/0393/doc_00076620 [00:33:22]file doc_00076621 [00:33:22]remove file /storage/0393/doc_00076621 [00:33:22]file doc_00076622 [00:33:22]remove file /storage/0393/doc_00076622 [00:33:22]file doc_00076623 [00:33:22]remove file /storage/0393/doc_00076623 [00:33:22]file doc_00076624 [00:33:22]remove file /storage/0393/doc_00076624 [00:33:22]file doc_00076625 [00:33:22]remove file /storage/0393/doc_00076625 [00:33:22]file doc_00076626 [00:33:22]remove file /storage/0393/doc_00076626 [00:33:22]file doc_00076627 [00:33:22]remove file /storage/0393/doc_00076627 [00:33:22]file doc_00076628 [00:33:22]remove file /storage/0393/doc_00076628 [00:33:22]file doc_00076629 [00:33:22]remove file /storage/0393/doc_00076629 [00:33:22]file doc_00076630 [00:33:22]remove file /storage/0393/doc_00076630 [00:33:22]file doc_00076631 [00:33:22]remove file /storage/0393/doc_00076631 [00:33:22]file doc_00076632 [00:33:22]remove file /storage/0393/doc_00076632 [00:33:22]file doc_00076633 [00:33:22]remove file /storage/0393/doc_00076633 [00:33:22]file doc_00076634 [00:33:22]remove file /storage/0393/doc_00076634 [00:33:22]file doc_00076635 [00:33:22]remove file /storage/0393/doc_00076635 [00:33:22]file doc_00076636 [00:33:22]remove file /storage/0393/doc_00076636 [00:33:22]file doc_00076637 [00:33:22]remove file /storage/0393/doc_00076637 [00:33:22]file doc_00076638 [00:33:22]remove file /storage/0393/doc_00076638 [00:33:22]file doc_00076639 [00:33:22]remove file /storage/0393/doc_00076639 [00:33:22]file doc_00076640 [00:33:22]remove file /storage/0393/doc_00076640 [00:33:22]file doc_00076641 [00:33:22]remove file /storage/0393/doc_00076641 [00:33:22]file doc_00076642 [00:33:22]remove file /storage/0393/doc_00076642 [00:33:22]file doc_00076643 [00:33:22]remove file /storage/0393/doc_00076643 [00:33:22]file doc_00076644 [00:33:22]remove file /storage/0393/doc_00076644 [00:33:22]file doc_00076645 [00:33:22]remove file /storage/0393/doc_00076645 [00:33:22]file doc_00076646 [00:33:22]remove file /storage/0393/doc_00076646 [00:33:22]file doc_00076647 [00:33:22]remove file /storage/0393/doc_00076647 [00:33:22]file doc_00076648 [00:33:22]remove file /storage/0393/doc_00076648 [00:33:22]file doc_00076649 [00:33:22]remove file /storage/0393/doc_00076649 [00:33:22]file doc_00076650 [00:33:22]remove file /storage/0393/doc_00076650 [00:33:22]file doc_00076651 [00:33:22]remove file /storage/0393/doc_00076651 [00:33:22]file doc_00076652 [00:33:22]remove file /storage/0393/doc_00076652 [00:33:22]file doc_00076653 [00:33:22]remove file /storage/0393/doc_00076653 [00:33:22]file doc_00076654 [00:33:22]remove file /storage/0393/doc_00076654 [00:33:22]file doc_00076655 [00:33:22]remove file /storage/0393/doc_00076655 [00:33:22]file doc_00076656 [00:33:22]remove file /storage/0393/doc_00076656 [00:33:22]file doc_00076657 [00:33:22]remove file /storage/0393/doc_00076657 [00:33:22]file doc_00076658 [00:33:22]remove file /storage/0393/doc_00076658 [00:33:22]file doc_00076659 [00:33:22]remove file /storage/0393/doc_00076659 [00:33:22]file doc_00076660 [00:33:22]remove file /storage/0393/doc_00076660 [00:33:22]file doc_00076661 [00:33:22]remove file /storage/0393/doc_00076661 [00:33:22]file doc_00076662 [00:33:22]remove file /storage/0393/doc_00076662 [00:33:22]file doc_00076663 [00:33:22]remove file /storage/0393/doc_00076663 [00:33:22]file doc_00076664 [00:33:22]remove file /storage/0393/doc_00076664 [00:33:22]file doc_00076665 [00:33:22]remove file /storage/0393/doc_00076665 [00:33:22]file doc_00076666 [00:33:22]remove file /storage/0393/doc_00076666 [00:33:22]file doc_00076667 [00:33:22]remove file /storage/0393/doc_00076667 [00:33:22]file doc_00076668 [00:33:22]remove file /storage/0393/doc_00076668 [00:33:22]file doc_00076669 [00:33:22]remove file /storage/0393/doc_00076669 [00:33:22]file doc_00076670 [00:33:22]remove file /storage/0393/doc_00076670 [00:33:22]file doc_00076671 [00:33:22]remove file /storage/0393/doc_00076671 [00:33:22]file doc_00076672 [00:33:22]remove file /storage/0393/doc_00076672 [00:33:22]file doc_00076673 [00:33:22]remove file /storage/0393/doc_00076673 [00:33:22]file doc_00076674 [00:33:22]remove file /storage/0393/doc_00076674 [00:33:22]file doc_00076675 [00:33:22]remove file /storage/0393/doc_00076675 [00:33:22]file doc_00076676 [00:33:22]remove file /storage/0393/doc_00076676 [00:33:22]file doc_00076677 [00:33:22]remove file /storage/0393/doc_00076677 [00:33:22]file doc_00076678 [00:33:22]remove file /storage/0393/doc_00076678 [00:33:22]file doc_00076679 [00:33:22]remove file /storage/0393/doc_00076679 [00:33:22]file doc_00076680 [00:33:22]remove file /storage/0393/doc_00076680 [00:33:22]file doc_00076681 [00:33:22]remove file /storage/0393/doc_00076681 [00:33:22]remove dir /storage/0393 [00:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=253 [00:33:22]tlvbuf is B6ED94E0 [00:33:22]SAM_PROTO_ClearQueue [00:33:22]wFMCommunicate request_size=4 [00:33:22]MH_SAM_APDU [00:33:22]CAPDU: 80 09 00 00 [00:33:22]Write to MH i2c: E2 08 00 24 16 80 09 00 00 00 00 00 00 AC [00:33:22]Write i2c OK [00:33:22]MH_I2C_Read... [00:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:22]Read from MH i2c: E2 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 03 00 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [00:33:22]RAPDU: 90 00 [00:33:22]wFMCommunicate OK [00:33:22]SAM_PROTO_ClearQueue done [00:33:22]KKMCreateOFDPacket [00:33:22]OFDProtocolAddRootSTLVToBuf [00:33:22]FM_MakeSignedData [00:33:22]FM_MakeSignedData [00:33:22]SAM_PROTO_SignData [00:33:22]wFMCommunicate request_size=4 [00:33:22]MH_SAM_APDU [00:33:22]CAPDU: 80 0D 01 02 [00:33:22]Write to MH i2c: E2 08 00 25 16 80 0D 01 02 00 00 00 00 B4 [00:33:22]Write i2c OK [00:33:22]MH_I2C_Read... [00:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:22]Read from MH i2c: E2 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 03 00 [00:33:22]MH_I2C_Read... [00:33:22]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [00:33:22]RAPDU: 90 00 [00:33:22]wFMCommunicate OK [00:33:22]wFMCommunicate request_size=255 [00:33:22]MH_SAM_APDU [00:33:22]CAPDU: 80 0D 02 02 FA 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 BE D0 BD D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 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 55 CA 74 66 0E 04 04 00 8A 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8A 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 [00:33:22]Write to MH i2c: E2 02 01 26 16 80 0D 02 02 FA 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 BE D0 BD D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 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 55 CA 74 66 0E 04 04 00 8A 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8A 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 00 36 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:23]Read from MH i2c: E2 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 03 00 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [00:33:23]RAPDU: 90 00 [00:33:23]wFMCommunicate OK [00:33:23]wFMCommunicate request_size=12 [00:33:23]MH_SAM_APDU [00:33:23]CAPDU: 80 0D 02 02 07 00 D8 34 82 17 43 24 [00:33:23]Write to MH i2c: E2 0F 00 27 16 80 0D 02 02 07 00 00 D8 34 82 17 43 24 00 00 D1 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:23]Read from MH i2c: E2 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 03 00 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [00:33:23]RAPDU: 90 00 [00:33:23]wFMCommunicate OK [00:33:23]wFMCommunicate request_size=4 [00:33:23]MH_SAM_APDU [00:33:23]CAPDU: 80 0D 03 02 [00:33:23]Write to MH i2c: E2 08 00 28 16 80 0D 03 02 00 00 00 00 B9 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:23]Read from MH i2c: E2 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 0B 00 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 0B 00 28 16 00 F5 D4 F6 FB 5C BD 31 B5 90 00 73 [00:33:23]RAPDU: F5 D4 F6 FB 5C BD 31 B5 90 00 [00:33:23]wFMCommunicate OK [00:33:23]SAM_PROTO_SignData done [00:33:23]FM_MakeSignedData done [00:33:23]CreateOFDProtocolMessage [00:33:23]wFMCommunicate request_size=4 [00:33:23]MH_SAM_APDU [00:33:23]CAPDU: 80 11 00 00 [00:33:23]Write to MH i2c: E2 08 00 29 16 80 11 00 00 00 00 00 00 B9 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:23]Read from MH i2c: E2 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 17 00 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: E2 17 00 29 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 09 [00:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:33:23]wFMCommunicate OK [00:33:23]CreateOFDProtocolMessage done [00:33:23]OFDSenderStorePacket 76682 [00:33:23]StoreOFDPacket docnum=76682 [00:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 01 00 00 DE A9 09 01 32 BE 5A 02 01 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 BE D0 BD D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 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 55 CA 74 66 0E 04 04 00 8A 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8A 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 D8 34 82 17 43 24 F5 D4 F6 FB 5C BD 31 B5 [00:33:23]CheckFolder [00:33:23]dirname=/storage/ofd_packets [00:33:23]CheckFolder done [00:33:23]ProducePacketName [00:33:23]name=ofd_packets/00076682 [00:33:23]NVStorageSaveData ofd_packets/00076682 [00:33:23]File name is /storage/ofd_packets/00076682 [00:33:23]Write 303 bytes [00:33:23]NVStorageSaveData done [00:33:23]OFDSenderStorePacket done [00:33:23]KKMCreateOFDPacket done [00:33:23]NVStorageSaveData kkm_last_timestamp [00:33:23]File name is /storage/kkm_last_timestamp [00:33:23]Write 4 bytes [00:33:23]NVStorageSaveData done [00:33:23]ExternCall_PrintAddStr [00:33:23]wPrintStart [00:33:23]Write to MH i2c: 01 00 00 2A 16 40 [00:33:23]Write i2c OK [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: 01 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: 01 07 00 [00:33:23]MH_I2C_Read... [00:33:23]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 FF 0F 55 [00:33:23]RasterBufferAndPrint [00:33:23]line Отчет об открытии смены [00:33:23]line ФФД: 1.0 [00:33:23]line ИНН: 02508201610067 [00:33:23]line Кассир: Конурбаев Т. [00:33:23]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [00:33:23]line Место: АЗС № 144 "Партнер Нефть" [00:33:23]line 21.06.2024 00:33 [00:33:23]line Смена: 394 [00:33:23]line РНМ: 0000000000095696 [00:33:23]line ЗНМ: 0300000170 [00:33:23]line ФД: 76682 [00:33:23]line ФМ: 0000000000875009 [00:33:23]line ФПД: 237720032461604 [00:33:23]written 0, free lines is 4095 [00:33:23]OFD Sender: Processing packet 76682 [packets to send 351, broken 350] [00:33:23]ProducePacketName [00:33:23]name=ofd_packets/00076682 [00:33:23]OFD Sender: To server: pG, [00:33:23]CommunicateWithHost lk.salyk.kg:30040 [00:33:23]ConnectInit lk.salyk.kg [00:33:23]Connected sock=11 [00:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 01 00 00 DE A9 09 01 32 BE 5A 02 01 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 BE D0 BD D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 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 55 CA 74 66 0E 04 04 00 8A 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8A 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 D8 34 82 17 43 24 F5 D4 F6 FB 5C BD 31 B5 [00:33:24]Write to MH i2c: 01 00 00 3C 16 52 [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: 01 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: 01 07 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 06 0F 6E [00:33:24]RasterBufferAndPrint [00:33:24]line [00:33:24]line [00:33:24]line [00:33:24]line [00:33:24]line [00:33:24]written 0, free lines is 3865 [00:33:24]MH_Cut [00:33:24]Write to MH i2c: D1 01 00 43 16 01 2B [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: D1 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: D1 01 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: D1 01 00 43 16 00 2A [00:33:24]Write to MH i2c: 01 00 00 44 16 5A [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 66 42 47 00 E5 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8A 2B 01 00 F4 03 04 00 F4 70 74 66 B6 04 01 00 00 32 77 83 EC 87 43 2B 7E [00:33:24]CommunicateWithHost err = 0 [00:33:24]CheckOFDResponse [00:33:24]1017 (14) - 77093643461234 [00:33:24]1041 (16) - 0000000000875009 [00:33:24]1040 (4) - 76682 [00:33:24]1012 (4) - 20.06.2024 18:12 [00:33:24]1206 (1) - 0 [00:33:24]OFD Sender: Remove packet 76682 [00:33:24]ProducePacketName [00:33:24]name=ofd_packets/00076682 [00:33:24]NVStorageDeleteData [00:33:24]*** Cut start [00:33:24]*** Partial cut [00:33:24]*** CUTSNS_PIN = 1 [00:33:24]*** CUTSNS_PIN = 0 [00:33:24]*** Brake cut motor [00:33:24]OFD Sender: No OFD packet to send [00:33:25]Read from MH i2c: 01 [00:33:25]MH_I2C_Read... [00:33:25]*** Stop cut motor [00:33:25]*** Cut end [00:33:25]Read from MH i2c: 01 07 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: 01 07 00 44 16 00 00 00 00 00 FF 0F 6F [00:33:25]process_action open_shift done [00:33:25]requested_data is exist [00:33:25]produce_requested_data [00:33:25]requested_item fd.num is exist - process it [00:33:25]SAM_PROTO_GetFieldsCounters [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 13 00 00 [00:33:25]Write to MH i2c: E2 08 00 45 16 80 13 00 00 00 00 00 00 D7 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 62 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 62 00 45 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8A 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [00:33:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8A 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:25]wFMCommunicate OK [00:33:25]SAM_PROTO_GetFieldsCounters done [00:33:25]requested_item shift.num is exist - process it [00:33:25]requested_item shift.opened is exist - process it [00:33:25]req_shift_opened [00:33:25]FM_GetShiftState [00:33:25]SAM_PROTO_GetShiftState [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 13 01 00 [00:33:25]Write to MH i2c: E2 08 00 46 16 80 13 01 00 00 00 00 00 D9 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 0E 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 0E 00 46 16 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 DE [00:33:25]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [00:33:25]wFMCommunicate OK [00:33:25]SAM_PROTO_GetShiftState done [00:33:25]FM_GetShiftState done [00:33:25]req_shift_opened done [00:33:25]requested_item shift.open_date is exist - process it [00:33:25]req_shift_open_date [00:33:25]req_shift_open_date done [00:33:25]produce_requested_data done [00:33:25]produce_requested_data return {"fd.num":76682,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [00:33:25]process_action_free open_shift [00:33:25]json_value_free [00:33:25]json_value_free done [00:33:25]process_json_proto returns [00:33:25]Send response to host [00:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76682,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [00:33:25]free response buf [00:33:25]execute_script done [00:33:25]execute_script returns [00:33:25]free content buf [00:33:25]Sock 7.Close socket [00:33:25]Sock 7.Thread stoped [00:33:25]accept exits with 9 [00:33:25]New connection [00:33:25]New thread 3066948964 created [00:33:25]Thread 3066805604 joined [00:33:25]Waiting for new connection... [00:33:25] Sock 9.Parse request [00:33:25]Sock 9.Check first char [00:33:25]Sock 9.First char is OK [00:33:25]request: POST /json_proto HTTP/1.0 [00:33:25]Method: POST [00:33:25]URL: /json_proto [00:33:25]Method is POST - this is cgi request [00:33:25]url: /json_proto [00:33:25]query_string will be loaded in cgi processing [00:33:25]execute_cgi json_proto POST (null) [00:33:25]execute_cgi path=json_proto method=POST [00:33:25]POST find Content-Length [00:33:25]Host: 172.17.39.195:8080 [00:33:25]Content-Length: 331 [00:33:25]Content-Type: application/json [00:33:25] [00:33:25]POST finish read [00:33:25]Found Content-Length = 331 [00:33: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:33:25]execute_script... [00:33: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:33:25]POST & json_proto [00:33:25]process_json_proto [00:33:25]json parsed OK: [00:33:25]protocol is kg_v1.0 [00:33:25]action value=get_value [00:33:25]process_action get_value [00:33:25]cmd_get_value [00:33:25]process_action get_value done [00:33:25]requested_data is exist [00:33:25]produce_requested_data [00:33:25]requested_item fm.sale.total is exist - process it [00:33:25]SAM_PROTO_GetFMData [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 13 03 00 [00:33:25]Write to MH i2c: E2 08 00 47 16 80 13 03 00 00 00 00 00 DC [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 FD 00 47 16 00 C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 FD [00:33:25]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 76 28 01 00 69 04 A3 00 6F 04 04 00 38 25 01 00 B1 04 05 00 33 83 64 B0 01 70 04 05 00 88 FA 22 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EE D4 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8E A3 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [00:33:26]wFMCommunicate OK [00:33:26]wFMCommunicate request_size=4 [00:33:26]MH_SAM_APDU [00:33:26]CAPDU: 80 17 00 00 [00:33:26]Write to MH i2c: E2 08 00 48 16 80 17 00 00 00 00 00 00 DE [00:33:26]Write i2c OK [00:33:26]MH_I2C_Read... [00:33:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:26]Read from MH i2c: E2 [00:33:26]MH_I2C_Read... [00:33:26]Read from MH i2c: E2 FD 00 [00:33:26]MH_I2C_Read... [00:33:26]Read from MH i2c: E2 FD 00 48 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 93 [00:33:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [00:33:26]wFMCommunicate OK [00:33:26]wFMCommunicate request_size=4 [00:33:26]MH_SAM_APDU [00:33:26]CAPDU: 80 17 00 00 [00:33:26]Write to MH i2c: E2 08 00 49 16 80 17 00 00 00 00 00 00 DF [00:33:26]Write i2c OK [00:33:26]MH_I2C_Read... [00:33:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:26]Read from MH i2c: E2 [00:33:26]MH_I2C_Read... [00:33:26]Read from MH i2c: E2 FD 00 [00:33:26]MH_I2C_Read... [00:33:26]Read from MH i2c: E2 FD 00 49 16 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 06 [00:33:26]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:33:26]wFMCommunicate OK [00:33:26]wFMCommunicate request_size=4 [00:33:26]MH_SAM_APDU [00:33:26]CAPDU: 80 17 00 00 [00:33:26]Write to MH i2c: E2 08 00 4A 16 80 17 00 00 00 00 00 00 E0 [00:33:26]Write i2c OK [00:33:26]MH_I2C_Read... [00:33:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:27]Read from MH i2c: E2 [00:33:27]MH_I2C_Read... [00:33:27]Read from MH i2c: E2 FD 00 [00:33:27]MH_I2C_Read... [00:33:27]Read from MH i2c: E2 FD 00 4A 16 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [00:33:27]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:27]wFMCommunicate OK [00:33:27]wFMCommunicate request_size=4 [00:33:27]MH_SAM_APDU [00:33:27]CAPDU: 80 17 00 00 [00:33:27]Write to MH i2c: E2 08 00 4B 16 80 17 00 00 00 00 00 00 E1 [00:33:27]Write i2c OK [00:33:27]MH_I2C_Read... [00:33:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:33:27]Read from MH i2c: E2 [00:33:27]MH_I2C_Read... [00:33:27]Read from MH i2c: E2 E3 00 [00:33:27]MH_I2C_Read... [00:33:27]Read from MH i2c: E2 E3 00 4B 16 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C0 [00:33:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:33:27]wFMCommunicate OK [00:33:27]SAM_PROTO_GetFMData done [00:33:27]requested_item fm.sale_refund.total is exist - process it [00:33:27]requested_item fm.buy.total is exist - process it [00:33:27]requested_item shift.sale.total is exist - process it [00:33:27]SAM_PROTO_GetShiftData [00:33:27]wFMCommunicate request_size=4 [00:33:27]MH_SAM_APDU [00:33:27]CAPDU: 80 13 02 00 [00:33:27]Write to MH i2c: E2 08 00 4C 16 80 13 02 00 00 00 00 00 E0 [00:33:27]Write i2c OK [00:33:27]MH_I2C_Read... [00:33:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:28]Read from MH i2c: E2 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 FD 00 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 FD 00 4C 16 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 53 [00:33: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:33:28]wFMCommunicate OK [00:33:28]wFMCommunicate request_size=4 [00:33:28]MH_SAM_APDU [00:33:28]CAPDU: 80 17 00 00 [00:33:28]Write to MH i2c: E2 08 00 4D 16 80 17 00 00 00 00 00 00 E3 [00:33:28]Write i2c OK [00:33:28]MH_I2C_Read... [00:33:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:28]Read from MH i2c: E2 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 FD 00 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 FD 00 4D 16 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 EB [00:33:28]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:33:29]wFMCommunicate OK [00:33:29]wFMCommunicate request_size=4 [00:33:29]MH_SAM_APDU [00:33:29]CAPDU: 80 17 00 00 [00:33:29]Write to MH i2c: E2 08 00 4E 16 80 17 00 00 00 00 00 00 E4 [00:33:29]Write i2c OK [00:33:29]MH_I2C_Read... [00:33:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:29]Read from MH i2c: E2 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 4E 16 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 B6 [00:33: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:33:29]wFMCommunicate OK [00:33:29]wFMCommunicate request_size=4 [00:33:29]MH_SAM_APDU [00:33:29]CAPDU: 80 17 00 00 [00:33:29]Write to MH i2c: E2 08 00 4F 16 80 17 00 00 00 00 00 00 E5 [00:33:29]Write i2c OK [00:33:29]MH_I2C_Read... [00:33:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:29]Read from MH i2c: E2 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 4F 16 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 57 [00:33: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 OFD Sender: No OFD packet to send [00:33:30]F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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:33:30]wFMCommunicate OK [00:33:30]wFMCommunicate request_size=4 [00:33:30]MH_SAM_APDU [00:33:30]CAPDU: 80 17 00 00 [00:33:30]Write to MH i2c: E2 08 00 50 16 80 17 00 00 00 00 00 00 E6 [00:33:30]Write i2c OK [00:33:30]MH_I2C_Read... [00:33:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:33:30]Read from MH i2c: E2 [00:33:30]MH_I2C_Read... [00:33:30]Read from MH i2c: E2 BD 00 [00:33:30]MH_I2C_Read... [00:33:30]Read from MH i2c: E2 BD 00 50 16 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 CC [00:33: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:33:30]wFMCommunicate OK [00:33:30]SAM_PROTO_GetShiftData done [00:33:30]requested_item shift.sale.total_cash is exist - process it [00:33:30]requested_item shift.sale_refund.total is exist - process it [00:33:30]requested_item shift.sale_refund.total_cash is exist - process it [00:33:30]requested_item shift.buy.total is exist - process it [00:33:30]requested_item shift.buy.total_cash is exist - process it [00:33:30]produce_requested_data done [00:33:30]produce_requested_data return {"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.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:33:30]process_action_free get_value [00:33:30]json_value_free [00:33:30]json_value_free done [00:33:30]process_json_proto returns [00:33:30]Send response to host [00:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543444.99,"fm.sale_refund.total":26922002.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:33:30]free response buf [00:33:30]execute_script done [00:33:30]execute_script returns [00:33:30]free content buf [00:33:30]Sock 9.Close socket [00:33:30]Sock 9.Thread stoped [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40: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:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [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:41]accept exits with 7 [00:55:41]New connection [00:55:41]New thread 3066805604 created [00:55:41]Thread 3066948964 joined [00:55:41]Waiting for new connection... [00:55:41] Sock 7.Parse request [00:55:41]Sock 7.Check first char [00:55:41]Sock 7.First char is OK [00:55:41]request: POST /json_proto HTTP/1.0 [00:55:41]Method: POST [00:55:41]URL: /json_proto [00:55:41]Method is POST - this is cgi request [00:55:41]url: /json_proto [00:55:41]query_string will be loaded in cgi processing [00:55:41]execute_cgi json_proto POST (null) [00:55:41]execute_cgi path=json_proto method=POST [00:55:41]POST find Content-Length [00:55:41]Host: 172.17.39.195:8080 [00:55:41]Content-Length: 670 [00:55:41]Content-Type: application/json [00:55:41] [00:55:41]POST finish read [00:55:41]Found Content-Length = 670 [00:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220803", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:41]execute_script... [00:55: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 : (3)220803", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:41]POST & json_proto [00:55:41]process_json_proto [00:55:41]json parsed OK: [00:55:41]protocol is kg_v1.0 [00:55:41]action value=close_receipt [00:55:41]process_action close_receipt [00:55:41]cmd_close_receipt [00:55:41]MH_GetDate [00:55:41]Write to MH i2c: F0 00 00 51 16 56 [00:55:41]Write i2c OK [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: F0 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: F0 09 00 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: F0 09 00 51 16 00 91 CF 74 66 99 81 91 64 A8 [00:55:41]GetLastDocTimeStamp 1718930005 [00:55:41]current date 1718931345 [00:55:41]FM_GetShiftState [00:55:41]SAM_PROTO_GetShiftState [00:55:41]wFMCommunicate request_size=4 [00:55:41]MH_SAM_APDU [00:55:41]CAPDU: 80 13 01 00 [00:55:41]Write to MH i2c: E2 08 00 52 16 80 13 01 00 00 00 00 00 E5 [00:55:41]Write i2c OK [00:55:41]MH_I2C_Read... [00:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:41]Read from MH i2c: E2 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: E2 0E 00 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: E2 0E 00 52 16 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 EA [00:55:41]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [00:55:41]wFMCommunicate OK [00:55:41]SAM_PROTO_GetShiftState done [00:55:41]FM_GetShiftState done [00:55:41]opened in 1718930005 [00:55:41]opened+sec_in_day 1719016405 [00:55:41]quantity*price = 17000 [00:55:41]sum+1 = 17001 [00:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 1 21.06.2024 00:55 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76683 ФПД: 160257917374153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T005545&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76683&fm=160257917374153&tin=02508201610067®Number=0000000000095696&sum=17000 0 [00:55:42]StoreToDocumentArchive [00:55:42]shift 394 fd 76683 [00:55:42]save to /storage/0394/doc_00076683 [00:55:42]save last doc name /storage/0394/doc_00076683 to /storage/kkm_last_doc_name [00:55:42]save OK [00:55:42]Clear old archive folders... [00:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=282 [00:55:42]tlvbuf is 00EC07B0 [00:55:42]SAM_PROTO_ClearQueue [00:55:42]wFMCommunicate request_size=4 [00:55:42]MH_SAM_APDU [00:55:42]CAPDU: 80 09 00 00 [00:55:42]Write to MH i2c: E2 08 00 5F 16 80 09 00 00 00 00 00 00 E7 [00:55:42]Write i2c OK [00:55:42]MH_I2C_Read... [00:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:42]Read from MH i2c: E2 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [00:55:42]RAPDU: 90 00 [00:55:42]wFMCommunicate OK [00:55:42]SAM_PROTO_ClearQueue done [00:55:42]KKMCreateOFDPacket [00:55:42]OFDProtocolAddRootSTLVToBuf [00:55:42]FM_MakeSignedData [00:55:42]FM_MakeSignedData [00:55:42]SAM_PROTO_SignData [00:55:42]wFMCommunicate request_size=4 [00:55:42]MH_SAM_APDU [00:55:42]CAPDU: 80 0D 01 02 [00:55:42]Write to MH i2c: E2 08 00 60 16 80 0D 01 02 00 00 00 00 EF [00:55:42]Write i2c OK [00:55:42]MH_I2C_Read... [00:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:42]Read from MH i2c: E2 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [00:55:42]RAPDU: 90 00 [00:55:42]wFMCommunicate OK [00:55:42]wFMCommunicate request_size=255 [00:55:42]MH_SAM_APDU [00:55:42]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 91 CF 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 [00:55:42]Write to MH i2c: E2 02 01 61 16 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 91 CF 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 00 00 CD [00:55:42]Write i2c OK [00:55:42]MH_I2C_Read... [00:55:42]OFD Sender: No OFD packet to send [00:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:42]Read from MH i2c: E2 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 61 16 00 90 00 EB [00:55:42]RAPDU: 90 00 [00:55:42]wFMCommunicate OK [00:55:42]wFMCommunicate request_size=41 [00:55:42]MH_SAM_APDU [00:55:42]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8B 2B 01 00 35 04 06 00 91 C0 F4 3C CE C9 [00:55:42]Write to MH i2c: E2 2C 00 62 16 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8B 2B 01 00 35 04 06 00 91 C0 F4 3C CE C9 00 00 8D [00:55:42]Write i2c OK [00:55:42]MH_I2C_Read... [00:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:42]Read from MH i2c: E2 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 03 00 62 16 00 90 00 EC [00:55:42]RAPDU: 90 00 [00:55:42]wFMCommunicate OK [00:55:42]wFMCommunicate request_size=4 [00:55:42]MH_SAM_APDU [00:55:42]CAPDU: 80 0D 03 02 [00:55:42]Write to MH i2c: E2 08 00 63 16 80 0D 03 02 00 00 00 00 F4 [00:55:42]Write i2c OK [00:55:42]MH_I2C_Read... [00:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:42]Read from MH i2c: E2 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 0B 00 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 0B 00 63 16 00 E0 52 82 CB 5E CE 7E 81 90 00 9F [00:55:42]RAPDU: E0 52 82 CB 5E CE 7E 81 90 00 [00:55:42]wFMCommunicate OK [00:55:42]SAM_PROTO_SignData done [00:55:42]FM_MakeSignedData done [00:55:42]CreateOFDProtocolMessage [00:55:42]wFMCommunicate request_size=4 [00:55:42]MH_SAM_APDU [00:55:42]CAPDU: 80 11 00 00 [00:55:42]Write to MH i2c: E2 08 00 64 16 80 11 00 00 00 00 00 00 F4 [00:55:42]Write i2c OK [00:55:42]MH_I2C_Read... [00:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:43]Read from MH i2c: E2 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 17 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 17 00 64 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 44 [00:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:55:43]wFMCommunicate OK [00:55:43]CreateOFDProtocolMessage done [00:55:43]OFDSenderStorePacket 76683 [00:55:43]StoreOFDPacket docnum=76683 [00:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 59 D4 26 01 46 A1 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 91 CF 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8B 2B 01 00 35 04 06 00 91 C0 F4 3C CE C9 E0 52 82 CB 5E CE 7E 81 [00:55:43]CheckFolder [00:55:43]dirname=/storage/ofd_packets [00:55:43]CheckFolder done [00:55:43]ProducePacketName [00:55:43]name=ofd_packets/00076683 [00:55:43]NVStorageSaveData ofd_packets/00076683 [00:55:43]File name is /storage/ofd_packets/00076683 [00:55:43]Write 332 bytes [00:55:43]NVStorageSaveData done [00:55:43]OFDSenderStorePacket done [00:55:43]KKMCreateOFDPacket done [00:55:43]NVStorageSaveData kkm_last_timestamp [00:55:43]File name is /storage/kkm_last_timestamp [00:55:43]Write 4 bytes [00:55:43]NVStorageSaveData done [00:55:43]ExternCall_PrintAddStr [00:55:43]wPrintStart [00:55:43]Write to MH i2c: 01 00 00 65 16 7B [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 07 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 FF 0F 90 [00:55:43]RasterBufferAndPrint [00:55:43]line Счет N : (3)220803 [00:55:43]line ИНН: 02508201610067 [00:55:43]line Контрольно-Кассовый Чек [00:55:43]line ПРОДАЖА [00:55:43]line Товар: 4700000480357 [00:55:43]line Пиво шахтерское 1л ПЭТ [00:55:43]line 1.000 * 170.00 [00:55:43]line = 170.00 [00:55:43]line НДС 12% НСП 1% [00:55:43]line > о реализуемом товаре [00:55:43]line ИТОГО: 170.00 [00:55:43]line НСП 1% : 1.50 [00:55:43]line НДС 12% : 18.05 [00:55:43]line Наличными: 170.00 [00:55:43]line Безнал.: 0.00 [00:55:43]line Место: АЗС № 144 "Партнер Нефть" [00:55:43]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [00:55:43]line СНО: Общий режим [00:55:43]line Чек 1 21.06.2024 00:55 [00:55:43]line Смена: 394 ФФД: 1.0 [00:55:43]line ЗНМ: 0300000170 [00:55:43]line РНМ: 0000000000095696 [00:55:43]line Версия ККМ: 001 [00:55:43]line ФМ: 0000000000875009 [00:55:43]line ФД: 76683 [00:55:43]line ФПД: 160257917374153 [00:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T005545&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76683&fm=160257917374153&tin=02508201610067®Number=0000000000095696&sum=17000 [00:55:43]line 0 [00:55:43]OFD Sender: Processing packet 76683 [packets to send 351, broken 350] [00:55:43]ProducePacketName [00:55:43]name=ofd_packets/00076683 [00:55:43]OFD Sender: To server: pG, [00:55:43]CommunicateWithHost lk.salyk.kg:30040 [00:55:43]ConnectInit lk.salyk.kg [00:55:43]written 0, free lines is 4095 [00:55:43]Connected sock=9 [00:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 59 D4 26 01 46 A1 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 91 CF 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8B 2B 01 00 35 04 06 00 91 C0 F4 3C CE C9 E0 52 82 CB 5E CE 7E 81 [00:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 CC E2 47 00 B1 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8B 2B 01 00 F4 03 04 00 30 76 74 66 B6 04 01 00 00 45 C5 F6 1F D6 F9 0C 59 [00:55:43]CommunicateWithHost err = 0 [00:55:43]CheckOFDResponse [00:55:43]1017 (14) - 77093643461234 [00:55:43]1041 (16) - 0000000000875009 [00:55:43]1040 (4) - 76683 [00:55:43]1012 (4) - 20.06.2024 18:34 [00:55:43]1206 (1) - 0 [00:55:43]OFD Sender: Remove packet 76683 [00:55:43]ProducePacketName [00:55:43]name=ofd_packets/00076683 [00:55:43]NVStorageDeleteData [00:55:43]Write to MH i2c: 01 00 00 8D 16 A3 [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 07 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 07 00 8D 16 00 00 00 00 00 F2 0C A8 [00:55:43]RasterBufferAndPrint [00:55:43]line [00:55:43]line [00:55:43]line [00:55:43]line [00:55:43]line [00:55:43]written 0, free lines is 3320 [00:55:43]MH_Cut [00:55:43]Write to MH i2c: D1 01 00 94 16 01 7C [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: D1 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: D1 01 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: D1 01 00 94 16 00 7B [00:55:43]Write to MH i2c: 01 00 00 95 16 AB [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:44]OFD Sender: No OFD packet to send [00:55:44]*** Cut start [00:55:44]*** Partial cut [00:55:44]*** CUTSNS_PIN = 1 [00:55:44]*** CUTSNS_PIN = 0 [00:55:44]*** Brake cut motor [00:55:45]Read from MH i2c: 01 [00:55:45]MH_I2C_Read... [00:55:45]*** Stop cut motor [00:55:45]*** Cut end [00:55:45]Read from MH i2c: 01 07 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 07 00 95 16 00 00 00 00 00 FF 0F C0 [00:55:45]process_action close_receipt done [00:55:45]requested_data is exist [00:55:45]produce_requested_data [00:55:45]requested_item fm.sn is exist - process it [00:55:45]wFMCommunicate request_size=4 [00:55:45]MH_SAM_APDU [00:55:45]CAPDU: 80 11 00 00 [00:55:45]Write to MH i2c: E2 08 00 96 16 80 11 00 00 00 00 00 00 26 [00:55:45]Write i2c OK [00:55:45]MH_I2C_Read... [00:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:45]Read from MH i2c: E2 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 17 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 17 00 96 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 76 [00:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:55:45]wFMCommunicate OK [00:55:45]requested_item fd.num is exist - process it [00:55:45]SAM_PROTO_GetFieldsCounters [00:55:45]wFMCommunicate request_size=4 [00:55:45]MH_SAM_APDU [00:55:45]CAPDU: 80 13 00 00 [00:55:45]Write to MH i2c: E2 08 00 97 16 80 13 00 00 00 00 00 00 29 [00:55:45]Write i2c OK [00:55:45]MH_I2C_Read... [00:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:45]Read from MH i2c: E2 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 62 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 62 00 97 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8B 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [00:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8B 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:45]wFMCommunicate OK [00:55:45]SAM_PROTO_GetFieldsCounters done [00:55:45]requested_item shift.num is exist - process it [00:55:45]requested_item shift.opened is exist - process it [00:55:45]req_shift_opened [00:55:45]FM_GetShiftState [00:55:45]SAM_PROTO_GetShiftState [00:55:45]wFMCommunicate request_size=4 [00:55:45]MH_SAM_APDU [00:55:45]CAPDU: 80 13 01 00 [00:55:45]Write to MH i2c: E2 08 00 98 16 80 13 01 00 00 00 00 00 2B [00:55:45]Write i2c OK [00:55:45]MH_I2C_Read... [00:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:45]Read from MH i2c: E2 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 0E 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 0E 00 98 16 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 30 [00:55:45]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [00:55:45]wFMCommunicate OK [00:55:45]SAM_PROTO_GetShiftState done [00:55:45]FM_GetShiftState done [00:55:45]req_shift_opened done [00:55:45]requested_item shift.open_date is exist - process it [00:55:45]req_shift_open_date [00:55:45]req_shift_open_date done [00:55:45]produce_requested_data done [00:55:45]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76683,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [00:55:45]process_action_free close_receipt [00:55:45]json_value_free [00:55:45]json_value_free done [00:55:45]process_json_proto returns [00:55:45]Send response to host [00:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76683,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [00:55:45]free response buf [00:55:45]execute_script done [00:55:45]execute_script returns [00:55:45]free content buf [00:55:45]Sock 7.Close socket [00:55:45]Sock 7.Thread stoped [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:37]accept exits with 10 [00:59:37]New connection [00:59:37]New thread 3066948964 created [00:59:37]Thread 3066805604 joined [00:59:37]Waiting for new connection... [00:59:37] Sock 10.Parse request [00:59:37]Sock 10.Check first char [00:59:37]Sock 10.First char is OK [00:59:37]request: POST /json_proto HTTP/1.0 [00:59:37]Method: POST [00:59:37]URL: /json_proto [00:59:37]Method is POST - this is cgi request [00:59:37]url: /json_proto [00:59:37]query_string will be loaded in cgi processing [00:59:37]execute_cgi json_proto POST (null) [00:59:37]execute_cgi path=json_proto method=POST [00:59:37]POST find Content-Length [00:59:37]Host: 172.17.39.195:8080 [00:59:37]Content-Length: 1006 [00:59:37]Content-Type: application/json [00:59:37] [00:59:37]POST finish read [00:59:37]Found Content-Length = 1006 [00:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220804", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:37]execute_script... [00:59: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 : (3)220804", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:37]POST & json_proto [00:59:37]process_json_proto [00:59:37]json parsed OK: [00:59:37]protocol is kg_v1.0 [00:59:37]action value=close_receipt [00:59:37]process_action close_receipt [00:59:37]cmd_close_receipt [00:59:37]MH_GetDate [00:59:37]Write to MH i2c: F0 00 00 99 16 9E [00:59:37]Write i2c OK [00:59:37]MH_I2C_Read... [00:59:37]Read from MH i2c: F0 [00:59:37]MH_I2C_Read... [00:59:37]Read from MH i2c: F0 09 00 [00:59:37]MH_I2C_Read... [00:59:37]Read from MH i2c: F0 09 00 99 16 00 7D D0 74 66 99 81 91 64 DD [00:59:37]GetLastDocTimeStamp 1718931345 [00:59:37]current date 1718931581 [00:59:37]FM_GetShiftState [00:59:37]SAM_PROTO_GetShiftState [00:59:37]wFMCommunicate request_size=4 [00:59:37]MH_SAM_APDU [00:59:37]CAPDU: 80 13 01 00 [00:59:37]Write to MH i2c: E2 08 00 9A 16 80 13 01 00 00 00 00 00 2D [00:59:37]Write i2c OK [00:59:37]MH_I2C_Read... [00:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:37]Read from MH i2c: E2 [00:59:37]MH_I2C_Read... [00:59:37]Read from MH i2c: E2 0E 00 [00:59:37]MH_I2C_Read... [00:59:37]Read from MH i2c: E2 0E 00 9A 16 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 32 [00:59:37]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [00:59:37]wFMCommunicate OK [00:59:37]SAM_PROTO_GetShiftState done [00:59:37]FM_GetShiftState done [00:59:37]opened in 1718930005 [00:59:37]opened+sec_in_day 1719016405 [00:59:37]quantity*price = 12500 [00:59:37]sum+1 = 12501 [00:59:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 2 21.06.2024 00:59 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76684 ФПД: 58228556199111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T005941&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76684&fm=58228556199111&tin=02508201610067®Number=0000000000095696&sum=22000 0 [00:59:38]StoreToDocumentArchive [00:59:38]shift 394 fd 76684 [00:59:38]save to /storage/0394/doc_00076684 [00:59:38]save last doc name /storage/0394/doc_00076684 to /storage/kkm_last_doc_name [00:59:38]save OK [00:59:38]Clear old archive folders... [00:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=426 [00:59:38]tlvbuf is B6EC05D0 [00:59:38]SAM_PROTO_ClearQueue [00:59:38]wFMCommunicate request_size=4 [00:59:38]MH_SAM_APDU [00:59:38]CAPDU: 80 09 00 00 [00:59:38]Write to MH i2c: E2 08 00 A7 16 80 09 00 00 00 00 00 00 2F [00:59:38]Write i2c OK [00:59:38]MH_I2C_Read... [00:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:38]Read from MH i2c: E2 [00:59:38]MH_I2C_Read... [00:59:38]Read from MH i2c: E2 03 00 [00:59:38]MH_I2C_Read... [00:59:38]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [00:59:38]RAPDU: 90 00 [00:59:38]wFMCommunicate OK [00:59:38]SAM_PROTO_ClearQueue done [00:59:38]KKMCreateOFDPacket [00:59:38]OFDProtocolAddRootSTLVToBuf [00:59:38]FM_MakeSignedData [00:59:38]FM_MakeSignedData [00:59:38]SAM_PROTO_SignData [00:59:38]wFMCommunicate request_size=4 [00:59:38]MH_SAM_APDU [00:59:38]CAPDU: 80 0D 01 02 [00:59:38]Write to MH i2c: E2 08 00 A8 16 80 0D 01 02 00 00 00 00 37 [00:59:38]Write i2c OK [00:59:38]MH_I2C_Read... [00:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:38]Read from MH i2c: E2 [00:59:38]MH_I2C_Read... [00:59:38]Read from MH i2c: E2 03 00 [00:59:38]MH_I2C_Read... [00:59:38]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [00:59:38]RAPDU: 90 00 [00:59:38]wFMCommunicate OK [00:59:38]wFMCommunicate request_size=255 [00:59:38]MH_SAM_APDU [00:59:38]CAPDU: 80 0D 02 02 FA 03 00 AA 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 [00:59:38]Write to MH i2c: E2 02 01 A9 16 80 0D 02 02 FA 00 03 00 AA 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 00 00 EE [00:59:38]Write i2c OK [00:59:38]MH_I2C_Read... [00:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:39]Read from MH i2c: E2 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 03 00 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [00:59:39]RAPDU: 90 00 [00:59:39]wFMCommunicate OK [00:59:39]wFMCommunicate request_size=185 [00:59:39]MH_SAM_APDU [00:59:39]CAPDU: 80 0D 02 02 B4 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7D D0 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8C 2B 01 00 35 04 06 00 34 F5 64 68 74 C7 [00:59:39]Write to MH i2c: E2 BC 00 AA 16 80 0D 02 02 B4 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7D D0 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8C 2B 01 00 35 04 06 00 34 F5 64 68 74 C7 00 00 B1 [00:59:39]Write i2c OK [00:59:39]MH_I2C_Read... [00:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:39]Read from MH i2c: E2 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 03 00 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 03 00 AA 16 00 90 00 34 [00:59:39]RAPDU: 90 00 [00:59:39]wFMCommunicate OK [00:59:39]wFMCommunicate request_size=4 [00:59:39]MH_SAM_APDU [00:59:39]CAPDU: 80 0D 03 02 [00:59:39]Write to MH i2c: E2 08 00 AB 16 80 0D 03 02 00 00 00 00 3C [00:59:39]Write i2c OK [00:59:39]MH_I2C_Read... [00:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:39]Read from MH i2c: E2 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 0B 00 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 0B 00 AB 16 00 9B 5B BB 55 32 AE F6 13 90 00 2C [00:59:39]RAPDU: 9B 5B BB 55 32 AE F6 13 90 00 [00:59:39]wFMCommunicate OK [00:59:39]SAM_PROTO_SignData done [00:59:39]FM_MakeSignedData done [00:59:39]CreateOFDProtocolMessage [00:59:39]wFMCommunicate request_size=4 [00:59:39]MH_SAM_APDU [00:59:39]CAPDU: 80 11 00 00 [00:59:39]Write to MH i2c: E2 08 00 AC 16 80 11 00 00 00 00 00 00 3C [00:59:39]Write i2c OK [00:59:39]MH_I2C_Read... [00:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:39]Read from MH i2c: E2 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 17 00 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: E2 17 00 AC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8C [00:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:59:39]wFMCommunicate OK [00:59:39]CreateOFDProtocolMessage done [00:59:39]OFDSenderStorePacket 76684 [00:59:39]StoreOFDPacket docnum=76684 [00:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 BE 01 00 00 1F 38 B6 01 E3 8C 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7D D0 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8C 2B 01 00 35 04 06 00 34 F5 64 68 74 C7 9B 5B BB 55 32 AE F6 13 [00:59:39]CheckFolder [00:59:39]dirname=/storage/ofd_packets [00:59:39]CheckFolder done [00:59:39]ProducePacketName [00:59:39]name=ofd_packets/00076684 [00:59:39]NVStorageSaveData ofd_packets/00076684 [00:59:39]File name is /storage/ofd_packets/00076684 [00:59:39]Write 476 bytes [00:59:39]NVStorageSaveData done [00:59:39]OFDSenderStorePacket done [00:59:39]KKMCreateOFDPacket done [00:59:39]NVStorageSaveData kkm_last_timestamp [00:59:39]File name is /storage/kkm_last_timestamp [00:59:39]Write 4 bytes [00:59:39]NVStorageSaveData done [00:59:39]ExternCall_PrintAddStr [00:59:39]wPrintStart [00:59:39]Write to MH i2c: 01 00 00 AD 16 C3 [00:59:39]OFD Sender: Processing packet 76684 [packets to send 351, broken 350] [00:59:39]ProducePacketName [00:59:39]name=ofd_packets/00076684 [00:59:39]OFD Sender: To server: pG, [00:59:39]CommunicateWithHost lk.salyk.kg:30040 [00:59:39]ConnectInit lk.salyk.kg [00:59:39]Write i2c OK [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: 01 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: 01 07 00 [00:59:39]MH_I2C_Read... [00:59:39]Read from MH i2c: 01 07 00 AD 16 00 00 00 00 00 FF 0F D8 [00:59:39]RasterBufferAndPrint [00:59:39]line Счет N : (3)220804 [00:59:39]line ИНН: 02508201610067 [00:59:39]line Контрольно-Кассовый Чек [00:59:39]line ПРОДАЖА [00:59:39]line Товар: 4870202521247 [00:59:39]line Напиток MAXI чай 1,2 черн.персик [00:59:39]line 1.000 * 125.00 [00:59:39]line = 125.00 [00:59:39]line НДС 12% НСП 1% [00:59:39]line > о реализуемом товаре [00:59:39]line Товар: 4700003010087 [00:59:39]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [00:59:39]line 1.000 * 95.00 [00:59:39]line = 95.00 [00:59:39]line НДС 12% НСП 1% [00:59:39]line > о реализуемом товаре [00:59:39]line ИТОГО: 220.00 [00:59:39]line НСП 1% : 1.95 [00:59:39]line НДС 12% : 23.36 [00:59:39]line Наличными: 220.00 [00:59:39]line Безнал.: 0.00 [00:59:39]line Место: АЗС № 144 "Партнер Нефть" [00:59:39]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [00:59:39]line СНО: Общий режим [00:59:39]line Чек 2 21.06.2024 00:59 [00:59:39]line Смена: 394 ФФД: 1.0 [00:59:39]line ЗНМ: 0300000170 [00:59:39]line РНМ: 0000000000095696 [00:59:39]line Версия ККМ: 001 [00:59:39]line ФМ: 0000000000875009 [00:59:39]line ФД: 76684 [00:59:39]line ФПД: 58228556199111 [00:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T005941&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76684&fm=58228556199111&tin=02508201610067®Number=0000000000095696&sum=22000 [00:59:39]line 0 [00:59:39]written 0, free lines is 4095 [00:59:39]Connected sock=9 [00:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 BE 01 00 00 1F 38 B6 01 E3 8C 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 7D D0 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8C 2B 01 00 35 04 06 00 34 F5 64 68 74 C7 9B 5B BB 55 32 AE F6 13 [00:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 90 D7 47 00 90 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8C 2B 01 00 F4 03 04 00 1C 77 74 66 B6 04 01 00 00 7D F1 4B D0 82 60 67 D2 [00:59:40]CommunicateWithHost err = 0 [00:59:40]CheckOFDResponse [00:59:40]1017 (14) - 77093643461234 [00:59:40]1041 (16) - 0000000000875009 [00:59:40]1040 (4) - 76684 [00:59:40]1012 (4) - 20.06.2024 18:38 [00:59:40]1206 (1) - 0 [00:59:40]OFD Sender: Remove packet 76684 [00:59:40]ProducePacketName [00:59:40]name=ofd_packets/00076684 [00:59:40]NVStorageDeleteData [00:59:40]Write to MH i2c: 01 00 00 DD 16 F3 [00:59:40]Write i2c OK [00:59:40]MH_I2C_Read... [00:59:40]Read from MH i2c: 01 [00:59:40]MH_I2C_Read... [00:59:40]Read from MH i2c: 01 07 00 [00:59:40]MH_I2C_Read... [00:59:40]Read from MH i2c: 01 07 00 DD 16 00 00 00 00 00 91 0C 97 [00:59:40]RasterBufferAndPrint [00:59:40]line [00:59:40]line [00:59:40]line [00:59:40]line [00:59:40]line [00:59:40]written 0, free lines is 3224 [00:59:40]MH_Cut [00:59:40]Write to MH i2c: D1 01 00 E4 16 01 CC [00:59:40]Write i2c OK [00:59:40]MH_I2C_Read... [00:59:40]Read from MH i2c: D1 [00:59:40]MH_I2C_Read... [00:59:40]Read from MH i2c: D1 01 00 [00:59:40]MH_I2C_Read... [00:59:40]Read from MH i2c: D1 01 00 E4 16 00 CB [00:59:40]Write to MH i2c: 01 00 00 E5 16 FB [00:59:40]Write i2c OK [00:59:40]MH_I2C_Read... [00:59:40]OFD Sender: No OFD packet to send [00:59:41]*** Cut start [00:59:41]*** Partial cut [00:59:41]*** CUTSNS_PIN = 1 [00:59:41]*** CUTSNS_PIN = 0 [00:59:41]*** Brake cut motor [00:59:41]Read from MH i2c: 01 [00:59:41]MH_I2C_Read... [00:59:41]*** Stop cut motor [00:59:41]*** Cut end [00:59:41]Read from MH i2c: 01 07 00 [00:59:41]MH_I2C_Read... [00:59:41]Read from MH i2c: 01 07 00 E5 16 00 00 00 00 00 FF 0F 10 [00:59:41]process_action close_receipt done [00:59:41]requested_data is exist [00:59:41]produce_requested_data [00:59:41]requested_item fm.sn is exist - process it [00:59:41]wFMCommunicate request_size=4 [00:59:41]MH_SAM_APDU [00:59:41]CAPDU: 80 11 00 00 [00:59:41]Write to MH i2c: E2 08 00 E6 16 80 11 00 00 00 00 00 00 76 [00:59:41]Write i2c OK [00:59:41]MH_I2C_Read... [00:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:41]Read from MH i2c: E2 [00:59:41]MH_I2C_Read... [00:59:41]Read from MH i2c: E2 17 00 [00:59:41]MH_I2C_Read... [00:59:41]Read from MH i2c: E2 17 00 E6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C6 [00:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:59:41]wFMCommunicate OK [00:59:41]requested_item fd.num is exist - process it [00:59:41]SAM_PROTO_GetFieldsCounters [00:59:41]wFMCommunicate request_size=4 [00:59:41]MH_SAM_APDU [00:59:41]CAPDU: 80 13 00 00 [00:59:41]Write to MH i2c: E2 08 00 E7 16 80 13 00 00 00 00 00 00 79 [00:59:41]Write i2c OK [00:59:41]MH_I2C_Read... [00:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:41]Read from MH i2c: E2 [00:59:41]MH_I2C_Read... [00:59:41]Read from MH i2c: E2 62 00 [00:59:41]MH_I2C_Read... [00:59:41]Read from MH i2c: E2 62 00 E7 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8C 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [00:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8C 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:59:41]wFMCommunicate OK [00:59:41]SAM_PROTO_GetFieldsCounters done [00:59:41]requested_item shift.num is exist - process it [00:59:41]requested_item shift.opened is exist - process it [00:59:41]req_shift_opened [00:59:41]FM_GetShiftState [00:59:41]SAM_PROTO_GetShiftState [00:59:41]wFMCommunicate request_size=4 [00:59:41]MH_SAM_APDU [00:59:41]CAPDU: 80 13 01 00 [00:59:41]Write to MH i2c: E2 08 00 E8 16 80 13 01 00 00 00 00 00 7B [00:59:41]Write i2c OK [00:59:41]MH_I2C_Read... [00:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:41]Read from MH i2c: E2 [00:59:41]MH_I2C_Read... [00:59:41]Read from MH i2c: E2 0E 00 [00:59:41]MH_I2C_Read... [00:59:41]Read from MH i2c: E2 0E 00 E8 16 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 80 [00:59:41]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [00:59:41]wFMCommunicate OK [00:59:41]SAM_PROTO_GetShiftState done [00:59:41]FM_GetShiftState done [00:59:41]req_shift_opened done [00:59:41]requested_item shift.open_date is exist - process it [00:59:41]req_shift_open_date [00:59:41]req_shift_open_date done [00:59:41]produce_requested_data done [00:59:41]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76684,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [00:59:41]process_action_free close_receipt [00:59:41]json_value_free [00:59:41]json_value_free done [00:59:41]process_json_proto returns [00:59:41]Send response to host [00:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76684,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [00:59:41]free response buf [00:59:41]execute_script done [00:59:41]execute_script returns [00:59:41]free content buf [00:59:41]Sock 10.Close socket [00:59:41]Sock 10.Thread stoped [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:52]accept exits with 7 [01:09:52]New connection [01:09:52]New thread 3066805604 created [01:09:52]Thread 3066948964 joined [01:09:52]Waiting for new connection... [01:09:52] Sock 7.Parse request [01:09:52]Sock 7.Check first char [01:09:52]Sock 7.First char is OK [01:09:52]request: POST /json_proto HTTP/1.0 [01:09:52]Method: POST [01:09:52]URL: /json_proto [01:09:52]Method is POST - this is cgi request [01:09:52]url: /json_proto [01:09:52]query_string will be loaded in cgi processing [01:09:52]execute_cgi json_proto POST (null) [01:09:52]execute_cgi path=json_proto method=POST [01:09:52]POST find Content-Length [01:09:52]Host: 172.17.39.195:8080 [01:09:52]Content-Length: 215 [01:09:52]Content-Type: application/json [01:09:52] [01:09:52]POST finish read [01:09:52]Found Content-Length = 215 [01:09:52]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" ] } } [01:09:52]execute_script... [01:09:52]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" ] } } [01:09:52]POST & json_proto [01:09:52]process_json_proto [01:09:52]json parsed OK: [01:09:52]protocol is kg_v1.0 [01:09:52]action value=get_value [01:09:52]process_action get_value [01:09:52]cmd_get_value [01:09:52]process_action get_value done [01:09:52]requested_data is exist [01:09:52]produce_requested_data [01:09:52]requested_item kkm.sn is exist - process it [01:09:52]requested_item kkm.ver is exist - process it [01:09:52]requested_item fm.sn is exist - process it [01:09:52]wFMCommunicate request_size=4 [01:09:52]MH_SAM_APDU [01:09:52]CAPDU: 80 11 00 00 [01:09:52]Write to MH i2c: E2 08 00 E9 16 80 11 00 00 00 00 00 00 79 [01:09:52]Write i2c OK [01:09:52]MH_I2C_Read... [01:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:52]Read from MH i2c: E2 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: E2 17 00 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: E2 17 00 E9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C9 [01:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:09:52]wFMCommunicate OK [01:09:52]requested_item fd.num is exist - process it [01:09:52]SAM_PROTO_GetFieldsCounters [01:09:52]wFMCommunicate request_size=4 [01:09:52]MH_SAM_APDU [01:09:52]CAPDU: 80 13 00 00 [01:09:52]Write to MH i2c: E2 08 00 EA 16 80 13 00 00 00 00 00 00 7C [01:09:52]Write i2c OK [01:09:52]MH_I2C_Read... [01:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:52]Read from MH i2c: E2 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: E2 62 00 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: E2 62 00 EA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8C 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [01:09:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8C 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:09:52]wFMCommunicate OK [01:09:52]SAM_PROTO_GetFieldsCounters done [01:09:52]requested_item shift.num is exist - process it [01:09:52]requested_item shift.opened is exist - process it [01:09:52]req_shift_opened [01:09:52]FM_GetShiftState [01:09:52]SAM_PROTO_GetShiftState [01:09:52]wFMCommunicate request_size=4 [01:09:52]MH_SAM_APDU [01:09:52]CAPDU: 80 13 01 00 [01:09:52]Write to MH i2c: E2 08 00 EB 16 80 13 01 00 00 00 00 00 7E [01:09:52]Write i2c OK [01:09:52]MH_I2C_Read... [01:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:52]Read from MH i2c: E2 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: E2 0E 00 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: E2 0E 00 EB 16 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 83 [01:09:52]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:09:52]wFMCommunicate OK [01:09:52]SAM_PROTO_GetShiftState done [01:09:52]FM_GetShiftState done [01:09:52]req_shift_opened done [01:09:52]requested_item shift.open_date is exist - process it [01:09:52]req_shift_open_date [01:09:52]req_shift_open_date done [01:09:52]produce_requested_data done [01:09:52]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76684,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [01:09:52]process_action_free get_value [01:09:52]json_value_free [01:09:52]json_value_free done [01:09:52]process_json_proto returns [01:09:52]Send response to host [01:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76684,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [01:09:52]free response buf [01:09:52]execute_script done [01:09:52]execute_script returns [01:09:52]free content buf [01:09:52]Sock 7.Close socket [01:09:52]Sock 7.Thread stoped [01:09:52]accept exits with 9 [01:09:52]New connection [01:09:52]New thread 3066948964 created [01:09:52]Thread 3066805604 joined [01:09:52]Waiting for new connection... [01:09:52] Sock 9.Parse request [01:09:52]Sock 9.Check first char [01:09:52]Sock 9.First char is OK [01:09:52]request: POST /json_proto HTTP/1.0 [01:09:52]Method: POST [01:09:52]URL: /json_proto [01:09:52]Method is POST - this is cgi request [01:09:52]url: /json_proto [01:09:52]query_string will be loaded in cgi processing [01:09:52]execute_cgi json_proto POST (null) [01:09:52]execute_cgi path=json_proto method=POST [01:09:52]POST find Content-Length [01:09:52]Host: 172.17.39.195:8080 [01:09:52]Content-Length: 331 [01:09:52]Content-Type: application/json [01:09:52] [01:09:52]POST finish read [01:09:52]Found Content-Length = 331 [01:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:09:52]execute_script... [01:09:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:09:53]POST & json_proto [01:09:53]process_json_proto [01:09:53]json parsed OK: [01:09:53]protocol is kg_v1.0 [01:09:53]action value=get_value [01:09:53]process_action get_value [01:09:53]cmd_get_value [01:09:53]process_action get_value done [01:09:53]requested_data is exist [01:09:53]produce_requested_data [01:09:53]requested_item fm.sale.total is exist - process it [01:09:53]SAM_PROTO_GetFMData [01:09:53]wFMCommunicate request_size=4 [01:09:53]MH_SAM_APDU [01:09:53]CAPDU: 80 13 03 00 [01:09:53]Write to MH i2c: E2 08 00 EC 16 80 13 03 00 00 00 00 00 81 [01:09:53]Write i2c OK [01:09:53]MH_I2C_Read... [01:09:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:09:53]Read from MH i2c: E2 [01:09:53]MH_I2C_Read... [01:09:53]Read from MH i2c: E2 FD 00 [01:09:53]MH_I2C_Read... [01:09:53]Read from MH i2c: E2 FD 00 EC 16 00 C6 04 85 04 C2 04 6E 04 04 00 78 28 01 00 69 04 A3 00 6F 04 04 00 3A 25 01 00 B1 04 05 00 8B 1B 65 B0 01 70 04 05 00 E0 92 23 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1B E5 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E7 A4 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 20 [01:09:53]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 78 28 01 00 69 04 A3 00 6F 04 04 00 3A 25 01 00 B1 04 05 00 8B 1B 65 B0 01 70 04 05 00 E0 92 23 6D 01 72 04 04 00 AB 88 41 43 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1B E5 EC 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E7 A4 D3 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3E 03 00 00 B1 04 04 00 08 B7 77 A0 70 04 04 00 08 B7 77 A0 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 7A 0A 11 EF 03 09 90 00 [01:09:53]wFMCommunicate OK [01:09:53]wFMCommunicate request_size=4 [01:09:53]MH_SAM_APDU [01:09:53]CAPDU: 80 17 00 00 [01:09:53]Write to MH i2c: E2 08 00 ED 16 80 17 00 00 00 00 00 00 83 [01:09:53]Write i2c OK [01:09:53]MH_I2C_Read... [01:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:09:53]Read from MH i2c: E2 [01:09:53]MH_I2C_Read... [01:09:53]Read from MH i2c: E2 FD 00 [01:09:53]MH_I2C_Read... [01:09:53]Read from MH i2c: E2 FD 00 ED 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 38 [01:09:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0B 8A 6B 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 90 00 [01:09:53]wFMCommunicate OK [01:09:53]wFMCommunicate request_size=4 [01:09:53]MH_SAM_APDU [01:09:53]CAPDU: 80 17 00 00 [01:09:53]Write to MH i2c: E2 08 00 EE 16 80 17 00 00 00 00 00 00 84 [01:09:53]Write i2c OK [01:09:53]MH_I2C_Read... [01:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:09:54]Read from MH i2c: E2 [01:09:54]MH_I2C_Read... [01:09:54]Read from MH i2c: E2 FD 00 [01:09:54]MH_I2C_Read... [01:09:54]Read from MH i2c: E2 FD 00 EE 16 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 AB [01:09:54]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [01:09:54]wFMCommunicate OK [01:09:54]wFMCommunicate request_size=4 [01:09:54]MH_SAM_APDU [01:09:54]CAPDU: 80 17 00 00 [01:09:54]Write to MH i2c: E2 08 00 EF 16 80 17 00 00 00 00 00 00 85 [01:09:54]Write i2c OK [01:09:54]MH_I2C_Read... [01:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:09:54]Read from MH i2c: E2 [01:09:54]MH_I2C_Read... [01:09:54]Read from MH i2c: E2 FD 00 [01:09:54]MH_I2C_Read... [01:09:54]Read from MH i2c: E2 FD 00 EF 16 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [01:09:54]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:09:54]wFMCommunicate OK [01:09:54]wFMCommunicate request_size=4 [01:09:54]MH_SAM_APDU [01:09:54]CAPDU: 80 17 00 00 [01:09:54]Write to MH i2c: E2 08 00 F0 16 80 17 00 00 00 00 00 00 86 [01:09:54]Write i2c OK [01:09:54]MH_I2C_Read... [01:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [01:09:54]Read from MH i2c: E2 [01:09:54]MH_I2C_Read... [01:09:54]Read from MH i2c: E2 E3 00 [01:09:54]MH_I2C_Read... [01:09:54]Read from MH i2c: E2 E3 00 F0 16 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [01:09:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:09:54]wFMCommunicate OK [01:09:54]SAM_PROTO_GetFMData done [01:09:54]requested_item fm.sale_refund.total is exist - process it [01:09:54]requested_item fm.buy.total is exist - process it [01:09:54]requested_item shift.sale.total is exist - process it [01:09:54]SAM_PROTO_GetShiftData [01:09:54]wFMCommunicate request_size=4 [01:09:54]MH_SAM_APDU [01:09:54]CAPDU: 80 13 02 00 [01:09:54]Write to MH i2c: E2 08 00 F1 16 80 13 02 00 00 00 00 00 85 [01:09:54]Write i2c OK [01:09:54]MH_I2C_Read... [01:09:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:09:55]Read from MH i2c: E2 [01:09:55]MH_I2C_Read... [01:09:55]Read from MH i2c: E2 FD 00 [01:09:55]MH_I2C_Read... [01:09:55]Read from MH i2c: E2 FD 00 F1 16 00 A8 04 AA 04 A4 04 6E 04 04 00 02 00 00 00 69 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 58 98 70 04 02 00 58 98 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 2D 10 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 59 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 F7 03 00 00 EF 03 09 90 00 A5 [01:09:55]RAPDU: A8 04 AA 04 A4 04 6E 04 04 00 02 00 00 00 69 04 95 00 6F 04 04 00 02 00 00 00 B1 04 02 00 58 98 70 04 02 00 58 98 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 2D 10 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 59 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 F7 03 00 00 EF 03 09 90 00 [01:09:55]wFMCommunicate OK [01:09:55]wFMCommunicate request_size=4 [01:09:55]MH_SAM_APDU [01:09:55]CAPDU: 80 17 00 00 [01:09:55]Write to MH i2c: E2 08 00 F2 16 80 17 00 00 00 00 00 00 88 [01:09:55]Write i2c OK [01:09:55]MH_I2C_Read... [01:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:09:55]Read from MH i2c: E2 [01:09:55]MH_I2C_Read... [01:09:55]Read from MH i2c: E2 FD 00 [01:09:55]MH_I2C_Read... [01:09:55]Read from MH i2c: E2 FD 00 F2 16 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 93 [01:09:55]RAPDU: 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 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 90 00 [01:09:55]wFMCommunicate OK [01:09:55]wFMCommunicate request_size=4 [01:09:55]MH_SAM_APDU [01:09:55]CAPDU: 80 17 00 00 [01:09:55]Write to MH i2c: E2 08 00 F3 16 80 17 00 00 00 00 00 00 89 [01:09:55]Write i2c OK [01:09:55]MH_I2C_Read... [01:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:09:55]Read from MH i2c: E2 [01:09:55]MH_I2C_Read... [01:09:55]Read from MH i2c: E2 FD 00 [01:09:55]MH_I2C_Read... [01:09:55]Read from MH i2c: E2 FD 00 F3 16 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 90 00 54 [01:09:55]RAPDU: 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 90 00 [01:09:55]wFMCommunicate OK [01:09:55]wFMCommunicate request_size=4 [01:09:55]MH_SAM_APDU [01:09:55]CAPDU: 80 17 00 00 [01:09:55]Write to MH i2c: E2 08 00 F4 16 80 17 00 00 00 00 00 00 8A [01:09:55]Write i2c OK [01:09:55]MH_I2C_Read... [01:09:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:09:56]Read from MH i2c: E2 [01:09:56]MH_I2C_Read... [01:09:56]Read from MH i2c: E2 FD 00 [01:09:56]MH_I2C_Read... [01:09:56]Read from MH i2c: E2 FD 00 F4 16 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 90 00 FF [01:09:56]RAPDU: F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 90 00 [01:09:56]wFMCommunicate OK [01:09:56]wFMCommunicate request_size=4 [01:09:56]MH_SAM_APDU [01:09:56]CAPDU: 80 17 00 00 [01:09:56]Write to MH i2c: E2 08 00 F5 16 80 17 00 00 00 00 00 00 8B [01:09:56]Write i2c OK [01:09:56]MH_I2C_Read... [01:09:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 194! [01:09:56]Read from MH i2c: E2 [01:09:56]MH_I2C_Read... [01:09:56]Read from MH i2c: E2 C5 00 [01:09:56]MH_I2C_Read... [01:09:56]Read from MH i2c: E2 C5 00 F5 16 00 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 70 [01:09:56]RAPDU: 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:09:56]wFMCommunicate OK [01:09:56]SAM_PROTO_GetShiftData done [01:09:56]requested_item shift.sale.total_cash is exist - process it [01:09:56]requested_item shift.sale_refund.total is exist - process it [01:09:56]requested_item shift.sale_refund.total_cash is exist - process it [01:09:56]requested_item shift.buy.total is exist - process it [01:09:56]requested_item shift.buy.total_cash is exist - process it [01:09:56]produce_requested_data done [01:09:56]produce_requested_data return {"fm.sale.total":72543834.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":390.00,"shift.sale.total_cash":390.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} [01:09:56]process_action_free get_value [01:09:56]json_value_free [01:09:56]json_value_free done [01:09:56]process_json_proto returns [01:09:56]Send response to host [01:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72543834.99,"fm.sale_refund.total":26922002.00,"fm.buy.total":0.00,"shift.sale.total":390.00,"shift.sale.total_cash":390.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}}} [01:09:56]free response buf [01:09:56]execute_script done [01:09:56]execute_script returns [01:09:56]free content buf [01:09:56]Sock 9.Close socket [01:09:56]Sock 9.Thread stoped [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:03]accept exits with 7 [01:18:03]New connection [01:18:03]New thread 3066805604 created [01:18:03]Thread 3066948964 joined [01:18:03]Waiting for new connection... [01:18:03] Sock 7.Parse request [01:18:03]Sock 7.Check first char [01:18:03]Sock 7.First char is OK [01:18:03]request: POST /json_proto HTTP/1.0 [01:18:03]Method: POST [01:18:03]URL: /json_proto [01:18:03]Method is POST - this is cgi request [01:18:03]url: /json_proto [01:18:03]query_string will be loaded in cgi processing [01:18:03]execute_cgi json_proto POST (null) [01:18:03]execute_cgi path=json_proto method=POST [01:18:03]POST find Content-Length [01:18:03]Host: 172.17.39.195:8080 [01:18:03]Content-Length: 718 [01:18:03]Content-Type: application/json [01:18:03] [01:18:03]POST finish read [01:18:03]Found Content-Length = 718 [01:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220805", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 2.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:03]execute_script... [01:18:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220805", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 2.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:03]POST & json_proto [01:18:03]process_json_proto [01:18:03]json parsed OK: [01:18:03]protocol is kg_v1.0 [01:18:03]action value=close_receipt [01:18:03]process_action close_receipt [01:18:03]cmd_close_receipt [01:18:03]MH_GetDate [01:18:03]Write to MH i2c: F0 00 00 F6 16 FB [01:18:03]Write i2c OK [01:18:03]MH_I2C_Read... [01:18:03]Read from MH i2c: F0 [01:18:03]MH_I2C_Read... [01:18:03]Read from MH i2c: F0 09 00 [01:18:03]MH_I2C_Read... [01:18:03]Read from MH i2c: F0 09 00 F6 16 00 CF D4 74 66 99 81 91 64 90 [01:18:03]GetLastDocTimeStamp 1718931581 [01:18:03]current date 1718932687 [01:18:03]FM_GetShiftState [01:18:03]SAM_PROTO_GetShiftState [01:18:03]wFMCommunicate request_size=4 [01:18:03]MH_SAM_APDU [01:18:03]CAPDU: 80 13 01 00 [01:18:03]Write to MH i2c: E2 08 00 F7 16 80 13 01 00 00 00 00 00 8A [01:18:03]Write i2c OK [01:18:03]MH_I2C_Read... [01:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:03]Read from MH i2c: E2 [01:18:03]MH_I2C_Read... [01:18:03]Read from MH i2c: E2 0E 00 [01:18:03]MH_I2C_Read... [01:18:03]Read from MH i2c: E2 0E 00 F7 16 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 8F [01:18:03]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:18:03]wFMCommunicate OK [01:18:03]SAM_PROTO_GetShiftState done [01:18:03]FM_GetShiftState done [01:18:03]opened in 1718930005 [01:18:03]opened+sec_in_day 1719016405 [01:18:03]quantity*price = 50000 [01:18:03]sum+1 = 50001 [01:18:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 3 21.06.2024 01:18 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76685 ФПД: 30803917993344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011807&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76685&fm=30803917993344&tin=02508201610067®Number=0000000000095696&sum=50000 0 [01:18:04]StoreToDocumentArchive [01:18:04]shift 394 fd 76685 [01:18:04]save to /storage/0394/doc_00076685 [01:18:04]save last doc name /storage/0394/doc_00076685 to /storage/kkm_last_doc_name [01:18:04]save OK [01:18:04]Clear old archive folders... [01:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=302 [01:18:04]tlvbuf is 00F3D100 [01:18:04]SAM_PROTO_ClearQueue [01:18:04]wFMCommunicate request_size=4 [01:18:04]MH_SAM_APDU [01:18:04]CAPDU: 80 09 00 00 [01:18:04]Write to MH i2c: E2 08 00 04 17 80 09 00 00 00 00 00 00 8D [01:18:04]Write i2c OK [01:18:04]MH_I2C_Read... [01:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:04]Read from MH i2c: E2 [01:18:04]MH_I2C_Read... [01:18:04]Read from MH i2c: E2 03 00 [01:18:04]MH_I2C_Read... [01:18:04]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [01:18:04]RAPDU: 90 00 [01:18:04]wFMCommunicate OK [01:18:04]SAM_PROTO_ClearQueue done [01:18:04]KKMCreateOFDPacket [01:18:04]OFDProtocolAddRootSTLVToBuf [01:18:04]FM_MakeSignedData [01:18:04]FM_MakeSignedData [01:18:04]SAM_PROTO_SignData [01:18:04]wFMCommunicate request_size=4 [01:18:04]MH_SAM_APDU [01:18:04]CAPDU: 80 0D 01 02 [01:18:04]Write to MH i2c: E2 08 00 05 17 80 0D 01 02 00 00 00 00 95 [01:18:04]Write i2c OK [01:18:04]MH_I2C_Read... [01:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:04]Read from MH i2c: E2 [01:18:04]MH_I2C_Read... [01:18:04]Read from MH i2c: E2 03 00 [01:18:04]MH_I2C_Read... [01:18:04]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [01:18:04]RAPDU: 90 00 [01:18:04]wFMCommunicate OK [01:18:04]wFMCommunicate request_size=255 [01:18:04]MH_SAM_APDU [01:18:04]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 CF D4 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 [01:18:04]Write to MH i2c: E2 02 01 06 17 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 CF D4 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 00 00 BB [01:18:04]Write i2c OK [01:18:04]MH_I2C_Read... [01:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:04]Read from MH i2c: E2 [01:18:04]MH_I2C_Read... [01:18:04]Read from MH i2c: E2 03 00 [01:18:04]MH_I2C_Read... [01:18:04]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [01:18:04]RAPDU: 90 00 [01:18:04]wFMCommunicate OK [01:18:04]wFMCommunicate request_size=61 [01:18:04]MH_SAM_APDU [01:18:04]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8D 2B 01 00 35 04 06 00 1C 04 18 96 F5 80 [01:18:04]Write to MH i2c: E2 40 00 07 17 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8D 2B 01 00 35 04 06 00 1C 04 18 96 F5 80 00 00 D0 [01:18:04]Write i2c OK [01:18:04]MH_I2C_Read... [01:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:05]Read from MH i2c: E2 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: E2 03 00 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [01:18:05]RAPDU: 90 00 [01:18:05]wFMCommunicate OK [01:18:05]wFMCommunicate request_size=4 [01:18:05]MH_SAM_APDU [01:18:05]CAPDU: 80 0D 03 02 [01:18:05]Write to MH i2c: E2 08 00 08 17 80 0D 03 02 00 00 00 00 9A [01:18:05]Write i2c OK [01:18:05]MH_I2C_Read... [01:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:05]Read from MH i2c: E2 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: E2 0B 00 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: E2 0B 00 08 17 00 A0 84 26 2B 3A A9 55 C8 90 00 10 [01:18:05]RAPDU: A0 84 26 2B 3A A9 55 C8 90 00 [01:18:05]wFMCommunicate OK [01:18:05]SAM_PROTO_SignData done [01:18:05]FM_MakeSignedData done [01:18:05]CreateOFDProtocolMessage [01:18:05]wFMCommunicate request_size=4 [01:18:05]MH_SAM_APDU [01:18:05]CAPDU: 80 11 00 00 [01:18:05]Write to MH i2c: E2 08 00 09 17 80 11 00 00 00 00 00 00 9A [01:18:05]Write i2c OK [01:18:05]MH_I2C_Read... [01:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:05]Read from MH i2c: E2 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: E2 17 00 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: E2 17 00 09 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EA [01:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:18:05]wFMCommunicate OK [01:18:05]CreateOFDProtocolMessage done [01:18:05]OFDSenderStorePacket 76685 [01:18:05]StoreOFDPacket docnum=76685 [01:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 42 01 00 00 80 73 3A 01 74 57 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 CF D4 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8D 2B 01 00 35 04 06 00 1C 04 18 96 F5 80 A0 84 26 2B 3A A9 55 C8 [01:18:05]CheckFolder [01:18:05]dirname=/storage/ofd_packets [01:18:05]CheckFolder done [01:18:05]ProducePacketName [01:18:05]name=ofd_packets/00076685 [01:18:05]NVStorageSaveData ofd_packets/00076685 [01:18:05]File name is /storage/ofd_packets/00076685 [01:18:05]Write 352 bytes [01:18:05]NVStorageSaveData done [01:18:05]OFDSenderStorePacket done [01:18:05]KKMCreateOFDPacket done [01:18:05]NVStorageSaveData kkm_last_timestamp [01:18:05]File name is /storage/kkm_last_timestamp [01:18:05]Write 4 bytes [01:18:05]NVStorageSaveData done [01:18:05]ExternCall_PrintAddStr [01:18:05]wPrintStart [01:18:05]Write to MH i2c: 01 00 00 0A 17 21 [01:18:05]Write i2c OK [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: 01 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: 01 07 00 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: 01 07 00 0A 17 00 00 00 00 00 FF 0F 36 [01:18:05]RasterBufferAndPrint [01:18:05]line Счет N : (3)220805 [01:18:05]line ИНН: 02508201610067 [01:18:05]line Контрольно-Кассовый Чек [01:18:05]line ПРОДАЖА [01:18:05]line Товар: 4606532000189 [01:18:05]line Тормозная жидкость РосДот-4 0,455кг [01:18:05]line 2.000 * 250.00 [01:18:05]line = 500.00 [01:18:05]line НДС 12% НСП 1% [01:18:05]line > о реализуемом товаре [01:18:05]line ИТОГО: 500.00 [01:18:05]line НСП 1% : 4.42 [01:18:05]line НДС 12% : 53.10 [01:18:05]line Наличными: 500.00 [01:18:05]line Безнал.: 0.00 [01:18:05]line Место: АЗС № 144 "Партнер Нефть" [01:18:05]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:18:05]line СНО: Общий режим [01:18:05]line Чек 3 21.06.2024 01:18 [01:18:05]line Смена: 394 ФФД: 1.0 [01:18:05]line ЗНМ: 0300000170 [01:18:05]line РНМ: 0000000000095696 [01:18:05]line Версия ККМ: 001 [01:18:05]line ФМ: 0000000000875009 [01:18:05]line ФД: 76685 [01:18:05]line ФПД: 30803917993344 [01:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011807&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76685&fm=30803917993344&tin=02508201610067®Number=0000000000095696&sum=50000 [01:18:05]line 0 [01:18:05]OFD Sender: Processing packet 76685 [packets to send 351, broken 350] [01:18:05]ProducePacketName [01:18:05]name=ofd_packets/00076685 [01:18:05]OFD Sender: To server: pG, [01:18:05]CommunicateWithHost lk.salyk.kg:30040 [01:18:05]ConnectInit lk.salyk.kg [01:18:05]written 0, free lines is 4095 [01:18:05]Connected sock=10 [01:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 42 01 00 00 80 73 3A 01 74 57 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 CF D4 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8D 2B 01 00 35 04 06 00 1C 04 18 96 F5 80 A0 84 26 2B 3A A9 55 C8 [01:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 13 2C 47 00 61 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8D 2B 01 00 F4 03 04 00 6E 7B 74 66 B6 04 01 00 00 9B D3 D7 F1 9D 1A C2 AA [01:18:05]CommunicateWithHost err = 0 [01:18:05]CheckOFDResponse [01:18:05]1017 (14) - 77093643461234 [01:18:05]1041 (16) - 0000000000875009 [01:18:05]1040 (4) - 76685 [01:18:05]1012 (4) - 20.06.2024 18:56 [01:18:05]1206 (1) - 0 [01:18:05]OFD Sender: Remove packet 76685 [01:18:05]ProducePacketName [01:18:05]name=ofd_packets/00076685 [01:18:05]NVStorageDeleteData [01:18:05]Write to MH i2c: 01 00 00 33 17 4A [01:18:05]Write i2c OK [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: 01 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: 01 07 00 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: 01 07 00 33 17 00 00 00 00 00 F6 0C 53 [01:18:05]RasterBufferAndPrint [01:18:05]line [01:18:05]line [01:18:05]line [01:18:05]line [01:18:05]line [01:18:05]written 0, free lines is 3324 [01:18:05]MH_Cut [01:18:05]Write to MH i2c: D1 01 00 3A 17 01 23 [01:18:05]Write i2c OK [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: D1 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: D1 01 00 [01:18:05]MH_I2C_Read... [01:18:05]Read from MH i2c: D1 01 00 3A 17 00 22 [01:18:05]Write to MH i2c: 01 00 00 3B 17 52 [01:18:05]Write i2c OK [01:18:05]MH_I2C_Read... [01:18:06]OFD Sender: No OFD packet to send [01:18:06]*** Cut start [01:18:06]*** Partial cut [01:18:06]*** CUTSNS_PIN = 1 [01:18:06]*** CUTSNS_PIN = 0 [01:18:06]*** Brake cut motor [01:18:07]Read from MH i2c: 01 [01:18:07]MH_I2C_Read... [01:18:07]*** Stop cut motor [01:18:07]*** Cut end [01:18:07]Read from MH i2c: 01 07 00 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: 01 07 00 3B 17 00 00 00 00 00 FF 0F 67 [01:18:07]process_action close_receipt done [01:18:07]requested_data is exist [01:18:07]produce_requested_data [01:18:07]requested_item fm.sn is exist - process it [01:18:07]wFMCommunicate request_size=4 [01:18:07]MH_SAM_APDU [01:18:07]CAPDU: 80 11 00 00 [01:18:07]Write to MH i2c: E2 08 00 3C 17 80 11 00 00 00 00 00 00 CD [01:18:07]Write i2c OK [01:18:07]MH_I2C_Read... [01:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:07]Read from MH i2c: E2 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: E2 17 00 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: E2 17 00 3C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1D [01:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:18:07]wFMCommunicate OK [01:18:07]requested_item fd.num is exist - process it [01:18:07]SAM_PROTO_GetFieldsCounters [01:18:07]wFMCommunicate request_size=4 [01:18:07]MH_SAM_APDU [01:18:07]CAPDU: 80 13 00 00 [01:18:07]Write to MH i2c: E2 08 00 3D 17 80 13 00 00 00 00 00 00 D0 [01:18:07]Write i2c OK [01:18:07]MH_I2C_Read... [01:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:07]Read from MH i2c: E2 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: E2 62 00 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: E2 62 00 3D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8D 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [01:18:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8D 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:07]wFMCommunicate OK [01:18:07]SAM_PROTO_GetFieldsCounters done [01:18:07]requested_item shift.num is exist - process it [01:18:07]requested_item shift.opened is exist - process it [01:18:07]req_shift_opened [01:18:07]FM_GetShiftState [01:18:07]SAM_PROTO_GetShiftState [01:18:07]wFMCommunicate request_size=4 [01:18:07]MH_SAM_APDU [01:18:07]CAPDU: 80 13 01 00 [01:18:07]Write to MH i2c: E2 08 00 3E 17 80 13 01 00 00 00 00 00 D2 [01:18:07]Write i2c OK [01:18:07]MH_I2C_Read... [01:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:07]Read from MH i2c: E2 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: E2 0E 00 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: E2 0E 00 3E 17 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 D7 [01:18:07]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:18:07]wFMCommunicate OK [01:18:07]SAM_PROTO_GetShiftState done [01:18:07]FM_GetShiftState done [01:18:07]req_shift_opened done [01:18:07]requested_item shift.open_date is exist - process it [01:18:07]req_shift_open_date [01:18:07]req_shift_open_date done [01:18:07]produce_requested_data done [01:18:07]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76685,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [01:18:07]process_action_free close_receipt [01:18:07]json_value_free [01:18:07]json_value_free done [01:18:07]process_json_proto returns [01:18:07]Send response to host [01:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76685,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [01:18:07]free response buf [01:18:07]execute_script done [01:18:07]execute_script returns [01:18:07]free content buf [01:18:07]Sock 7.Close socket [01:18:07]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:17]accept exits with 9 [01:19:17]New connection [01:19:17]New thread 3066948964 created [01:19:17]Thread 3066805604 joined [01:19:17]Waiting for new connection... [01:19:17] Sock 9.Parse request [01:19:17]Sock 9.Check first char [01:19:17]Sock 9.First char is OK [01:19:17]request: POST /json_proto HTTP/1.0 [01:19:17]Method: POST [01:19:17]URL: /json_proto [01:19:17]Method is POST - this is cgi request [01:19:17]url: /json_proto [01:19:17]query_string will be loaded in cgi processing [01:19:17]execute_cgi json_proto POST (null) [01:19:17]execute_cgi path=json_proto method=POST [01:19:17]POST find Content-Length [01:19:17]Host: 172.17.39.195:8080 [01:19:17]Content-Length: 620 [01:19:17]Content-Type: application/json [01:19:17] [01:19:17]POST finish read [01:19:17]Found Content-Length = 620 [01:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220806", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:17]execute_script... [01:19:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220806", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:17]POST & json_proto [01:19:17]process_json_proto [01:19:17]json parsed OK: [01:19:17]protocol is kg_v1.0 [01:19:17]action value=close_receipt [01:19:17]process_action close_receipt [01:19:17]cmd_close_receipt [01:19:17]MH_GetDate [01:19:17]Write to MH i2c: F0 00 00 3F 17 45 [01:19:17]Write i2c OK [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: F0 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: F0 09 00 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: F0 09 00 3F 17 00 19 D5 74 66 99 81 91 64 25 [01:19:17]GetLastDocTimeStamp 1718932687 [01:19:17]current date 1718932761 [01:19:17]FM_GetShiftState [01:19:17]SAM_PROTO_GetShiftState [01:19:17]wFMCommunicate request_size=4 [01:19:17]MH_SAM_APDU [01:19:17]CAPDU: 80 13 01 00 [01:19:17]Write to MH i2c: E2 08 00 40 17 80 13 01 00 00 00 00 00 D4 [01:19:17]Write i2c OK [01:19:17]MH_I2C_Read... [01:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:17]Read from MH i2c: E2 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 0E 00 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: E2 0E 00 40 17 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 D9 [01:19:17]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:19:17]wFMCommunicate OK [01:19:17]SAM_PROTO_GetShiftState done [01:19:17]FM_GetShiftState done [01:19:17]opened in 1718930005 [01:19:17]opened+sec_in_day 1719016405 [01:19:17]quantity*price = 13500 [01:19:17]sum+1 = 13501 [01:19:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 4 21.06.2024 01:19 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76686 ФПД: 151126343136227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011921&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76686&fm=151126343136227&tin=02508201610067®Number=0000000000095696&sum=13500 0 [01:19:18]StoreToDocumentArchive [01:19:18]shift 394 fd 76686 [01:19:18]save to /storage/0394/doc_00076686 [01:19:18]save last doc name /storage/0394/doc_00076686 to /storage/kkm_last_doc_name [01:19:18]save OK [01:19:18]Clear old archive folders... [01:19:18]ProcessDocumentItem done err = 0, tmpTLVsize=272 [01:19:18]tlvbuf is B6EA7EB0 [01:19:18]SAM_PROTO_ClearQueue [01:19:18]wFMCommunicate request_size=4 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 09 00 00 [01:19:18]Write to MH i2c: E2 08 00 4D 17 80 09 00 00 00 00 00 00 D6 [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [01:19:18]RAPDU: 90 00 [01:19:18]wFMCommunicate OK [01:19:18]SAM_PROTO_ClearQueue done [01:19:18]KKMCreateOFDPacket [01:19:18]OFDProtocolAddRootSTLVToBuf [01:19:18]FM_MakeSignedData [01:19:18]FM_MakeSignedData [01:19:18]SAM_PROTO_SignData [01:19:18]wFMCommunicate request_size=4 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 0D 01 02 [01:19:18]Write to MH i2c: E2 08 00 4E 17 80 0D 01 02 00 00 00 00 DE [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 4E 17 00 90 00 D9 [01:19:18]RAPDU: 90 00 [01:19:18]wFMCommunicate OK [01:19:18]wFMCommunicate request_size=255 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 19 D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 [01:19:18]Write to MH i2c: E2 02 01 4F 17 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 19 D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 FA [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 4F 17 00 90 00 DA [01:19:18]RAPDU: 90 00 [01:19:18]wFMCommunicate OK [01:19:18]wFMCommunicate request_size=31 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 39 10 04 04 00 8E 2B 01 00 35 04 06 00 89 72 D7 FF B3 E3 [01:19:18]Write to MH i2c: E2 22 00 50 17 80 0D 02 02 1A 00 30 30 38 37 35 30 30 39 10 04 04 00 8E 2B 01 00 35 04 06 00 89 72 D7 FF B3 E3 00 00 2A [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [01:19:18]RAPDU: 90 00 [01:19:18]wFMCommunicate OK [01:19:18]wFMCommunicate request_size=4 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 0D 03 02 [01:19:18]Write to MH i2c: E2 08 00 51 17 80 0D 03 02 00 00 00 00 E3 [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:19:18]Read from MH i2c: E2 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 0B 00 [01:19:18]MH_I2C_Read... [01:19:18]Read from MH i2c: E2 0B 00 51 17 00 02 77 A5 98 8A DE 34 AF 90 00 E5 [01:19:18]RAPDU: 02 77 A5 98 8A DE 34 AF 90 00 [01:19:18]wFMCommunicate OK [01:19:18]SAM_PROTO_SignData done [01:19:18]FM_MakeSignedData done [01:19:18]CreateOFDProtocolMessage [01:19:18]wFMCommunicate request_size=4 [01:19:18]MH_SAM_APDU [01:19:18]CAPDU: 80 11 00 00 [01:19:18]Write to MH i2c: E2 08 00 52 17 80 11 00 00 00 00 00 00 E3 [01:19:18]Write i2c OK [01:19:18]MH_I2C_Read... [01:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:19]Read from MH i2c: E2 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 17 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: E2 17 00 52 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 33 [01:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:19:19]wFMCommunicate OK [01:19:19]CreateOFDProtocolMessage done [01:19:19]OFDSenderStorePacket 76686 [01:19:19]StoreOFDPacket docnum=76686 [01:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 24 01 00 00 28 30 1C 01 3A B9 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 19 D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8E 2B 01 00 35 04 06 00 89 72 D7 FF B3 E3 02 77 A5 98 8A DE 34 AF [01:19:19]CheckFolder [01:19:19]dirname=/storage/ofd_packets [01:19:19]CheckFolder done [01:19:19]ProducePacketName [01:19:19]name=ofd_packets/00076686 [01:19:19]NVStorageSaveData ofd_packets/00076686 [01:19:19]File name is /storage/ofd_packets/00076686 [01:19:19]Write 322 bytes [01:19:19]NVStorageSaveData done [01:19:19]OFDSenderStorePacket done [01:19:19]KKMCreateOFDPacket done [01:19:19]NVStorageSaveData kkm_last_timestamp [01:19:19]File name is /storage/kkm_last_timestamp [01:19:19]Write 4 bytes [01:19:19]NVStorageSaveData done [01:19:19]ExternCall_PrintAddStr [01:19:19]wPrintStart [01:19:19]Write to MH i2c: 01 00 00 53 17 6A [01:19:19]Write i2c OK [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: 01 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: 01 07 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: 01 07 00 53 17 00 00 00 00 00 FF 0F 7F [01:19:19]RasterBufferAndPrint [01:19:19]line Счет N : (3)220806 [01:19:19]line ИНН: 02508201610067 [01:19:19]line Контрольно-Кассовый Чек [01:19:19]line ПРОДАЖА [01:19:19]line Товар: 48745000 [01:19:19]line Сигареты Winston Purple Mix [01:19:19]line 1.000 * 135.00 [01:19:19]line = 135.00 [01:19:19]line НДС 12% НСП 1% [01:19:19]line > о реализуемом товаре [01:19:19]line ИТОГО: 135.00 [01:19:19]line НСП 1% : 1.19 [01:19:19]line НДС 12% : 14.34 [01:19:19]line Наличными: 135.00 [01:19:19]line Безнал.: 0.00 [01:19:19]line Место: АЗС № 144 "Партнер Нефть" [01:19:19]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:19:19]line СНО: Общий режим [01:19:19]line Чек 4 21.06.2024 01:19 [01:19:19]line Смена: 394 ФФД: 1.0 [01:19:19]line ЗНМ: 0300000170 [01:19:19]line РНМ: 0000000000095696 [01:19:19]line Версия ККМ: 001 [01:19:19]line ФМ: 0000000000875009 [01:19:19]line ФД: 76686 [01:19:19]line ФПД: 151126343136227 [01:19:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011921&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76686&fm=151126343136227&tin=02508201610067®Number=0000000000095696&sum=13500 [01:19:19]line 0 [01:19:19]written 0, free lines is 4095 [01:19:19]OFD Sender: Processing packet 76686 [packets to send 351, broken 350] [01:19:19]ProducePacketName [01:19:19]name=ofd_packets/00076686 [01:19:19]OFD Sender: To server: pG, [01:19:19]CommunicateWithHost lk.salyk.kg:30040 [01:19:19]ConnectInit lk.salyk.kg [01:19:19]Connected sock=10 [01:19:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 24 01 00 00 28 30 1C 01 3A B9 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 19 D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8E 2B 01 00 35 04 06 00 89 72 D7 FF B3 E3 02 77 A5 98 8A DE 34 AF [01:19:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 CA 90 47 00 A2 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8E 2B 01 00 F4 03 04 00 B8 7B 74 66 B6 04 01 00 00 12 86 9F AF E7 B5 5D 2A [01:19:19]CommunicateWithHost err = 0 [01:19:19]CheckOFDResponse [01:19:19]1017 (14) - 77093643461234 [01:19:19]1041 (16) - 0000000000875009 [01:19:19]1040 (4) - 76686 [01:19:19]1012 (4) - 20.06.2024 18:58 [01:19:19]1206 (1) - 0 [01:19:19]OFD Sender: Remove packet 76686 [01:19:19]ProducePacketName [01:19:19]name=ofd_packets/00076686 [01:19:19]NVStorageDeleteData [01:19:19]Write to MH i2c: 01 00 00 7B 17 92 [01:19:19]Write i2c OK [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: 01 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: 01 07 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: 01 07 00 7B 17 00 00 00 00 00 EB 0C 90 [01:19:19]RasterBufferAndPrint [01:19:19]line [01:19:19]line [01:19:19]line [01:19:19]line [01:19:19]line [01:19:19]written 0, free lines is 3313 [01:19:19]MH_Cut [01:19:19]Write to MH i2c: D1 01 00 82 17 01 6B [01:19:19]Write i2c OK [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: D1 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: D1 01 00 [01:19:19]MH_I2C_Read... [01:19:19]Read from MH i2c: D1 01 00 82 17 00 6A [01:19:19]Write to MH i2c: 01 00 00 83 17 9A [01:19:19]Write i2c OK [01:19:19]MH_I2C_Read... [01:19:19]OFD Sender: No OFD packet to send [01:19:20]*** Cut start [01:19:20]*** Partial cut [01:19:20]*** CUTSNS_PIN = 1 [01:19:20]*** CUTSNS_PIN = 0 [01:19:20]*** Brake cut motor [01:19:20]Read from MH i2c: 01 [01:19:20]MH_I2C_Read... [01:19:20]*** Stop cut motor [01:19:20]*** Cut end [01:19:20]Read from MH i2c: 01 07 00 [01:19:20]MH_I2C_Read... [01:19:20]Read from MH i2c: 01 07 00 83 17 00 00 00 00 00 FF 0F AF [01:19:20]process_action close_receipt done [01:19:20]requested_data is exist [01:19:20]produce_requested_data [01:19:20]requested_item fm.sn is exist - process it [01:19:20]wFMCommunicate request_size=4 [01:19:20]MH_SAM_APDU [01:19:20]CAPDU: 80 11 00 00 [01:19:20]Write to MH i2c: E2 08 00 84 17 80 11 00 00 00 00 00 00 15 [01:19:20]Write i2c OK [01:19:20]MH_I2C_Read... [01:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:20]Read from MH i2c: E2 [01:19:20]MH_I2C_Read... [01:19:20]Read from MH i2c: E2 17 00 [01:19:20]MH_I2C_Read... [01:19:20]Read from MH i2c: E2 17 00 84 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 65 [01:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:19:20]wFMCommunicate OK [01:19:20]requested_item fd.num is exist - process it [01:19:20]SAM_PROTO_GetFieldsCounters [01:19:20]wFMCommunicate request_size=4 [01:19:20]MH_SAM_APDU [01:19:20]CAPDU: 80 13 00 00 [01:19:20]Write to MH i2c: E2 08 00 85 17 80 13 00 00 00 00 00 00 18 [01:19:20]Write i2c OK [01:19:20]MH_I2C_Read... [01:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 62 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 62 00 85 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8E 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [01:19:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8E 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:21]wFMCommunicate OK [01:19:21]SAM_PROTO_GetFieldsCounters done [01:19:21]requested_item shift.num is exist - process it [01:19:21]requested_item shift.opened is exist - process it [01:19:21]req_shift_opened [01:19:21]FM_GetShiftState [01:19:21]SAM_PROTO_GetShiftState [01:19:21]wFMCommunicate request_size=4 [01:19:21]MH_SAM_APDU [01:19:21]CAPDU: 80 13 01 00 [01:19:21]Write to MH i2c: E2 08 00 86 17 80 13 01 00 00 00 00 00 1A [01:19:21]Write i2c OK [01:19:21]MH_I2C_Read... [01:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 0E 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 0E 00 86 17 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 1F [01:19:21]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:19:21]wFMCommunicate OK [01:19:21]SAM_PROTO_GetShiftState done [01:19:21]FM_GetShiftState done [01:19:21]req_shift_opened done [01:19:21]requested_item shift.open_date is exist - process it [01:19:21]req_shift_open_date [01:19:21]req_shift_open_date done [01:19:21]produce_requested_data done [01:19:21]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76686,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [01:19:21]process_action_free close_receipt [01:19:21]json_value_free [01:19:21]json_value_free done [01:19:21]process_json_proto returns [01:19:21]Send response to host [01:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76686,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [01:19:21]free response buf [01:19:21]execute_script done [01:19:21]execute_script returns [01:19:21]free content buf [01:19:21]Sock 9.Close socket [01:19:21]Sock 9.Thread stoped [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:50]accept exits with 7 [01:19:50]New connection [01:19:50]New thread 3066805604 created [01:19:50]Thread 3066948964 joined [01:19:50]Waiting for new connection... [01:19:50] Sock 7.Parse request [01:19:50]Sock 7.Check first char [01:19:50]Sock 7.First char is OK [01:19:50]request: POST /json_proto HTTP/1.0 [01:19:50]Method: POST [01:19:50]URL: /json_proto [01:19:50]Method is POST - this is cgi request [01:19:50]url: /json_proto [01:19:50]query_string will be loaded in cgi processing [01:19:50]execute_cgi json_proto POST (null) [01:19:50]execute_cgi path=json_proto method=POST [01:19:50]POST find Content-Length [01:19:50]Host: 172.17.39.195:8080 [01:19:50]Content-Length: 661 [01:19:50]Content-Type: application/json [01:19:50] [01:19:50]POST finish read [01:19:50]Found Content-Length = 661 [01:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220807", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:50]execute_script... [01:19: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 : (3)220807", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:50]POST & json_proto [01:19:50]process_json_proto [01:19:50]json parsed OK: [01:19:50]protocol is kg_v1.0 [01:19:50]action value=close_receipt [01:19:50]process_action close_receipt [01:19:50]cmd_close_receipt [01:19:50]MH_GetDate [01:19:50]Write to MH i2c: F0 00 00 87 17 8D [01:19:50]Write i2c OK [01:19:50]MH_I2C_Read... [01:19:50]Read from MH i2c: F0 [01:19:50]MH_I2C_Read... [01:19:50]Read from MH i2c: F0 09 00 [01:19:50]MH_I2C_Read... [01:19:50]Read from MH i2c: F0 09 00 87 17 00 3A D5 74 66 99 81 91 64 8E [01:19:50]GetLastDocTimeStamp 1718932761 [01:19:50]current date 1718932794 [01:19:50]FM_GetShiftState [01:19:50]SAM_PROTO_GetShiftState [01:19:50]wFMCommunicate request_size=4 [01:19:50]MH_SAM_APDU [01:19:50]CAPDU: 80 13 01 00 [01:19:50]Write to MH i2c: E2 08 00 88 17 80 13 01 00 00 00 00 00 1C [01:19:50]Write i2c OK [01:19:50]MH_I2C_Read... [01:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:50]Read from MH i2c: E2 [01:19:50]MH_I2C_Read... [01:19:50]Read from MH i2c: E2 0E 00 [01:19:50]MH_I2C_Read... [01:19:50]Read from MH i2c: E2 0E 00 88 17 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 21 [01:19:50]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:19:50]wFMCommunicate OK [01:19:50]SAM_PROTO_GetShiftState done [01:19:50]FM_GetShiftState done [01:19:50]opened in 1718930005 [01:19:50]opened+sec_in_day 1719016405 [01:19:50]quantity*price = 6700 [01:19:50]sum+1 = 6701 [01:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 5 21.06.2024 01:19 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76687 ФПД: 94866265131734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011954&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76687&fm=94866265131734&tin=02508201610067®Number=0000000000095696&sum=6700 0 [01:19:51]StoreToDocumentArchive [01:19:51]shift 394 fd 76687 [01:19:51]save to /storage/0394/doc_00076687 [01:19:51]save last doc name /storage/0394/doc_00076687 to /storage/kkm_last_doc_name [01:19:51]save OK [01:19:51]Clear old archive folders... [01:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=284 [01:19:51]tlvbuf is 00EA9850 [01:19:51]SAM_PROTO_ClearQueue [01:19:51]wFMCommunicate request_size=4 [01:19:51]MH_SAM_APDU [01:19:51]CAPDU: 80 09 00 00 [01:19:51]Write to MH i2c: E2 08 00 95 17 80 09 00 00 00 00 00 00 1E [01:19:51]Write i2c OK [01:19:51]MH_I2C_Read... [01:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:19:51]Read from MH i2c: E2 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [01:19:51]RAPDU: 90 00 [01:19:51]wFMCommunicate OK [01:19:51]SAM_PROTO_ClearQueue done [01:19:51]KKMCreateOFDPacket [01:19:51]OFDProtocolAddRootSTLVToBuf [01:19:51]FM_MakeSignedData [01:19:51]FM_MakeSignedData [01:19:51]SAM_PROTO_SignData [01:19:51]wFMCommunicate request_size=4 [01:19:51]MH_SAM_APDU [01:19:51]CAPDU: 80 0D 01 02 [01:19:51]Write to MH i2c: E2 08 00 96 17 80 0D 01 02 00 00 00 00 26 [01:19:51]Write i2c OK [01:19:51]MH_I2C_Read... [01:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:19:51]Read from MH i2c: E2 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [01:19:51]RAPDU: 90 00 [01:19:51]wFMCommunicate OK [01:19:51]wFMCommunicate request_size=255 [01:19:51]MH_SAM_APDU [01:19:51]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 3A D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 [01:19:51]Write to MH i2c: E2 02 01 97 17 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 3A D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 00 00 CA [01:19:51]Write i2c OK [01:19:51]MH_I2C_Read... [01:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:51]Read from MH i2c: E2 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [01:19:51]RAPDU: 90 00 [01:19:51]wFMCommunicate OK [01:19:51]wFMCommunicate request_size=43 [01:19:51]MH_SAM_APDU [01:19:51]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8F 2B 01 00 35 04 06 00 56 47 C6 08 CA D6 [01:19:51]Write to MH i2c: E2 2E 00 98 17 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8F 2B 01 00 35 04 06 00 56 47 C6 08 CA D6 00 00 D4 [01:19:51]Write i2c OK [01:19:51]MH_I2C_Read... [01:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:51]Read from MH i2c: E2 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [01:19:51]RAPDU: 90 00 [01:19:51]wFMCommunicate OK [01:19:51]wFMCommunicate request_size=4 [01:19:51]MH_SAM_APDU [01:19:51]CAPDU: 80 0D 03 02 [01:19:51]Write to MH i2c: E2 08 00 99 17 80 0D 03 02 00 00 00 00 2B [01:19:51]Write i2c OK [01:19:51]MH_I2C_Read... [01:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:19:51]Read from MH i2c: E2 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 0B 00 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 0B 00 99 17 00 78 9B EC 4F 1B 62 1F 8A 90 00 A0 [01:19:51]RAPDU: 78 9B EC 4F 1B 62 1F 8A 90 00 [01:19:51]wFMCommunicate OK [01:19:51]SAM_PROTO_SignData done [01:19:51]FM_MakeSignedData done [01:19:51]CreateOFDProtocolMessage [01:19:51]wFMCommunicate request_size=4 [01:19:51]MH_SAM_APDU [01:19:51]CAPDU: 80 11 00 00 [01:19:51]Write to MH i2c: E2 08 00 9A 17 80 11 00 00 00 00 00 00 2B [01:19:51]Write i2c OK [01:19:51]MH_I2C_Read... [01:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:51]Read from MH i2c: E2 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 17 00 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: E2 17 00 9A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7B [01:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:19:51]wFMCommunicate OK [01:19:51]CreateOFDProtocolMessage done [01:19:51]OFDSenderStorePacket 76687 [01:19:51]StoreOFDPacket docnum=76687 [01:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 30 01 00 00 D9 A4 28 01 88 9B 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 3A D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8F 2B 01 00 35 04 06 00 56 47 C6 08 CA D6 78 9B EC 4F 1B 62 1F 8A [01:19:51]CheckFolder [01:19:51]dirname=/storage/ofd_packets [01:19:51]CheckFolder done [01:19:51]ProducePacketName [01:19:51]name=ofd_packets/00076687 [01:19:51]NVStorageSaveData ofd_packets/00076687 [01:19:51]File name is /storage/ofd_packets/00076687 [01:19:51]Write 334 bytes [01:19:51]NVStorageSaveData done [01:19:51]OFDSenderStorePacket done [01:19:51]KKMCreateOFDPacket done [01:19:51]NVStorageSaveData kkm_last_timestamp [01:19:51]File name is /storage/kkm_last_timestamp [01:19:51]Write 4 bytes [01:19:51]NVStorageSaveData done [01:19:51]ExternCall_PrintAddStr [01:19:51]wPrintStart [01:19:51]Write to MH i2c: 01 00 00 9B 17 B2 [01:19:51]Write i2c OK [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: 01 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: 01 07 00 [01:19:51]MH_I2C_Read... [01:19:51]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 FF 0F C7 [01:19:51]RasterBufferAndPrint [01:19:51]line Счет N : (3)220807 [01:19:51]line ИНН: 02508201610067 [01:19:51]line Контрольно-Кассовый Чек [01:19:51]line ПРОДАЖА [01:19:51]line Товар: 6931280300549 [01:19:51]line Зажигалка Cricket ПН пьезо [01:19:51]line 1.000 * 67.00 [01:19:51]line = 67.00 [01:19:51]line НДС 12% НСП 1% [01:19:51]line > о реализуемом товаре [01:19:51]line ИТОГО: 67.00 [01:19:51]line НСП 1% : 0.59 [01:19:51]line НДС 12% : 7.11 [01:19:51]line Наличными: 67.00 [01:19:51]line Безнал.: 0.00 [01:19:51]line Место: АЗС № 144 "Партнер Нефть" [01:19:51]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:19:51]line СНО: Общий режим [01:19:51]line Чек 5 21.06.2024 01:19 [01:19:51]line Смена: 394 ФФД: 1.0 [01:19:51]line ЗНМ: 0300000170 [01:19:51]line РНМ: 0000000000095696 [01:19:51]line Версия ККМ: 001 [01:19:51]line ФМ: 0000000000875009 [01:19:51]line ФД: 76687 [01:19:51]line ФПД: 94866265131734 [01:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011954&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76687&fm=94866265131734&tin=02508201610067®Number=0000000000095696&sum=6700 [01:19:52]line 0 [01:19:52]OFD Sender: Processing packet 76687 [packets to send 351, broken 350] [01:19:52]ProducePacketName [01:19:52]name=ofd_packets/00076687 [01:19:52]OFD Sender: To server: pG, [01:19:52]CommunicateWithHost lk.salyk.kg:30040 [01:19:52]ConnectInit lk.salyk.kg [01:19:52]written 0, free lines is 4095 [01:19:52]Connected sock=10 [01:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 30 01 00 00 D9 A4 28 01 88 9B 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 3A D5 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8F 2B 01 00 35 04 06 00 56 47 C6 08 CA D6 78 9B EC 4F 1B 62 1F 8A [01:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 50 41 47 00 62 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 8F 2B 01 00 F4 03 04 00 D9 7B 74 66 B6 04 01 00 00 4E 9E D4 C1 52 54 86 56 [01:19:52]CommunicateWithHost err = 0 [01:19:52]CheckOFDResponse [01:19:52]1017 (14) - 77093643461234 [01:19:52]1041 (16) - 0000000000875009 [01:19:52]1040 (4) - 76687 [01:19:52]1012 (4) - 20.06.2024 18:58 [01:19:52]1206 (1) - 0 [01:19:52]OFD Sender: Remove packet 76687 [01:19:52]ProducePacketName [01:19:52]name=ofd_packets/00076687 [01:19:52]NVStorageDeleteData [01:19:52]Write to MH i2c: 01 00 00 C3 17 DA [01:19:52]Write i2c OK [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: 01 [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: 01 07 00 [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: 01 07 00 C3 17 00 00 00 00 00 FD 0C EA [01:19:52]RasterBufferAndPrint [01:19:52]line [01:19:52]line [01:19:52]line [01:19:52]line [01:19:52]line [01:19:52]written 0, free lines is 3331 [01:19:52]MH_Cut [01:19:52]Write to MH i2c: D1 01 00 CA 17 01 B3 [01:19:52]Write i2c OK [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: D1 [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: D1 01 00 [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: D1 01 00 CA 17 00 B2 [01:19:52]Write to MH i2c: 01 00 00 CB 17 E2 [01:19:52]Write i2c OK [01:19:52]MH_I2C_Read... [01:19:53]OFD Sender: No OFD packet to send [01:19:53]*** Cut start [01:19:53]*** Partial cut [01:19:53]*** CUTSNS_PIN = 1 [01:19:53]*** CUTSNS_PIN = 0 [01:19:53]*** Brake cut motor [01:19:54]Read from MH i2c: 01 [01:19:54]MH_I2C_Read... [01:19:54]*** Stop cut motor [01:19:54]*** Cut end [01:19:54]Read from MH i2c: 01 07 00 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: 01 07 00 CB 17 00 00 00 00 00 FF 0F F7 [01:19:54]process_action close_receipt done [01:19:54]requested_data is exist [01:19:54]produce_requested_data [01:19:54]requested_item fm.sn is exist - process it [01:19:54]wFMCommunicate request_size=4 [01:19:54]MH_SAM_APDU [01:19:54]CAPDU: 80 11 00 00 [01:19:54]Write to MH i2c: E2 08 00 CC 17 80 11 00 00 00 00 00 00 5D [01:19:54]Write i2c OK [01:19:54]MH_I2C_Read... [01:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:54]Read from MH i2c: E2 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 17 00 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 17 00 CC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 AD [01:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:19:54]wFMCommunicate OK [01:19:54]requested_item fd.num is exist - process it [01:19:54]SAM_PROTO_GetFieldsCounters [01:19:54]wFMCommunicate request_size=4 [01:19:54]MH_SAM_APDU [01:19:54]CAPDU: 80 13 00 00 [01:19:54]Write to MH i2c: E2 08 00 CD 17 80 13 00 00 00 00 00 00 60 [01:19:54]Write i2c OK [01:19:54]MH_I2C_Read... [01:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:54]Read from MH i2c: E2 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 62 00 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 62 00 CD 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8F 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [01:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 8F 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:54]wFMCommunicate OK [01:19:54]SAM_PROTO_GetFieldsCounters done [01:19:54]requested_item shift.num is exist - process it [01:19:54]requested_item shift.opened is exist - process it [01:19:54]req_shift_opened [01:19:54]FM_GetShiftState [01:19:54]SAM_PROTO_GetShiftState [01:19:54]wFMCommunicate request_size=4 [01:19:54]MH_SAM_APDU [01:19:54]CAPDU: 80 13 01 00 [01:19:54]Write to MH i2c: E2 08 00 CE 17 80 13 01 00 00 00 00 00 62 [01:19:54]Write i2c OK [01:19:54]MH_I2C_Read... [01:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:54]Read from MH i2c: E2 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 0E 00 [01:19:54]MH_I2C_Read... [01:19:54]Read from MH i2c: E2 0E 00 CE 17 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 67 [01:19:54]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:19:54]wFMCommunicate OK [01:19:54]SAM_PROTO_GetShiftState done [01:19:54]FM_GetShiftState done [01:19:54]req_shift_opened done [01:19:54]requested_item shift.open_date is exist - process it [01:19:54]req_shift_open_date [01:19:54]req_shift_open_date done [01:19:54]produce_requested_data done [01:19:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76687,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [01:19:54]process_action_free close_receipt [01:19:54]json_value_free [01:19:54]json_value_free done [01:19:54]process_json_proto returns [01:19:54]Send response to host [01:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76687,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [01:19:54]free response buf [01:19:54]execute_script done [01:19:54]execute_script returns [01:19:54]free content buf [01:19:54]Sock 7.Close socket [01:19:54]Sock 7.Thread stoped [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:05]accept exits with 9 [01:33:05]New connection [01:33:05]New thread 3066948964 created [01:33:05]Thread 3066805604 joined [01:33:05]Waiting for new connection... [01:33:05] Sock 9.Parse request [01:33:05]Sock 9.Check first char [01:33:05]Sock 9.First char is OK [01:33:05]request: POST /json_proto HTTP/1.0 [01:33:05]Method: POST [01:33:05]URL: /json_proto [01:33:05]Method is POST - this is cgi request [01:33:05]url: /json_proto [01:33:05]query_string will be loaded in cgi processing [01:33:05]execute_cgi json_proto POST (null) [01:33:05]execute_cgi path=json_proto method=POST [01:33:05]POST find Content-Length [01:33:05]Host: 172.17.39.195:8080 [01:33:05]Content-Length: 696 [01:33:05]Content-Type: application/json [01:33:05] [01:33:05]POST finish read [01:33:05]Found Content-Length = 696 [01:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220808", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:05]execute_script... [01:33: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 : (3)220808", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:05]POST & json_proto [01:33:05]process_json_proto [01:33:05]json parsed OK: [01:33:05]protocol is kg_v1.0 [01:33:05]action value=close_receipt [01:33:05]process_action close_receipt [01:33:05]cmd_close_receipt [01:33:05]MH_GetDate [01:33:05]Write to MH i2c: F0 00 00 CF 17 D5 [01:33:05]Write i2c OK [01:33:05]MH_I2C_Read... [01:33:05]Read from MH i2c: F0 [01:33:05]MH_I2C_Read... [01:33:05]Read from MH i2c: F0 09 00 [01:33:05]MH_I2C_Read... [01:33:05]Read from MH i2c: F0 09 00 CF 17 00 55 D8 74 66 99 81 91 64 F4 [01:33:05]GetLastDocTimeStamp 1718932794 [01:33:05]current date 1718933589 [01:33:05]FM_GetShiftState [01:33:05]SAM_PROTO_GetShiftState [01:33:05]wFMCommunicate request_size=4 [01:33:05]MH_SAM_APDU [01:33:05]CAPDU: 80 13 01 00 [01:33:05]Write to MH i2c: E2 08 00 D0 17 80 13 01 00 00 00 00 00 64 [01:33:05]Write i2c OK [01:33:05]MH_I2C_Read... [01:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:05]Read from MH i2c: E2 [01:33:05]MH_I2C_Read... [01:33:05]Read from MH i2c: E2 0E 00 [01:33:05]MH_I2C_Read... [01:33:05]Read from MH i2c: E2 0E 00 D0 17 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 69 [01:33:05]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:33:05]wFMCommunicate OK [01:33:05]SAM_PROTO_GetShiftState done [01:33:05]FM_GetShiftState done [01:33:05]opened in 1718930005 [01:33:05]opened+sec_in_day 1719016405 [01:33:05]quantity*price = 8500 [01:33:05]sum+1 = 8501 [01:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 6 21.06.2024 01:33 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76688 ФПД: 29984463302428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T013309&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76688&fm=29984463302428&tin=02508201610067®Number=0000000000095696&sum=8500 0 [01:33:06]StoreToDocumentArchive [01:33:06]shift 394 fd 76688 [01:33:06]save to /storage/0394/doc_00076688 [01:33:06]save last doc name /storage/0394/doc_00076688 to /storage/kkm_last_doc_name [01:33:06]save OK [01:33:06]Clear old archive folders... [01:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=299 [01:33:06]tlvbuf is 00E965A0 [01:33:06]SAM_PROTO_ClearQueue [01:33:06]wFMCommunicate request_size=4 [01:33:06]MH_SAM_APDU [01:33:06]CAPDU: 80 09 00 00 [01:33:06]Write to MH i2c: E2 08 00 DD 17 80 09 00 00 00 00 00 00 66 [01:33:06]Write i2c OK [01:33:06]MH_I2C_Read... [01:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:33:06]Read from MH i2c: E2 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [01:33:06]RAPDU: 90 00 [01:33:06]wFMCommunicate OK [01:33:06]SAM_PROTO_ClearQueue done [01:33:06]KKMCreateOFDPacket [01:33:06]OFDProtocolAddRootSTLVToBuf [01:33:06]FM_MakeSignedData [01:33:06]FM_MakeSignedData [01:33:06]SAM_PROTO_SignData [01:33:06]wFMCommunicate request_size=4 [01:33:06]MH_SAM_APDU [01:33:06]CAPDU: 80 0D 01 02 [01:33:06]Write to MH i2c: E2 08 00 DE 17 80 0D 01 02 00 00 00 00 6E [01:33:06]Write i2c OK [01:33:06]MH_I2C_Read... [01:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:33:06]Read from MH i2c: E2 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 DE 17 00 90 00 69 [01:33:06]RAPDU: 90 00 [01:33:06]wFMCommunicate OK [01:33:06]wFMCommunicate request_size=255 [01:33:06]MH_SAM_APDU [01:33:06]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 55 D8 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [01:33:06]Write to MH i2c: E2 02 01 DF 17 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 55 D8 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 14 [01:33:06]Write i2c OK [01:33:06]MH_I2C_Read... [01:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:33:06]Read from MH i2c: E2 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 DF 17 00 90 00 6A [01:33:06]RAPDU: 90 00 [01:33:06]wFMCommunicate OK [01:33:06]wFMCommunicate request_size=58 [01:33:06]MH_SAM_APDU [01:33:06]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 90 2B 01 00 35 04 06 00 1B 45 4D 48 AF 1C [01:33:06]Write to MH i2c: E2 3D 00 E0 17 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 90 2B 01 00 35 04 06 00 1B 45 4D 48 AF 1C 00 00 E3 [01:33:06]Write i2c OK [01:33:06]MH_I2C_Read... [01:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:33:06]Read from MH i2c: E2 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [01:33:06]RAPDU: 90 00 [01:33:06]wFMCommunicate OK [01:33:06]wFMCommunicate request_size=4 [01:33:06]MH_SAM_APDU [01:33:06]CAPDU: 80 0D 03 02 [01:33:06]Write to MH i2c: E2 08 00 E1 17 80 0D 03 02 00 00 00 00 73 [01:33:06]Write i2c OK [01:33:06]MH_I2C_Read... [01:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:33:06]Read from MH i2c: E2 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 0B 00 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 0B 00 E1 17 00 4C 9D 02 24 75 4E 80 60 90 00 26 [01:33:06]RAPDU: 4C 9D 02 24 75 4E 80 60 90 00 [01:33:06]wFMCommunicate OK [01:33:06]SAM_PROTO_SignData done [01:33:06]FM_MakeSignedData done [01:33:06]CreateOFDProtocolMessage [01:33:06]wFMCommunicate request_size=4 [01:33:06]MH_SAM_APDU [01:33:06]CAPDU: 80 11 00 00 [01:33:06]Write to MH i2c: E2 08 00 E2 17 80 11 00 00 00 00 00 00 73 [01:33:06]Write i2c OK [01:33:06]MH_I2C_Read... [01:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:33:06]Read from MH i2c: E2 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 17 00 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: E2 17 00 E2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C3 [01:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:33:06]wFMCommunicate OK [01:33:06]CreateOFDProtocolMessage done [01:33:06]OFDSenderStorePacket 76688 [01:33:06]StoreOFDPacket docnum=76688 [01:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3F 01 00 00 AE B9 37 01 4D 99 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 55 D8 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 90 2B 01 00 35 04 06 00 1B 45 4D 48 AF 1C 4C 9D 02 24 75 4E 80 60 [01:33:06]CheckFolder [01:33:06]dirname=/storage/ofd_packets [01:33:06]CheckFolder done [01:33:06]ProducePacketName [01:33:06]name=ofd_packets/00076688 [01:33:06]NVStorageSaveData ofd_packets/00076688 [01:33:06]File name is /storage/ofd_packets/00076688 [01:33:06]Write 349 bytes [01:33:06]NVStorageSaveData done [01:33:06]OFDSenderStorePacket done [01:33:06]KKMCreateOFDPacket done [01:33:06]NVStorageSaveData kkm_last_timestamp [01:33:06]File name is /storage/kkm_last_timestamp [01:33:06]Write 4 bytes [01:33:06]NVStorageSaveData done [01:33:06]ExternCall_PrintAddStr [01:33:06]wPrintStart [01:33:06]Write to MH i2c: 01 00 00 E3 17 FA [01:33:06]Write i2c OK [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: 01 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: 01 07 00 [01:33:06]MH_I2C_Read... [01:33:06]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 FF 0F 0F [01:33:06]RasterBufferAndPrint [01:33:06]line Счет N : (3)220808 [01:33:06]line ИНН: 02508201610067 [01:33:06]line Контрольно-Кассовый Чек [01:33:06]line ПРОДАЖА [01:33:06]line Товар: 4700000480364 [01:33:06]line Напиток энерг Nitro экзотик 0.45 ж/б [01:33:06]line 1.000 * 85.00 [01:33:06]line = 85.00 [01:33:06]line НДС 12% НСП 1% [01:33:06]line > о реализуемом товаре [01:33:07]line ИТОГО: 85.00 [01:33:07]line НСП 1% : 0.75 [01:33:07]line НДС 12% : 9.03 [01:33:07]line Наличными: 85.00 [01:33:07]line Безнал.: 0.00 [01:33:07]line Место: АЗС № 144 "Партнер Нефть" [01:33:07]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:33:07]line СНО: Общий режим [01:33:07]line Чек 6 21.06.2024 01:33 [01:33:07]line Смена: 394 ФФД: 1.0 [01:33:07]line ЗНМ: 0300000170 [01:33:07]line РНМ: 0000000000095696 [01:33:07]line Версия ККМ: 001 [01:33:07]line ФМ: 0000000000875009 [01:33:07]line ФД: 76688 [01:33:07]line ФПД: 29984463302428 [01:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T013309&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76688&fm=29984463302428&tin=02508201610067®Number=0000000000095696&sum=8500 [01:33:07]line 0 [01:33:07]OFD Sender: Processing packet 76688 [packets to send 351, broken 350] [01:33:07]ProducePacketName [01:33:07]name=ofd_packets/00076688 [01:33:07]OFD Sender: To server: pG, [01:33:07]CommunicateWithHost lk.salyk.kg:30040 [01:33:07]ConnectInit lk.salyk.kg [01:33:07]written 0, free lines is 4095 [01:33:07]Connected sock=10 [01:33:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3F 01 00 00 AE B9 37 01 4D 99 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 55 D8 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 90 2B 01 00 35 04 06 00 1B 45 4D 48 AF 1C 4C 9D 02 24 75 4E 80 60 [01:33:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E5 9D 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 30 38 37 35 30 30 39 10 04 04 00 90 2B 01 00 F4 03 04 00 F4 7E 74 66 B6 04 01 00 00 58 4C D6 50 63 22 CC 5F [01:33:07]CommunicateWithHost err = 0 [01:33:07]CheckOFDResponse [01:33:07]1017 (14) - 77093643461234 [01:33:07]1041 (16) - 0000000000875009 [01:33:07]1040 (4) - 76688 [01:33:07]1012 (4) - 20.06.2024 19:11 [01:33:07]1206 (1) - 0 [01:33:07]OFD Sender: Remove packet 76688 [01:33:07]ProducePacketName [01:33:07]name=ofd_packets/00076688 [01:33:07]NVStorageDeleteData [01:33:07]Write to MH i2c: 01 00 00 0C 18 24 [01:33:07]Write i2c OK [01:33:07]MH_I2C_Read... [01:33:07]Read from MH i2c: 01 [01:33:07]MH_I2C_Read... [01:33:07]Read from MH i2c: 01 07 00 [01:33:07]MH_I2C_Read... [01:33:07]Read from MH i2c: 01 07 00 0C 18 00 00 00 00 00 F0 0C 27 [01:33:07]RasterBufferAndPrint [01:33:07]line [01:33:07]line [01:33:07]line [01:33:07]line [01:33:07]line [01:33:07]written 0, free lines is 3318 [01:33:07]MH_Cut [01:33:07]Write to MH i2c: D1 01 00 13 18 01 FD [01:33:07]Write i2c OK [01:33:07]MH_I2C_Read... [01:33:07]Read from MH i2c: D1 [01:33:07]MH_I2C_Read... [01:33:07]Read from MH i2c: D1 01 00 [01:33:07]MH_I2C_Read... [01:33:07]Read from MH i2c: D1 01 00 13 18 00 FC [01:33:07]Write to MH i2c: 01 00 00 14 18 2C [01:33:07]Write i2c OK [01:33:07]MH_I2C_Read... [01:33:08]OFD Sender: No OFD packet to send [01:33:08]*** Cut start [01:33:08]*** Partial cut [01:33:08]*** CUTSNS_PIN = 1 [01:33:08]*** CUTSNS_PIN = 0 [01:33:08]*** Brake cut motor [01:33:09]Read from MH i2c: 01 [01:33:09]MH_I2C_Read... [01:33:09]*** Stop cut motor [01:33:09]*** Cut end [01:33:09]Read from MH i2c: 01 07 00 [01:33:09]MH_I2C_Read... [01:33:09]Read from MH i2c: 01 07 00 14 18 00 00 00 00 00 FF 0F 41 [01:33:09]process_action close_receipt done [01:33:09]requested_data is exist [01:33:09]produce_requested_data [01:33:09]requested_item fm.sn is exist - process it [01:33:09]wFMCommunicate request_size=4 [01:33:09]MH_SAM_APDU [01:33:09]CAPDU: 80 11 00 00 [01:33:09]Write to MH i2c: E2 08 00 15 18 80 11 00 00 00 00 00 00 A7 [01:33:09]Write i2c OK [01:33:09]MH_I2C_Read... [01:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:33:09]Read from MH i2c: E2 [01:33:09]MH_I2C_Read... [01:33:09]Read from MH i2c: E2 17 00 [01:33:09]MH_I2C_Read... [01:33:09]Read from MH i2c: E2 17 00 15 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F7 [01:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:33:09]wFMCommunicate OK [01:33:09]requested_item fd.num is exist - process it [01:33:09]SAM_PROTO_GetFieldsCounters [01:33:09]wFMCommunicate request_size=4 [01:33:09]MH_SAM_APDU [01:33:09]CAPDU: 80 13 00 00 [01:33:09]Write to MH i2c: E2 08 00 16 18 80 13 00 00 00 00 00 00 AA [01:33:09]Write i2c OK [01:33:09]MH_I2C_Read... [01:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:33:09]Read from MH i2c: E2 [01:33:09]MH_I2C_Read... [01:33:09]Read from MH i2c: E2 62 00 [01:33:09]MH_I2C_Read... [01:33:09]Read from MH i2c: E2 62 00 16 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 90 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [01:33:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 90 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:33:09]wFMCommunicate OK [01:33:09]SAM_PROTO_GetFieldsCounters done [01:33:09]requested_item shift.num is exist - process it [01:33:09]requested_item shift.opened is exist - process it [01:33:09]req_shift_opened [01:33:09]FM_GetShiftState [01:33:09]SAM_PROTO_GetShiftState [01:33:09]wFMCommunicate request_size=4 [01:33:09]MH_SAM_APDU [01:33:09]CAPDU: 80 13 01 00 [01:33:09]Write to MH i2c: E2 08 00 17 18 80 13 01 00 00 00 00 00 AC [01:33:09]Write i2c OK [01:33:09]MH_I2C_Read... [01:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:09]Read from MH i2c: E2 [01:33:09]MH_I2C_Read... [01:33:09]Read from MH i2c: E2 0E 00 [01:33:09]MH_I2C_Read... [01:33:09]Read from MH i2c: E2 0E 00 17 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 B1 [01:33:09]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:33:09]wFMCommunicate OK [01:33:09]SAM_PROTO_GetShiftState done [01:33:09]FM_GetShiftState done [01:33:09]req_shift_opened done [01:33:09]requested_item shift.open_date is exist - process it [01:33:09]req_shift_open_date [01:33:09]req_shift_open_date done [01:33:09]produce_requested_data done [01:33:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76688,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [01:33:09]process_action_free close_receipt [01:33:09]json_value_free [01:33:09]json_value_free done [01:33:09]process_json_proto returns [01:33:09]Send response to host [01:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76688,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [01:33:09]free response buf [01:33:09]execute_script done [01:33:09]execute_script returns [01:33:09]free content buf [01:33:09]Sock 9.Close socket [01:33:09]Sock 9.Thread stoped [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:12]accept exits with 7 [01:53:12]New connection [01:53:12]New thread 3066805604 created [01:53:12]Thread 3066948964 joined [01:53:12]Waiting for new connection... [01:53:12] Sock 7.Parse request [01:53:12]Sock 7.Check first char [01:53:12]Sock 7.First char is OK [01:53:12]request: POST /json_proto HTTP/1.0 [01:53:12]Method: POST [01:53:12]URL: /json_proto [01:53:12]Method is POST - this is cgi request [01:53:12]url: /json_proto [01:53:12]query_string will be loaded in cgi processing [01:53:12]execute_cgi json_proto POST (null) [01:53:12]execute_cgi path=json_proto method=POST [01:53:12]POST find Content-Length [01:53:12]Host: 172.17.39.195:8080 [01:53:12]Content-Length: 626 [01:53:12]Content-Type: application/json [01:53:12] [01:53:12]POST finish read [01:53:12]Found Content-Length = 626 [01:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220809", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:12]execute_script... [01:53: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 : (3)220809", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:12]POST & json_proto [01:53:12]process_json_proto [01:53:12]json parsed OK: [01:53:12]protocol is kg_v1.0 [01:53:12]action value=close_receipt [01:53:12]process_action close_receipt [01:53:12]cmd_close_receipt [01:53:12]MH_GetDate [01:53:12]Write to MH i2c: F0 00 00 18 18 1F [01:53:12]Write i2c OK [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: F0 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: F0 09 00 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: F0 09 00 18 18 00 0C DD 74 66 99 81 91 64 FA [01:53:12]GetLastDocTimeStamp 1718933589 [01:53:12]current date 1718934796 [01:53:12]FM_GetShiftState [01:53:12]SAM_PROTO_GetShiftState [01:53:12]wFMCommunicate request_size=4 [01:53:12]MH_SAM_APDU [01:53:12]CAPDU: 80 13 01 00 [01:53:12]Write to MH i2c: E2 08 00 19 18 80 13 01 00 00 00 00 00 AE [01:53:12]Write i2c OK [01:53:12]MH_I2C_Read... [01:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:12]Read from MH i2c: E2 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: E2 0E 00 [01:53:12]MH_I2C_Read... [01:53:12]Read from MH i2c: E2 0E 00 19 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 B3 [01:53:12]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:53:12]wFMCommunicate OK [01:53:12]SAM_PROTO_GetShiftState done [01:53:12]FM_GetShiftState done [01:53:12]opened in 1718930005 [01:53:12]opened+sec_in_day 1719016405 [01:53:12]quantity*price = 13500 [01:53:12]sum+1 = 13501 [01:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 7 21.06.2024 01:53 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76689 ФПД: 144602035938152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T015316&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76689&fm=144602035938152&tin=02508201610067®Number=0000000000095696&sum=13500 0 [01:53:13]StoreToDocumentArchive [01:53:13]shift 394 fd 76689 [01:53:13]save to /storage/0394/doc_00076689 [01:53:13]save last doc name /storage/0394/doc_00076689 to /storage/kkm_last_doc_name [01:53:13]save OK [01:53:13]Clear old archive folders... [01:53:13]ProcessDocumentItem done err = 0, tmpTLVsize=278 [01:53:13]tlvbuf is 00E962F0 [01:53:13]SAM_PROTO_ClearQueue [01:53:13]wFMCommunicate request_size=4 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 09 00 00 [01:53:13]Write to MH i2c: E2 08 00 26 18 80 09 00 00 00 00 00 00 B0 [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:13]Read from MH i2c: E2 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 26 18 00 90 00 B2 [01:53:13]RAPDU: 90 00 [01:53:13]wFMCommunicate OK [01:53:13]SAM_PROTO_ClearQueue done [01:53:13]KKMCreateOFDPacket [01:53:13]OFDProtocolAddRootSTLVToBuf [01:53:13]FM_MakeSignedData [01:53:13]FM_MakeSignedData [01:53:13]SAM_PROTO_SignData [01:53:13]wFMCommunicate request_size=4 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 0D 01 02 [01:53:13]Write to MH i2c: E2 08 00 27 18 80 0D 01 02 00 00 00 00 B8 [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:13]Read from MH i2c: E2 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 27 18 00 90 00 B3 [01:53:13]RAPDU: 90 00 [01:53:13]wFMCommunicate OK [01:53:13]wFMCommunicate request_size=255 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0C DD 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [01:53:13]Write to MH i2c: E2 02 01 28 18 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0C DD 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 E1 [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:13]Read from MH i2c: E2 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [01:53:13]RAPDU: 90 00 [01:53:13]wFMCommunicate OK [01:53:13]wFMCommunicate request_size=37 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 91 2B 01 00 35 04 06 00 83 83 C8 FC 63 68 [01:53:13]Write to MH i2c: E2 28 00 29 18 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 91 2B 01 00 35 04 06 00 83 83 C8 FC 63 68 00 00 61 [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:13]Read from MH i2c: E2 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 03 00 29 18 00 90 00 B5 [01:53:13]RAPDU: 90 00 [01:53:13]wFMCommunicate OK [01:53:13]wFMCommunicate request_size=4 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 0D 03 02 [01:53:13]Write to MH i2c: E2 08 00 2A 18 80 0D 03 02 00 00 00 00 BD [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:13]Read from MH i2c: E2 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 0B 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 0B 00 2A 18 00 25 BE 7D 1A F5 31 0F 36 90 00 A3 [01:53:13]RAPDU: 25 BE 7D 1A F5 31 0F 36 90 00 [01:53:13]wFMCommunicate OK [01:53:13]SAM_PROTO_SignData done [01:53:13]FM_MakeSignedData done [01:53:13]CreateOFDProtocolMessage [01:53:13]wFMCommunicate request_size=4 [01:53:13]MH_SAM_APDU [01:53:13]CAPDU: 80 11 00 00 [01:53:13]Write to MH i2c: E2 08 00 2B 18 80 11 00 00 00 00 00 00 BD [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:13]Read from MH i2c: E2 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 17 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: E2 17 00 2B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0D [01:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:53:13]wFMCommunicate OK [01:53:13]CreateOFDProtocolMessage done [01:53:13]OFDSenderStorePacket 76689 [01:53:13]StoreOFDPacket docnum=76689 [01:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 23 28 22 01 F7 F9 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0C DD 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 91 2B 01 00 35 04 06 00 83 83 C8 FC 63 68 25 BE 7D 1A F5 31 0F 36 [01:53:13]CheckFolder [01:53:13]dirname=/storage/ofd_packets [01:53:13]CheckFolder done [01:53:13]ProducePacketName [01:53:13]name=ofd_packets/00076689 [01:53:13]NVStorageSaveData ofd_packets/00076689 [01:53:13]File name is /storage/ofd_packets/00076689 [01:53:13]Write 328 bytes [01:53:13]NVStorageSaveData done [01:53:13]OFDSenderStorePacket done [01:53:13]KKMCreateOFDPacket done [01:53:13]NVStorageSaveData kkm_last_timestamp [01:53:13]File name is /storage/kkm_last_timestamp [01:53:13]Write 4 bytes [01:53:13]NVStorageSaveData done [01:53:13]ExternCall_PrintAddStr [01:53:13]wPrintStart [01:53:13]Write to MH i2c: 01 00 00 2C 18 44 [01:53:13]Write i2c OK [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: 01 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: 01 07 00 [01:53:13]MH_I2C_Read... [01:53:13]Read from MH i2c: 01 07 00 2C 18 00 00 00 00 00 FF 0F 59 [01:53:13]RasterBufferAndPrint [01:53:13]line Счет N : (3)220809 [01:53:13]line ИНН: 02508201610067 [01:53:13]line Контрольно-Кассовый Чек [01:53:13]line ПРОДАЖА [01:53:13]line Товар: 48741224 [01:53:13]line Сигареты Winston Super Slims Blue [01:53:13]line 1.000 * 135.00 [01:53:13]line = 135.00 [01:53:13]line НДС 12% НСП 1% [01:53:13]line > о реализуемом товаре [01:53:13]line ИТОГО: 135.00 [01:53:13]line НСП 1% : 1.19 [01:53:13]line НДС 12% : 14.34 [01:53:13]line Наличными: 135.00 [01:53:13]line Безнал.: 0.00 [01:53:13]line Место: АЗС № 144 "Партнер Нефть" [01:53:13]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:53:13]line СНО: Общий режим [01:53:13]line Чек 7 21.06.2024 01:53 [01:53:13]line Смена: 394 ФФД: 1.0 [01:53:13]line ЗНМ: 0300000170 [01:53:13]line РНМ: 0000000000095696 [01:53:13]line Версия ККМ: 001 [01:53:13]line ФМ: 0000000000875009 [01:53:13]line ФД: 76689 [01:53:13]line ФПД: 144602035938152 [01:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T015316&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76689&fm=144602035938152&tin=02508201610067®Number=0000000000095696&sum=13500 [01:53:14]line 0 [01:53:14]OFD Sender: Processing packet 76689 [packets to send 351, broken 350] [01:53:14]ProducePacketName [01:53:14]name=ofd_packets/00076689 [01:53:14]OFD Sender: To server: pG, [01:53:14]CommunicateWithHost lk.salyk.kg:30040 [01:53:14]ConnectInit lk.salyk.kg [01:53:14]written 0, free lines is 4095 [01:53:14]Connected sock=10 [01:53:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 23 28 22 01 F7 F9 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 0C DD 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 91 2B 01 00 35 04 06 00 83 83 C8 FC 63 68 25 BE 7D 1A F5 31 0F 36 [01:53:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A1 D3 47 00 E2 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 91 2B 01 00 F4 03 04 00 AB 83 74 66 B6 04 01 00 00 BE 88 AD 57 58 39 DA 6A [01:53:14]CommunicateWithHost err = 0 [01:53:14]CheckOFDResponse [01:53:14]1017 (14) - 77093643461234 [01:53:14]1041 (16) - 0000000000875009 [01:53:14]1040 (4) - 76689 [01:53:14]1012 (4) - 20.06.2024 19:31 [01:53:14]1206 (1) - 0 [01:53:14]OFD Sender: Remove packet 76689 [01:53:14]ProducePacketName [01:53:14]name=ofd_packets/00076689 [01:53:14]NVStorageDeleteData [01:53:14]Write to MH i2c: 01 00 00 55 18 6D [01:53:14]Write i2c OK [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: 01 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: 01 07 00 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: 01 07 00 55 18 00 00 00 00 00 D1 0C 51 [01:53:14]RasterBufferAndPrint [01:53:14]line [01:53:14]line [01:53:14]line [01:53:14]line [01:53:14]line [01:53:14]written 0, free lines is 3287 [01:53:14]MH_Cut [01:53:14]Write to MH i2c: D1 01 00 5C 18 01 46 [01:53:14]Write i2c OK [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: D1 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: D1 01 00 [01:53:14]MH_I2C_Read... [01:53:14]Read from MH i2c: D1 01 00 5C 18 00 45 [01:53:14]Write to MH i2c: 01 00 00 5D 18 75 [01:53:14]Write i2c OK [01:53:14]MH_I2C_Read... [01:53:15]OFD Sender: No OFD packet to send [01:53:15]*** Cut start [01:53:15]*** Partial cut [01:53:15]*** CUTSNS_PIN = 1 [01:53:15]*** CUTSNS_PIN = 0 [01:53:15]*** Brake cut motor [01:53:16]Read from MH i2c: 01 [01:53:16]MH_I2C_Read... [01:53:16]*** Stop cut motor [01:53:16]*** Cut end [01:53:16]Read from MH i2c: 01 07 00 [01:53:16]MH_I2C_Read... [01:53:16]Read from MH i2c: 01 07 00 5D 18 00 00 00 00 00 FF 0F 8A [01:53:16]process_action close_receipt done [01:53:16]requested_data is exist [01:53:16]produce_requested_data [01:53:16]requested_item fm.sn is exist - process it [01:53:16]wFMCommunicate request_size=4 [01:53:16]MH_SAM_APDU [01:53:16]CAPDU: 80 11 00 00 [01:53:16]Write to MH i2c: E2 08 00 5E 18 80 11 00 00 00 00 00 00 F0 [01:53:16]Write i2c OK [01:53:16]MH_I2C_Read... [01:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:16]Read from MH i2c: E2 [01:53:16]MH_I2C_Read... [01:53:16]Read from MH i2c: E2 17 00 [01:53:16]MH_I2C_Read... [01:53:16]Read from MH i2c: E2 17 00 5E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 40 [01:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:53:16]wFMCommunicate OK [01:53:16]requested_item fd.num is exist - process it [01:53:16]SAM_PROTO_GetFieldsCounters [01:53:16]wFMCommunicate request_size=4 [01:53:16]MH_SAM_APDU [01:53:16]CAPDU: 80 13 00 00 [01:53:16]Write to MH i2c: E2 08 00 5F 18 80 13 00 00 00 00 00 00 F3 [01:53:16]Write i2c OK [01:53:16]MH_I2C_Read... [01:53:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:16]Read from MH i2c: E2 [01:53:16]MH_I2C_Read... [01:53:16]Read from MH i2c: E2 62 00 [01:53:16]MH_I2C_Read... [01:53:16]Read from MH i2c: E2 62 00 5F 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 91 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [01:53:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 91 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:53:16]wFMCommunicate OK [01:53:16]SAM_PROTO_GetFieldsCounters done [01:53:16]requested_item shift.num is exist - process it [01:53:16]requested_item shift.opened is exist - process it [01:53:16]req_shift_opened [01:53:16]FM_GetShiftState [01:53:16]SAM_PROTO_GetShiftState [01:53:16]wFMCommunicate request_size=4 [01:53:16]MH_SAM_APDU [01:53:16]CAPDU: 80 13 01 00 [01:53:16]Write to MH i2c: E2 08 00 60 18 80 13 01 00 00 00 00 00 F5 [01:53:16]Write i2c OK [01:53:16]MH_I2C_Read... [01:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:16]Read from MH i2c: E2 [01:53:16]MH_I2C_Read... [01:53:16]Read from MH i2c: E2 0E 00 [01:53:16]MH_I2C_Read... [01:53:16]Read from MH i2c: E2 0E 00 60 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 FA [01:53:16]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [01:53:16]wFMCommunicate OK [01:53:16]SAM_PROTO_GetShiftState done [01:53:16]FM_GetShiftState done [01:53:16]req_shift_opened done [01:53:16]requested_item shift.open_date is exist - process it [01:53:16]req_shift_open_date [01:53:16]req_shift_open_date done [01:53:16]produce_requested_data done [01:53:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76689,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [01:53:16]process_action_free close_receipt [01:53:16]json_value_free [01:53:16]json_value_free done [01:53:16]process_json_proto returns [01:53:16]Send response to host [01:53:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76689,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [01:53:16]free response buf [01:53:16]execute_script done [01:53:16]execute_script returns [01:53:16]free content buf [01:53:16]Sock 7.Close socket [01:53:16]Sock 7.Thread stoped [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [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: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: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: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: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:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:38]accept exits with 9 [02:31:38]New connection [02:31:38]New thread 3066948964 created [02:31:38]Thread 3066805604 joined [02:31:38]Waiting for new connection... [02:31:38] Sock 9.Parse request [02:31:38]Sock 9.Check first char [02:31:38]Sock 9.First char is OK [02:31:38]request: POST /json_proto HTTP/1.0 [02:31:38]Method: POST [02:31:38]URL: /json_proto [02:31:38]Method is POST - this is cgi request [02:31:38]url: /json_proto [02:31:38]query_string will be loaded in cgi processing [02:31:38]execute_cgi json_proto POST (null) [02:31:38]execute_cgi path=json_proto method=POST [02:31:38]POST find Content-Length [02:31:38]Host: 172.17.39.195:8080 [02:31:38]Content-Length: 657 [02:31:38]Content-Type: application/json [02:31:38] [02:31:38]POST finish read [02:31:38]Found Content-Length = 657 [02:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220810", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:38]execute_script... [02:31: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 : (3)220810", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:38]POST & json_proto [02:31:38]process_json_proto [02:31:38]json parsed OK: [02:31:38]protocol is kg_v1.0 [02:31:38]action value=close_receipt [02:31:38]process_action close_receipt [02:31:38]cmd_close_receipt [02:31:38]MH_GetDate [02:31:38]Write to MH i2c: F0 00 00 61 18 68 [02:31:38]Write i2c OK [02:31:38]MH_I2C_Read... [02:31:38]Read from MH i2c: F0 [02:31:38]MH_I2C_Read... [02:31:38]Read from MH i2c: F0 09 00 [02:31:38]MH_I2C_Read... [02:31:38]Read from MH i2c: F0 09 00 61 18 00 0E E6 74 66 99 81 91 64 4E [02:31:38]GetLastDocTimeStamp 1718934796 [02:31:38]current date 1718937102 [02:31:38]FM_GetShiftState [02:31:38]SAM_PROTO_GetShiftState [02:31:38]wFMCommunicate request_size=4 [02:31:38]MH_SAM_APDU [02:31:38]CAPDU: 80 13 01 00 [02:31:38]Write to MH i2c: E2 08 00 62 18 80 13 01 00 00 00 00 00 F7 [02:31:38]Write i2c OK [02:31:38]MH_I2C_Read... [02:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:38]Read from MH i2c: E2 [02:31:38]MH_I2C_Read... [02:31:38]Read from MH i2c: E2 0E 00 [02:31:38]MH_I2C_Read... [02:31:38]Read from MH i2c: E2 0E 00 62 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 FC [02:31:38]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:31:38]wFMCommunicate OK [02:31:38]SAM_PROTO_GetShiftState done [02:31:38]FM_GetShiftState done [02:31:38]opened in 1718930005 [02:31:38]opened+sec_in_day 1719016405 [02:31:38]quantity*price = 8500 [02:31:38]sum+1 = 8501 [02:31:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 8 21.06.2024 02:31 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76690 ФПД: 1749218847090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023142&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76690&fm=1749218847090&tin=02508201610067®Number=0000000000095696&sum=8500 0 [02:31:39]StoreToDocumentArchive [02:31:39]shift 394 fd 76690 [02:31:39]save to /storage/0394/doc_00076690 [02:31:39]save last doc name /storage/0394/doc_00076690 to /storage/kkm_last_doc_name [02:31:39]save OK [02:31:39]Clear old archive folders... [02:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=288 [02:31:39]tlvbuf is 00EC1090 [02:31:39]SAM_PROTO_ClearQueue [02:31:39]wFMCommunicate request_size=4 [02:31:39]MH_SAM_APDU [02:31:39]CAPDU: 80 09 00 00 [02:31:39]Write to MH i2c: E2 08 00 6F 18 80 09 00 00 00 00 00 00 F9 [02:31:39]Write i2c OK [02:31:39]MH_I2C_Read... [02:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:31:39]Read from MH i2c: E2 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 03 00 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [02:31:39]RAPDU: 90 00 [02:31:39]wFMCommunicate OK [02:31:39]SAM_PROTO_ClearQueue done [02:31:39]KKMCreateOFDPacket [02:31:39]OFDProtocolAddRootSTLVToBuf [02:31:39]FM_MakeSignedData [02:31:39]FM_MakeSignedData [02:31:39]SAM_PROTO_SignData [02:31:39]wFMCommunicate request_size=4 [02:31:39]MH_SAM_APDU [02:31:39]CAPDU: 80 0D 01 02 [02:31:39]Write to MH i2c: E2 08 00 70 18 80 0D 01 02 00 00 00 00 01 [02:31:39]Write i2c OK [02:31:39]MH_I2C_Read... [02:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:31:39]Read from MH i2c: E2 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 03 00 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [02:31:39]RAPDU: 90 00 [02:31:39]wFMCommunicate OK [02:31:39]wFMCommunicate request_size=255 [02:31:39]MH_SAM_APDU [02:31:39]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [02:31:39]Write to MH i2c: E2 02 01 71 18 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 2A [02:31:39]Write i2c OK [02:31:39]MH_I2C_Read... [02:31:39]OFD Sender: No OFD packet to send [02:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:39]Read from MH i2c: E2 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 03 00 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [02:31:39]RAPDU: 90 00 [02:31:39]wFMCommunicate OK [02:31:39]wFMCommunicate request_size=47 [02:31:39]MH_SAM_APDU [02:31:39]CAPDU: 80 0D 02 02 2A 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 92 2B 01 00 35 04 06 00 01 97 45 91 69 72 [02:31:39]Write to MH i2c: E2 32 00 72 18 80 0D 02 02 2A 00 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 92 2B 01 00 35 04 06 00 01 97 45 91 69 72 00 00 D2 [02:31:39]Write i2c OK [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 03 00 [02:31:39]MH_I2C_Read... [02:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:39]Read from MH i2c: E2 03 00 72 18 00 90 00 FE [02:31:39]RAPDU: 90 00 [02:31:39]wFMCommunicate OK [02:31:39]wFMCommunicate request_size=4 [02:31:39]MH_SAM_APDU [02:31:39]CAPDU: 80 0D 03 02 [02:31:39]Write to MH i2c: E2 08 00 73 18 80 0D 03 02 00 00 00 00 06 [02:31:39]Write i2c OK [02:31:39]MH_I2C_Read... [02:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:31:39]Read from MH i2c: E2 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 0B 00 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 0B 00 73 18 00 C7 10 85 CD E6 CD 2F 32 90 00 44 [02:31:39]RAPDU: C7 10 85 CD E6 CD 2F 32 90 00 [02:31:39]wFMCommunicate OK [02:31:39]SAM_PROTO_SignData done [02:31:39]FM_MakeSignedData done [02:31:39]CreateOFDProtocolMessage [02:31:39]wFMCommunicate request_size=4 [02:31:39]MH_SAM_APDU [02:31:39]CAPDU: 80 11 00 00 [02:31:39]Write to MH i2c: E2 08 00 74 18 80 11 00 00 00 00 00 00 06 [02:31:39]Write i2c OK [02:31:39]MH_I2C_Read... [02:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:39]Read from MH i2c: E2 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 17 00 [02:31:39]MH_I2C_Read... [02:31:39]Read from MH i2c: E2 17 00 74 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 56 [02:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:31:39]wFMCommunicate OK [02:31:39]CreateOFDProtocolMessage done [02:31:39]OFDSenderStorePacket 76690 [02:31:39]StoreOFDPacket docnum=76690 [02:31:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 34 01 00 00 7A D7 2C 01 4E A9 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 92 2B 01 00 35 04 06 00 01 97 45 91 69 72 C7 10 85 CD E6 CD 2F 32 [02:31:39]CheckFolder [02:31:39]dirname=/storage/ofd_packets [02:31:39]CheckFolder done [02:31:39]ProducePacketName [02:31:39]name=ofd_packets/00076690 [02:31:39]NVStorageSaveData ofd_packets/00076690 [02:31:39]File name is /storage/ofd_packets/00076690 [02:31:39]Write 338 bytes [02:31:39]NVStorageSaveData done [02:31:39]OFDSenderStorePacket done [02:31:39]KKMCreateOFDPacket done [02:31:39]NVStorageSaveData kkm_last_timestamp [02:31:39]File name is /storage/kkm_last_timestamp [02:31:39]Write 4 bytes [02:31:39]NVStorageSaveData done [02:31:40]ExternCall_PrintAddStr [02:31:40]wPrintStart [02:31:40]Write to MH i2c: 01 00 00 75 18 8D [02:31:40]Write i2c OK [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: 01 [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: 01 07 00 [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: 01 07 00 75 18 00 00 00 00 00 FF 0F A2 [02:31:40]RasterBufferAndPrint [02:31:40]line Счет N : (3)220810 [02:31:40]line ИНН: 02508201610067 [02:31:40]line Контрольно-Кассовый Чек [02:31:40]line ПРОДАЖА [02:31:40]line Товар: 4700000481453 [02:31:40]line Напиток энерг Nitro Max 0,45 ж/б [02:31:40]line 1.000 * 85.00 [02:31:40]line = 85.00 [02:31:40]line НДС 12% НСП 1% [02:31:40]line > о реализуемом товаре [02:31:40]line ИТОГО: 85.00 [02:31:40]line НСП 1% : 0.75 [02:31:40]line НДС 12% : 9.03 [02:31:40]line Наличными: 85.00 [02:31:40]line Безнал.: 0.00 [02:31:40]line Место: АЗС № 144 "Партнер Нефть" [02:31:40]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [02:31:40]line СНО: Общий режим [02:31:40]line Чек 8 21.06.2024 02:31 [02:31:40]line Смена: 394 ФФД: 1.0 [02:31:40]line ЗНМ: 0300000170 [02:31:40]line РНМ: 0000000000095696 [02:31:40]line Версия ККМ: 001 [02:31:40]line ФМ: 0000000000875009 [02:31:40]line ФД: 76690 [02:31:40]line ФПД: 1749218847090 [02:31:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023142&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76690&fm=1749218847090&tin=02508201610067®Number=0000000000095696&sum=8500 [02:31:40]line 0 [02:31:40]OFD Sender: Processing packet 76690 [packets to send 351, broken 350] [02:31:40]ProducePacketName [02:31:40]name=ofd_packets/00076690 [02:31:40]OFD Sender: To server: pG, [02:31:40]CommunicateWithHost lk.salyk.kg:30040 [02:31:40]ConnectInit lk.salyk.kg [02:31:40]written 0, free lines is 4095 [02:31:40]Connected sock=11 [02:31:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 34 01 00 00 7A D7 2C 01 4E A9 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 92 2B 01 00 35 04 06 00 01 97 45 91 69 72 C7 10 85 CD E6 CD 2F 32 [02:31:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D0 D9 47 00 38 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 92 2B 01 00 F4 03 04 00 AD 8C 74 66 B6 04 01 00 00 57 9D 7A 98 DA B8 99 67 [02:31:40]CommunicateWithHost err = 0 [02:31:40]CheckOFDResponse [02:31:40]1017 (14) - 77093643461234 [02:31:40]1041 (16) - 0000000000875009 [02:31:40]1040 (4) - 76690 [02:31:40]1012 (4) - 20.06.2024 20:10 [02:31:40]1206 (1) - 0 [02:31:40]OFD Sender: Remove packet 76690 [02:31:40]ProducePacketName [02:31:40]name=ofd_packets/00076690 [02:31:40]NVStorageDeleteData [02:31:40]Write to MH i2c: 01 00 00 9E 18 B6 [02:31:40]Write i2c OK [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: 01 [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: 01 07 00 [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 EB 0C B4 [02:31:40]RasterBufferAndPrint [02:31:40]line [02:31:40]line [02:31:40]line [02:31:40]line [02:31:40]line [02:31:40]written 0, free lines is 3316 [02:31:40]MH_Cut [02:31:40]Write to MH i2c: D1 01 00 A5 18 01 8F [02:31:40]Write i2c OK [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: D1 [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: D1 01 00 [02:31:40]MH_I2C_Read... [02:31:40]Read from MH i2c: D1 01 00 A5 18 00 8E [02:31:40]Write to MH i2c: 01 00 00 A6 18 BE [02:31:40]Write i2c OK [02:31:40]MH_I2C_Read... [02:31:41]OFD Sender: No OFD packet to send [02:31:41]*** Cut start [02:31:41]*** Partial cut [02:31:41]*** CUTSNS_PIN = 1 [02:31:41]*** CUTSNS_PIN = 0 [02:31:41]*** Brake cut motor [02:31:42]Read from MH i2c: 01 [02:31:42]MH_I2C_Read... [02:31:42]*** Stop cut motor [02:31:42]*** Cut end [02:31:42]Read from MH i2c: 01 07 00 [02:31:42]MH_I2C_Read... [02:31:42]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [02:31:42]process_action close_receipt done [02:31:42]requested_data is exist [02:31:42]produce_requested_data [02:31:42]requested_item fm.sn is exist - process it [02:31:42]wFMCommunicate request_size=4 [02:31:42]MH_SAM_APDU [02:31:42]CAPDU: 80 11 00 00 [02:31:42]Write to MH i2c: E2 08 00 A7 18 80 11 00 00 00 00 00 00 39 [02:31:42]Write i2c OK [02:31:42]MH_I2C_Read... [02:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:42]Read from MH i2c: E2 [02:31:42]MH_I2C_Read... [02:31:42]Read from MH i2c: E2 17 00 [02:31:42]MH_I2C_Read... [02:31:42]Read from MH i2c: E2 17 00 A7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 89 [02:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:31:42]wFMCommunicate OK [02:31:42]requested_item fd.num is exist - process it [02:31:42]SAM_PROTO_GetFieldsCounters [02:31:42]wFMCommunicate request_size=4 [02:31:42]MH_SAM_APDU [02:31:42]CAPDU: 80 13 00 00 [02:31:42]Write to MH i2c: E2 08 00 A8 18 80 13 00 00 00 00 00 00 3C [02:31:42]Write i2c OK [02:31:42]MH_I2C_Read... [02:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:31:42]Read from MH i2c: E2 [02:31:42]MH_I2C_Read... [02:31:42]Read from MH i2c: E2 62 00 [02:31:42]MH_I2C_Read... [02:31:42]Read from MH i2c: E2 62 00 A8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 92 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [02:31:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 92 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:31:42]wFMCommunicate OK [02:31:42]SAM_PROTO_GetFieldsCounters done [02:31:42]requested_item shift.num is exist - process it [02:31:42]requested_item shift.opened is exist - process it [02:31:42]req_shift_opened [02:31:42]FM_GetShiftState [02:31:42]SAM_PROTO_GetShiftState [02:31:42]wFMCommunicate request_size=4 [02:31:42]MH_SAM_APDU [02:31:42]CAPDU: 80 13 01 00 [02:31:42]Write to MH i2c: E2 08 00 A9 18 80 13 01 00 00 00 00 00 3E [02:31:42]Write i2c OK [02:31:42]MH_I2C_Read... [02:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:42]Read from MH i2c: E2 [02:31:42]MH_I2C_Read... [02:31:42]Read from MH i2c: E2 0E 00 [02:31:42]MH_I2C_Read... [02:31:42]Read from MH i2c: E2 0E 00 A9 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 43 [02:31:42]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:31:42]wFMCommunicate OK [02:31:42]SAM_PROTO_GetShiftState done [02:31:42]FM_GetShiftState done [02:31:42]req_shift_opened done [02:31:42]requested_item shift.open_date is exist - process it [02:31:42]req_shift_open_date [02:31:42]req_shift_open_date done [02:31:42]produce_requested_data done [02:31:42]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76690,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [02:31:42]process_action_free close_receipt [02:31:42]json_value_free [02:31:42]json_value_free done [02:31:42]process_json_proto returns [02:31:42]Send response to host [02:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76690,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [02:31:42]free response buf [02:31:42]execute_script done [02:31:42]execute_script returns [02:31:42]free content buf [02:31:42]Sock 9.Close socket [02:31:42]Sock 9.Thread stoped [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]accept exits with 10 [02:33:26]New connection [02:33:26]New thread 3066805604 created [02:33:26]Thread 3066948964 joined [02:33:26]Waiting for new connection... [02:33:26] Sock 10.Parse request [02:33:26]Sock 10.Check first char [02:33:26]Sock 10.First char is OK [02:33:26]request: POST /json_proto HTTP/1.0 [02:33:26]Method: POST [02:33:26]URL: /json_proto [02:33:26]Method is POST - this is cgi request [02:33:26]url: /json_proto [02:33:26]query_string will be loaded in cgi processing [02:33:26]execute_cgi json_proto POST (null) [02:33:26]execute_cgi path=json_proto method=POST [02:33:26]POST find Content-Length [02:33:26]Host: 172.17.39.195:8080 [02:33:26]Content-Length: 624 [02:33:26]Content-Type: application/json [02:33:26] [02:33:26]POST finish read [02:33:26]Found Content-Length = 624 [02:33:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220811", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:33:26]execute_script... [02:33:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220811", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:33:26]POST & json_proto [02:33:26]process_json_proto [02:33:26]json parsed OK: [02:33:26]protocol is kg_v1.0 [02:33:26]action value=close_receipt [02:33:26]process_action close_receipt [02:33:26]cmd_close_receipt [02:33:26]MH_GetDate [02:33:26]Write to MH i2c: F0 00 00 AA 18 B1 [02:33:26]Write i2c OK [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: F0 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: F0 09 00 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: F0 09 00 AA 18 00 7A E6 74 66 99 81 91 64 03 [02:33:26]GetLastDocTimeStamp 1718937102 [02:33:26]current date 1718937210 [02:33:26]FM_GetShiftState [02:33:26]SAM_PROTO_GetShiftState [02:33:26]wFMCommunicate request_size=4 [02:33:26]MH_SAM_APDU [02:33:26]CAPDU: 80 13 01 00 [02:33:26]Write to MH i2c: E2 08 00 AB 18 80 13 01 00 00 00 00 00 40 [02:33:26]Write i2c OK [02:33:26]MH_I2C_Read... [02:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:26]Read from MH i2c: E2 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: E2 0E 00 [02:33:26]MH_I2C_Read... [02:33:26]Read from MH i2c: E2 0E 00 AB 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 45 [02:33:26]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:33:26]wFMCommunicate OK [02:33:26]SAM_PROTO_GetShiftState done [02:33:26]FM_GetShiftState done [02:33:26]opened in 1718930005 [02:33:26]opened+sec_in_day 1719016405 [02:33:26]quantity*price = 15000 [02:33:26]sum+1 = 15001 [02:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 9 21.06.2024 02:33 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76691 ФПД: 21783939303907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023330&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76691&fm=21783939303907&tin=02508201610067®Number=0000000000095696&sum=15000 0 [02:33:27]StoreToDocumentArchive [02:33:27]shift 394 fd 76691 [02:33:27]save to /storage/0394/doc_00076691 [02:33:27]save last doc name /storage/0394/doc_00076691 to /storage/kkm_last_doc_name [02:33:27]save OK [02:33:27]Clear old archive folders... [02:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=268 [02:33:27]tlvbuf is 00EC0EA0 [02:33:27]SAM_PROTO_ClearQueue [02:33:27]wFMCommunicate request_size=4 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 09 00 00 [02:33:27]Write to MH i2c: E2 08 00 B8 18 80 09 00 00 00 00 00 00 42 [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [02:33:27]RAPDU: 90 00 [02:33:27]wFMCommunicate OK [02:33:27]SAM_PROTO_ClearQueue done [02:33:27]KKMCreateOFDPacket [02:33:27]OFDProtocolAddRootSTLVToBuf [02:33:27]FM_MakeSignedData [02:33:27]FM_MakeSignedData [02:33:27]SAM_PROTO_SignData [02:33:27]wFMCommunicate request_size=4 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 0D 01 02 [02:33:27]Write to MH i2c: E2 08 00 B9 18 80 0D 01 02 00 00 00 00 4A [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [02:33:27]RAPDU: 90 00 [02:33:27]wFMCommunicate OK [02:33:27]wFMCommunicate request_size=255 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7A E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [02:33:27]Write to MH i2c: E2 02 01 BA 18 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7A E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 A4 [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [02:33:27]RAPDU: 90 00 [02:33:27]wFMCommunicate OK [02:33:27]wFMCommunicate request_size=27 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 93 2B 01 00 35 04 06 00 13 CF F7 F6 C9 E3 [02:33:27]Write to MH i2c: E2 1E 00 BB 18 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 93 2B 01 00 35 04 06 00 13 CF F7 F6 C9 E3 00 00 D8 [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [02:33:27]RAPDU: 90 00 [02:33:27]wFMCommunicate OK [02:33:27]wFMCommunicate request_size=4 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 0D 03 02 [02:33:27]Write to MH i2c: E2 08 00 BC 18 80 0D 03 02 00 00 00 00 4F [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 0B 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 0B 00 BC 18 00 10 39 F6 6D 8B B8 C2 C1 90 00 C2 [02:33:27]RAPDU: 10 39 F6 6D 8B B8 C2 C1 90 00 [02:33:27]wFMCommunicate OK [02:33:27]SAM_PROTO_SignData done [02:33:27]FM_MakeSignedData done [02:33:27]CreateOFDProtocolMessage [02:33:27]wFMCommunicate request_size=4 [02:33:27]MH_SAM_APDU [02:33:27]CAPDU: 80 11 00 00 [02:33:27]Write to MH i2c: E2 08 00 BD 18 80 11 00 00 00 00 00 00 4F [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:27]Read from MH i2c: E2 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 17 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: E2 17 00 BD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9F [02:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:33:27]wFMCommunicate OK [02:33:27]CreateOFDProtocolMessage done [02:33:27]OFDSenderStorePacket 76691 [02:33:27]StoreOFDPacket docnum=76691 [02:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 12 08 18 01 74 5A 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7A E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 93 2B 01 00 35 04 06 00 13 CF F7 F6 C9 E3 10 39 F6 6D 8B B8 C2 C1 [02:33:27]CheckFolder [02:33:27]dirname=/storage/ofd_packets [02:33:27]CheckFolder done [02:33:27]ProducePacketName [02:33:27]name=ofd_packets/00076691 [02:33:27]NVStorageSaveData ofd_packets/00076691 [02:33:27]File name is /storage/ofd_packets/00076691 [02:33:27]Write 318 bytes [02:33:27]NVStorageSaveData done [02:33:27]OFDSenderStorePacket done [02:33:27]KKMCreateOFDPacket done [02:33:27]NVStorageSaveData kkm_last_timestamp [02:33:27]File name is /storage/kkm_last_timestamp [02:33:27]Write 4 bytes [02:33:27]NVStorageSaveData done [02:33:27]ExternCall_PrintAddStr [02:33:27]wPrintStart [02:33:27]Write to MH i2c: 01 00 00 BE 18 D6 [02:33:27]Write i2c OK [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: 01 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: 01 07 00 [02:33:27]MH_I2C_Read... [02:33:27]Read from MH i2c: 01 07 00 BE 18 00 00 00 00 00 FF 0F EB [02:33:27]RasterBufferAndPrint [02:33:27]line Счет N : (3)220811 [02:33:27]line ИНН: 02508201610067 [02:33:27]line Контрольно-Кассовый Чек [02:33:27]line ПРОДАЖА [02:33:27]line Товар: 4600721021627 [02:33:27]line Пиво БАД 0,5л ст [02:33:27]line 1.000 * 150.00 [02:33:27]line = 150.00 [02:33:27]line НДС 12% НСП 1% [02:33:27]line > о реализуемом товаре [02:33:27]line ИТОГО: 150.00 [02:33:27]line НСП 1% : 1.33 [02:33:27]line НДС 12% : 15.93 [02:33:27]line Наличными: 150.00 [02:33:27]line Безнал.: 0.00 [02:33:27]line Место: АЗС № 144 "Партнер Нефть" [02:33:27]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [02:33:27]line СНО: Общий режим [02:33:27]line Чек 9 21.06.2024 02:33 [02:33:27]line Смена: 394 ФФД: 1.0 [02:33:27]line ЗНМ: 0300000170 [02:33:27]line РНМ: 0000000000095696 [02:33:27]line Версия ККМ: 001 [02:33:27]line ФМ: 0000000000875009 [02:33:27]line ФД: 76691 [02:33:27]line ФПД: 21783939303907 [02:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023330&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76691&fm=21783939303907&tin=02508201610067®Number=0000000000095696&sum=15000 [02:33:27]line 0 [02:33:27]written 0, free lines is 4095 [02:33:27]OFD Sender: Processing packet 76691 [packets to send 351, broken 350] [02:33:27]ProducePacketName [02:33:27]name=ofd_packets/00076691 [02:33:27]OFD Sender: To server: pG, [02:33:27]CommunicateWithHost lk.salyk.kg:30040 [02:33:27]ConnectInit lk.salyk.kg [02:33:28]Connected sock=9 [02:33:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 12 08 18 01 74 5A 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7A E6 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 93 2B 01 00 35 04 06 00 13 CF F7 F6 C9 E3 10 39 F6 6D 8B B8 C2 C1 [02:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 11 39 47 00 BD DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 93 2B 01 00 F4 03 04 00 19 8D 74 66 B6 04 01 00 00 7E 07 C3 F6 2A DC 1B D1 [02:33:28]CommunicateWithHost err = 0 [02:33:28]CheckOFDResponse [02:33:28]1017 (14) - 77093643461234 [02:33:28]1041 (16) - 0000000000875009 [02:33:28]1040 (4) - 76691 [02:33:28]1012 (4) - 20.06.2024 20:12 [02:33:28]1206 (1) - 0 [02:33:28]OFD Sender: Remove packet 76691 [02:33:28]ProducePacketName [02:33:28]name=ofd_packets/00076691 [02:33:28]NVStorageDeleteData [02:33:28]Write to MH i2c: 01 00 00 E6 18 FE [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 07 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 FA 0C 0B [02:33:28]RasterBufferAndPrint [02:33:28]line [02:33:28]line [02:33:28]line [02:33:28]line [02:33:28]line [02:33:28]written 0, free lines is 3332 [02:33:28]MH_Cut [02:33:28]Write to MH i2c: D1 01 00 ED 18 01 D7 [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: D1 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: D1 01 00 [02:33:28]MH_I2C_Read... [02:33:28]Read from MH i2c: D1 01 00 ED 18 00 D6 [02:33:28]Write to MH i2c: 01 00 00 EE 18 06 [02:33:28]Write i2c OK [02:33:28]MH_I2C_Read... [02:33:28]OFD Sender: No OFD packet to send [02:33:29]*** Cut start [02:33:29]*** Partial cut [02:33:29]*** CUTSNS_PIN = 1 [02:33:29]*** CUTSNS_PIN = 0 [02:33:29]*** Brake cut motor [02:33:29]Read from MH i2c: 01 [02:33:29]MH_I2C_Read... [02:33:29]*** Stop cut motor [02:33:29]*** Cut end [02:33:29]Read from MH i2c: 01 07 00 [02:33:29]MH_I2C_Read... [02:33:29]Read from MH i2c: 01 07 00 EE 18 00 00 00 00 00 FF 0F 1B [02:33:29]process_action close_receipt done [02:33:29]requested_data is exist [02:33:29]produce_requested_data [02:33:29]requested_item fm.sn is exist - process it [02:33:29]wFMCommunicate request_size=4 [02:33:29]MH_SAM_APDU [02:33:29]CAPDU: 80 11 00 00 [02:33:29]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [02:33:29]Write i2c OK [02:33:29]MH_I2C_Read... [02:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:29]Read from MH i2c: E2 [02:33:29]MH_I2C_Read... [02:33:29]Read from MH i2c: E2 17 00 [02:33:29]MH_I2C_Read... [02:33:29]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D1 [02:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:33:29]wFMCommunicate OK [02:33:29]requested_item fd.num is exist - process it [02:33:29]SAM_PROTO_GetFieldsCounters [02:33:29]wFMCommunicate request_size=4 [02:33:29]MH_SAM_APDU [02:33:29]CAPDU: 80 13 00 00 [02:33:29]Write to MH i2c: E2 08 00 F0 18 80 13 00 00 00 00 00 00 84 [02:33:29]Write i2c OK [02:33:29]MH_I2C_Read... [02:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:33:29]Read from MH i2c: E2 [02:33:29]MH_I2C_Read... [02:33:29]Read from MH i2c: E2 62 00 [02:33:29]MH_I2C_Read... [02:33:29]Read from MH i2c: E2 62 00 F0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 93 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [02:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 93 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:33:29]wFMCommunicate OK [02:33:29]SAM_PROTO_GetFieldsCounters done [02:33:29]requested_item shift.num is exist - process it [02:33:29]requested_item shift.opened is exist - process it [02:33:29]req_shift_opened [02:33:29]FM_GetShiftState [02:33:29]SAM_PROTO_GetShiftState [02:33:29]wFMCommunicate request_size=4 [02:33:29]MH_SAM_APDU [02:33:29]CAPDU: 80 13 01 00 [02:33:29]Write to MH i2c: E2 08 00 F1 18 80 13 01 00 00 00 00 00 86 [02:33:29]Write i2c OK [02:33:29]MH_I2C_Read... [02:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:29]Read from MH i2c: E2 [02:33:29]MH_I2C_Read... [02:33:29]Read from MH i2c: E2 0E 00 [02:33:29]MH_I2C_Read... [02:33:29]Read from MH i2c: E2 0E 00 F1 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 8B [02:33:29]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:33:29]wFMCommunicate OK [02:33:29]SAM_PROTO_GetShiftState done [02:33:29]FM_GetShiftState done [02:33:29]req_shift_opened done [02:33:29]requested_item shift.open_date is exist - process it [02:33:29]req_shift_open_date [02:33:29]req_shift_open_date done [02:33:29]produce_requested_data done [02:33:29]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76691,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [02:33:29]process_action_free close_receipt [02:33:29]json_value_free [02:33:29]json_value_free done [02:33:29]process_json_proto returns [02:33:29]Send response to host [02:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76691,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [02:33:29]free response buf [02:33:29]execute_script done [02:33:29]execute_script returns [02:33:29]free content buf [02:33:29]Sock 10.Close socket [02:33:29]Sock 10.Thread stoped [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:28]accept exits with 7 [02:38:28]New connection [02:38:28]New thread 3066948964 created [02:38:28]Thread 3066805604 joined [02:38:28]Waiting for new connection... [02:38:28] Sock 7.Parse request [02:38:28]Sock 7.Check first char [02:38:28]Sock 7.First char is OK [02:38:28]request: POST /json_proto HTTP/1.0 [02:38:28]Method: POST [02:38:28]URL: /json_proto [02:38:28]Method is POST - this is cgi request [02:38:28]url: /json_proto [02:38:28]query_string will be loaded in cgi processing [02:38:28]execute_cgi json_proto POST (null) [02:38:28]execute_cgi path=json_proto method=POST [02:38:28]POST find Content-Length [02:38:28]Host: 172.17.39.195:8080 [02:38:28]Content-Length: 621 [02:38:28]Content-Type: application/json [02:38:28] [02:38:28]POST finish read [02:38:28]Found Content-Length = 621 [02:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220812", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:28]execute_script... [02:38: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 : (3)220812", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:28]POST & json_proto [02:38:28]process_json_proto [02:38:28]json parsed OK: [02:38:28]protocol is kg_v1.0 [02:38:28]action value=close_receipt [02:38:28]process_action close_receipt [02:38:28]cmd_close_receipt [02:38:28]MH_GetDate [02:38:28]Write to MH i2c: F0 00 00 F2 18 F9 [02:38:28]Write i2c OK [02:38:28]MH_I2C_Read... [02:38:28]Read from MH i2c: F0 [02:38:28]MH_I2C_Read... [02:38:28]Read from MH i2c: F0 09 00 [02:38:28]MH_I2C_Read... [02:38:28]Read from MH i2c: F0 09 00 F2 18 00 A8 E7 74 66 99 81 91 64 7A [02:38:28]GetLastDocTimeStamp 1718937210 [02:38:28]current date 1718937512 [02:38:28]FM_GetShiftState [02:38:28]SAM_PROTO_GetShiftState [02:38:28]wFMCommunicate request_size=4 [02:38:28]MH_SAM_APDU [02:38:28]CAPDU: 80 13 01 00 [02:38:28]Write to MH i2c: E2 08 00 F3 18 80 13 01 00 00 00 00 00 88 [02:38:28]Write i2c OK [02:38:28]MH_I2C_Read... [02:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:28]Read from MH i2c: E2 [02:38:28]MH_I2C_Read... [02:38:28]Read from MH i2c: E2 0E 00 [02:38:28]MH_I2C_Read... [02:38:28]Read from MH i2c: E2 0E 00 F3 18 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 8D [02:38:28]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:38:28]wFMCommunicate OK [02:38:28]SAM_PROTO_GetShiftState done [02:38:28]FM_GetShiftState done [02:38:28]opened in 1718930005 [02:38:28]opened+sec_in_day 1719016405 [02:38:28]quantity*price = 14000 [02:38:28]sum+1 = 14001 [02:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 10 21.06.2024 02:38 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76692 ФПД: 203515663233822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023832&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76692&fm=203515663233822&tin=02508201610067®Number=0000000000095696&sum=14000 0 [02:38:29]StoreToDocumentArchive [02:38:29]shift 394 fd 76692 [02:38:29]save to /storage/0394/doc_00076692 [02:38:29]save last doc name /storage/0394/doc_00076692 to /storage/kkm_last_doc_name [02:38:29]save OK [02:38:29]Clear old archive folders... [02:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:38:29]tlvbuf is 00EB2950 [02:38:29]SAM_PROTO_ClearQueue [02:38:29]wFMCommunicate request_size=4 [02:38:29]MH_SAM_APDU [02:38:29]CAPDU: 80 09 00 00 [02:38:29]Write to MH i2c: E2 08 00 00 19 80 09 00 00 00 00 00 00 8B [02:38:29]Write i2c OK [02:38:29]MH_I2C_Read... [02:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:29]Read from MH i2c: E2 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [02:38:29]RAPDU: 90 00 [02:38:29]wFMCommunicate OK [02:38:29]SAM_PROTO_ClearQueue done [02:38:29]KKMCreateOFDPacket [02:38:29]OFDProtocolAddRootSTLVToBuf [02:38:29]FM_MakeSignedData [02:38:29]FM_MakeSignedData [02:38:29]SAM_PROTO_SignData [02:38:29]wFMCommunicate request_size=4 [02:38:29]MH_SAM_APDU [02:38:29]CAPDU: 80 0D 01 02 [02:38:29]Write to MH i2c: E2 08 00 01 19 80 0D 01 02 00 00 00 00 93 [02:38:29]Write i2c OK [02:38:29]MH_I2C_Read... [02:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:29]Read from MH i2c: E2 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [02:38:29]RAPDU: 90 00 [02:38:29]wFMCommunicate OK [02:38:29]wFMCommunicate request_size=255 [02:38:29]MH_SAM_APDU [02:38:29]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 A8 E7 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [02:38:29]Write to MH i2c: E2 02 01 02 19 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 A8 E7 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 90 [02:38:29]Write i2c OK [02:38:29]MH_I2C_Read... [02:38:29]OFD Sender: No OFD packet to send [02:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:29]Read from MH i2c: E2 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [02:38:29]RAPDU: 90 00 [02:38:29]wFMCommunicate OK [02:38:29]wFMCommunicate request_size=32 [02:38:29]MH_SAM_APDU [02:38:29]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 94 2B 01 00 35 04 06 00 B9 18 AE D0 33 1E [02:38:29]Write to MH i2c: E2 23 00 03 19 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 94 2B 01 00 35 04 06 00 B9 18 AE D0 33 1E 00 00 50 [02:38:29]Write i2c OK [02:38:29]MH_I2C_Read... [02:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:29]Read from MH i2c: E2 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [02:38:29]RAPDU: 90 00 [02:38:29]wFMCommunicate OK [02:38:29]wFMCommunicate request_size=4 [02:38:29]MH_SAM_APDU [02:38:29]CAPDU: 80 0D 03 02 [02:38:29]Write to MH i2c: E2 08 00 04 19 80 0D 03 02 00 00 00 00 98 [02:38:29]Write i2c OK [02:38:29]MH_I2C_Read... [02:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:29]Read from MH i2c: E2 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 0B 00 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 0B 00 04 19 00 2E CE 87 FD E0 22 E7 80 90 00 82 [02:38:29]RAPDU: 2E CE 87 FD E0 22 E7 80 90 00 [02:38:29]wFMCommunicate OK [02:38:29]SAM_PROTO_SignData done [02:38:29]FM_MakeSignedData done [02:38:29]CreateOFDProtocolMessage [02:38:29]wFMCommunicate request_size=4 [02:38:29]MH_SAM_APDU [02:38:29]CAPDU: 80 11 00 00 [02:38:29]Write to MH i2c: E2 08 00 05 19 80 11 00 00 00 00 00 00 98 [02:38:29]Write i2c OK [02:38:29]MH_I2C_Read... [02:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:29]Read from MH i2c: E2 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 17 00 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: E2 17 00 05 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E8 [02:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:38:29]wFMCommunicate OK [02:38:29]CreateOFDProtocolMessage done [02:38:29]OFDSenderStorePacket 76692 [02:38:29]StoreOFDPacket docnum=76692 [02:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 E5 CF 1D 01 3A 73 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 A8 E7 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 94 2B 01 00 35 04 06 00 B9 18 AE D0 33 1E 2E CE 87 FD E0 22 E7 80 [02:38:29]CheckFolder [02:38:29]dirname=/storage/ofd_packets [02:38:29]CheckFolder done [02:38:29]ProducePacketName [02:38:29]name=ofd_packets/00076692 [02:38:29]NVStorageSaveData ofd_packets/00076692 [02:38:29]File name is /storage/ofd_packets/00076692 [02:38:29]Write 323 bytes [02:38:29]NVStorageSaveData done [02:38:29]OFDSenderStorePacket done [02:38:29]KKMCreateOFDPacket done [02:38:29]NVStorageSaveData kkm_last_timestamp [02:38:29]File name is /storage/kkm_last_timestamp [02:38:29]Write 4 bytes [02:38:29]NVStorageSaveData done [02:38:29]ExternCall_PrintAddStr [02:38:29]wPrintStart [02:38:29]Write to MH i2c: 01 00 00 06 19 1F [02:38:29]Write i2c OK [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: 01 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: 01 07 00 [02:38:29]MH_I2C_Read... [02:38:29]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [02:38:29]RasterBufferAndPrint [02:38:29]line Счет N : (3)220812 [02:38:29]line ИНН: 02508201610067 [02:38:29]line Контрольно-Кассовый Чек [02:38:29]line ПРОДАЖА [02:38:29]line Товар: 48743570 [02:38:29]line Сигареты Winston XStyle Blue [02:38:29]line 1.000 * 140.00 [02:38:29]line = 140.00 [02:38:29]line НДС 12% НСП 1% [02:38:29]line > о реализуемом товаре [02:38:29]line ИТОГО: 140.00 [02:38:29]line НСП 1% : 1.24 [02:38:29]line НДС 12% : 14.87 [02:38:29]line Наличными: 140.00 [02:38:29]line Безнал.: 0.00 [02:38:29]line Место: АЗС № 144 "Партнер Нефть" [02:38:29]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [02:38:29]line СНО: Общий режим [02:38:29]line Чек 10 21.06.2024 02:38 [02:38:29]line Смена: 394 ФФД: 1.0 [02:38:29]line ЗНМ: 0300000170 [02:38:29]line РНМ: 0000000000095696 [02:38:29]line Версия ККМ: 001 [02:38:29]line ФМ: 0000000000875009 [02:38:29]line ФД: 76692 [02:38:29]line ФПД: 203515663233822 [02:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023832&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76692&fm=203515663233822&tin=02508201610067®Number=0000000000095696&sum=14000 [02:38:29]line 0 [02:38:29]OFD Sender: Processing packet 76692 [packets to send 351, broken 350] [02:38:29]ProducePacketName [02:38:29]name=ofd_packets/00076692 [02:38:29]OFD Sender: To server: pG, [02:38:29]CommunicateWithHost lk.salyk.kg:30040 [02:38:29]ConnectInit lk.salyk.kg [02:38:29]written 0, free lines is 4095 [02:38:30]Connected sock=10 [02:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 E5 CF 1D 01 3A 73 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 A8 E7 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 94 2B 01 00 35 04 06 00 B9 18 AE D0 33 1E 2E CE 87 FD E0 22 E7 80 [02:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 5E B0 47 00 DE F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 94 2B 01 00 F4 03 04 00 47 8E 74 66 B6 04 01 00 00 41 B0 DA 59 25 41 25 2D [02:38:30]CommunicateWithHost err = 0 [02:38:30]CheckOFDResponse [02:38:30]1017 (14) - 77093643461234 [02:38:30]1041 (16) - 0000000000875009 [02:38:30]1040 (4) - 76692 [02:38:30]1012 (4) - 20.06.2024 20:17 [02:38:30]1206 (1) - 0 [02:38:30]OFD Sender: Remove packet 76692 [02:38:30]ProducePacketName [02:38:30]name=ofd_packets/00076692 [02:38:30]NVStorageDeleteData [02:38:30]Write to MH i2c: 01 00 00 2E 19 47 [02:38:30]Write i2c OK [02:38:30]MH_I2C_Read... [02:38:30]Read from MH i2c: 01 [02:38:30]MH_I2C_Read... [02:38:30]Read from MH i2c: 01 07 00 [02:38:30]MH_I2C_Read... [02:38:30]Read from MH i2c: 01 07 00 2E 19 00 00 00 00 00 EC 0C 46 [02:38:30]RasterBufferAndPrint [02:38:30]line [02:38:30]line [02:38:30]line [02:38:30]line [02:38:30]line [02:38:30]written 0, free lines is 3317 [02:38:30]MH_Cut [02:38:30]Write to MH i2c: D1 01 00 35 19 01 20 [02:38:30]Write i2c OK [02:38:30]MH_I2C_Read... [02:38:30]Read from MH i2c: D1 [02:38:30]MH_I2C_Read... [02:38:30]Read from MH i2c: D1 01 00 [02:38:30]MH_I2C_Read... [02:38:30]Read from MH i2c: D1 01 00 35 19 00 1F [02:38:30]Write to MH i2c: 01 00 00 36 19 4F [02:38:30]Write i2c OK [02:38:30]MH_I2C_Read... [02:38:30]OFD Sender: No OFD packet to send [02:38:31]*** Cut start [02:38:31]*** Partial cut [02:38:31]*** CUTSNS_PIN = 1 [02:38:31]*** CUTSNS_PIN = 0 [02:38:31]*** Brake cut motor [02:38:31]Read from MH i2c: 01 [02:38:31]MH_I2C_Read... [02:38:31]*** Stop cut motor [02:38:31]*** Cut end [02:38:31]Read from MH i2c: 01 07 00 [02:38:31]MH_I2C_Read... [02:38:31]Read from MH i2c: 01 07 00 36 19 00 00 00 00 00 FF 0F 64 [02:38:31]process_action close_receipt done [02:38:31]requested_data is exist [02:38:31]produce_requested_data [02:38:31]requested_item fm.sn is exist - process it [02:38:31]wFMCommunicate request_size=4 [02:38:31]MH_SAM_APDU [02:38:31]CAPDU: 80 11 00 00 [02:38:31]Write to MH i2c: E2 08 00 37 19 80 11 00 00 00 00 00 00 CA [02:38:31]Write i2c OK [02:38:31]MH_I2C_Read... [02:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:31]Read from MH i2c: E2 [02:38:31]MH_I2C_Read... [02:38:31]Read from MH i2c: E2 17 00 [02:38:31]MH_I2C_Read... [02:38:31]Read from MH i2c: E2 17 00 37 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1A [02:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:38:31]wFMCommunicate OK [02:38:31]requested_item fd.num is exist - process it [02:38:31]SAM_PROTO_GetFieldsCounters [02:38:31]wFMCommunicate request_size=4 [02:38:31]MH_SAM_APDU [02:38:31]CAPDU: 80 13 00 00 [02:38:31]Write to MH i2c: E2 08 00 38 19 80 13 00 00 00 00 00 00 CD [02:38:31]Write i2c OK [02:38:31]MH_I2C_Read... [02:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:31]Read from MH i2c: E2 [02:38:31]MH_I2C_Read... [02:38:31]Read from MH i2c: E2 62 00 [02:38:31]MH_I2C_Read... [02:38:31]Read from MH i2c: E2 62 00 38 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 94 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [02:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 94 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:31]wFMCommunicate OK [02:38:31]SAM_PROTO_GetFieldsCounters done [02:38:31]requested_item shift.num is exist - process it [02:38:31]requested_item shift.opened is exist - process it [02:38:31]req_shift_opened [02:38:31]FM_GetShiftState [02:38:31]SAM_PROTO_GetShiftState [02:38:31]wFMCommunicate request_size=4 [02:38:31]MH_SAM_APDU [02:38:31]CAPDU: 80 13 01 00 [02:38:31]Write to MH i2c: E2 08 00 39 19 80 13 01 00 00 00 00 00 CF [02:38:31]Write i2c OK [02:38:31]MH_I2C_Read... [02:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:31]Read from MH i2c: E2 [02:38:31]MH_I2C_Read... [02:38:31]Read from MH i2c: E2 0E 00 [02:38:31]MH_I2C_Read... [02:38:31]Read from MH i2c: E2 0E 00 39 19 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 D4 [02:38:31]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:38:31]wFMCommunicate OK [02:38:31]SAM_PROTO_GetShiftState done [02:38:31]FM_GetShiftState done [02:38:31]req_shift_opened done [02:38:31]requested_item shift.open_date is exist - process it [02:38:31]req_shift_open_date [02:38:31]req_shift_open_date done [02:38:31]produce_requested_data done [02:38:31]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76692,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [02:38:31]process_action_free close_receipt [02:38:31]json_value_free [02:38:31]json_value_free done [02:38:31]process_json_proto returns [02:38:31]Send response to host [02:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76692,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [02:38:31]free response buf [02:38:31]execute_script done [02:38:31]execute_script returns [02:38:31]free content buf [02:38:31]Sock 7.Close socket [02:38:31]Sock 7.Thread stoped [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:40]accept exits with 9 [02:49:40]New connection [02:49:40]New thread 3066805604 created [02:49:40]Thread 3066948964 joined [02:49:40]Waiting for new connection... [02:49:40] Sock 9.Parse request [02:49:40]Sock 9.Check first char [02:49:40]Sock 9.First char is OK [02:49:40]request: POST /json_proto HTTP/1.0 [02:49:40]Method: POST [02:49:40]URL: /json_proto [02:49:40]Method is POST - this is cgi request [02:49:40]url: /json_proto [02:49:40]query_string will be loaded in cgi processing [02:49:40]execute_cgi json_proto POST (null) [02:49:40]execute_cgi path=json_proto method=POST [02:49:40]POST find Content-Length [02:49:40]Host: 172.17.39.195:8080 [02:49:40]Content-Length: 1120 [02:49:40]Content-Type: application/json [02:49:40] [02:49:40]POST finish read [02:49:40]Found Content-Length = 1120 [02:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220813", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:40]execute_script... [02:49: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 : (3)220813", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 640.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:40]POST & json_proto [02:49:40]process_json_proto [02:49:40]json parsed OK: [02:49:40]protocol is kg_v1.0 [02:49:40]action value=close_receipt [02:49:40]process_action close_receipt [02:49:40]cmd_close_receipt [02:49:40]MH_GetDate [02:49:40]Write to MH i2c: F0 00 00 3A 19 42 [02:49:40]Write i2c OK [02:49:40]MH_I2C_Read... [02:49:40]Read from MH i2c: F0 [02:49:40]MH_I2C_Read... [02:49:40]Read from MH i2c: F0 09 00 [02:49:40]MH_I2C_Read... [02:49:40]Read from MH i2c: F0 09 00 3A 19 00 48 EA 74 66 99 81 91 64 66 [02:49:40]GetLastDocTimeStamp 1718937512 [02:49:40]current date 1718938184 [02:49:40]FM_GetShiftState [02:49:40]SAM_PROTO_GetShiftState [02:49:40]wFMCommunicate request_size=4 [02:49:40]MH_SAM_APDU [02:49:40]CAPDU: 80 13 01 00 [02:49:40]Write to MH i2c: E2 08 00 3B 19 80 13 01 00 00 00 00 00 D1 [02:49:40]Write i2c OK [02:49:40]MH_I2C_Read... [02:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:40]Read from MH i2c: E2 [02:49:40]MH_I2C_Read... [02:49:40]Read from MH i2c: E2 0E 00 [02:49:40]MH_I2C_Read... [02:49:40]Read from MH i2c: E2 0E 00 3B 19 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 D6 [02:49:40]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:49:40]wFMCommunicate OK [02:49:40]SAM_PROTO_GetShiftState done [02:49:40]FM_GetShiftState done [02:49:40]opened in 1718930005 [02:49:40]opened+sec_in_day 1719016405 [02:49:40]quantity*price = 39000 [02:49:40]sum+1 = 39001 [02:49:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 640.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 11 21.06.2024 02:49 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76693 ФПД: 89923586874262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T024944&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76693&fm=89923586874262&tin=02508201610067®Number=0000000000095696&sum=64000 0 [02:49:41]StoreToDocumentArchive [02:49:41]shift 394 fd 76693 [02:49:41]save to /storage/0394/doc_00076693 [02:49:41]save last doc name /storage/0394/doc_00076693 to /storage/kkm_last_doc_name [02:49:41]save OK [02:49:41]Clear old archive folders... [02:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=476 [02:49:41]tlvbuf is 00EC0B40 [02:49:41]SAM_PROTO_ClearQueue [02:49:41]wFMCommunicate request_size=4 [02:49:41]MH_SAM_APDU [02:49:41]CAPDU: 80 09 00 00 [02:49:41]Write to MH i2c: E2 08 00 48 19 80 09 00 00 00 00 00 00 D3 [02:49:41]Write i2c OK [02:49:41]MH_I2C_Read... [02:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:49:41]Read from MH i2c: E2 [02:49:41]MH_I2C_Read... [02:49:41]Read from MH i2c: E2 03 00 [02:49:41]MH_I2C_Read... [02:49:41]Read from MH i2c: E2 03 00 48 19 00 90 00 D5 [02:49:41]RAPDU: 90 00 [02:49:41]wFMCommunicate OK [02:49:41]SAM_PROTO_ClearQueue done [02:49:41]KKMCreateOFDPacket [02:49:41]OFDProtocolAddRootSTLVToBuf [02:49:41]FM_MakeSignedData [02:49:41]FM_MakeSignedData [02:49:41]SAM_PROTO_SignData [02:49:41]wFMCommunicate request_size=4 [02:49:41]MH_SAM_APDU [02:49:41]CAPDU: 80 0D 01 02 [02:49:41]Write to MH i2c: E2 08 00 49 19 80 0D 01 02 00 00 00 00 DB [02:49:41]Write i2c OK [02:49:41]MH_I2C_Read... [02:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:49:41]Read from MH i2c: E2 [02:49:41]MH_I2C_Read... [02:49:41]Read from MH i2c: E2 03 00 [02:49:41]MH_I2C_Read... [02:49:41]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [02:49:41]RAPDU: 90 00 [02:49:41]wFMCommunicate OK [02:49:41]wFMCommunicate request_size=255 [02:49:41]MH_SAM_APDU [02:49:41]CAPDU: 80 0D 02 02 FA 03 00 DC 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 [02:49:41]Write to MH i2c: E2 02 01 4A 19 80 0D 02 02 FA 00 03 00 DC 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 00 00 DB [02:49:42]OFD Sender: No OFD packet to send [02:49:42]Write i2c OK [02:49:42]MH_I2C_Read... [02:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:42]Read from MH i2c: E2 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 03 00 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [02:49:42]RAPDU: 90 00 [02:49:42]wFMCommunicate OK [02:49:42]wFMCommunicate request_size=235 [02:49:42]MH_SAM_APDU [02:49:42]CAPDU: 80 0D 02 02 E6 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 48 EA 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 95 2B 01 00 35 04 06 00 51 C8 F7 73 DB 96 [02:49:42]Write to MH i2c: E2 EE 00 4B 19 80 0D 02 02 E6 00 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 48 EA 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 95 2B 01 00 35 04 06 00 51 C8 F7 73 DB 96 00 00 A5 [02:49:42]Write i2c OK [02:49:42]MH_I2C_Read... [02:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:42]Read from MH i2c: E2 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 03 00 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [02:49:42]RAPDU: 90 00 [02:49:42]wFMCommunicate OK [02:49:42]wFMCommunicate request_size=4 [02:49:42]MH_SAM_APDU [02:49:42]CAPDU: 80 0D 03 02 [02:49:42]Write to MH i2c: E2 08 00 4C 19 80 0D 03 02 00 00 00 00 E0 [02:49:42]Write i2c OK [02:49:42]MH_I2C_Read... [02:49:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:49:42]Read from MH i2c: E2 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 0B 00 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 0B 00 4C 19 00 7A E4 83 BF 0A 51 97 BF 90 00 32 [02:49:42]RAPDU: 7A E4 83 BF 0A 51 97 BF 90 00 [02:49:42]wFMCommunicate OK [02:49:42]SAM_PROTO_SignData done [02:49:42]FM_MakeSignedData done [02:49:42]CreateOFDProtocolMessage [02:49:42]wFMCommunicate request_size=4 [02:49:42]MH_SAM_APDU [02:49:42]CAPDU: 80 11 00 00 [02:49:42]Write to MH i2c: E2 08 00 4D 19 80 11 00 00 00 00 00 00 E0 [02:49:42]Write i2c OK [02:49:42]MH_I2C_Read... [02:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:42]Read from MH i2c: E2 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 17 00 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: E2 17 00 4D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 30 [02:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:49:42]wFMCommunicate OK [02:49:42]CreateOFDProtocolMessage done [02:49:42]OFDSenderStorePacket 76693 [02:49:42]StoreOFDPacket docnum=76693 [02:49:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 F0 01 00 00 30 A5 E8 01 3D 76 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 48 EA 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 95 2B 01 00 35 04 06 00 51 C8 F7 73 DB 96 7A E4 83 BF 0A 51 97 BF [02:49:42]CheckFolder [02:49:42]dirname=/storage/ofd_packets [02:49:42]CheckFolder done [02:49:42]ProducePacketName [02:49:42]name=ofd_packets/00076693 [02:49:42]NVStorageSaveData ofd_packets/00076693 [02:49:42]File name is /storage/ofd_packets/00076693 [02:49:42]Write 526 bytes [02:49:42]NVStorageSaveData done [02:49:42]OFDSenderStorePacket done [02:49:42]KKMCreateOFDPacket done [02:49:42]NVStorageSaveData kkm_last_timestamp [02:49:42]File name is /storage/kkm_last_timestamp [02:49:42]Write 4 bytes [02:49:42]NVStorageSaveData done [02:49:42]ExternCall_PrintAddStr [02:49:42]wPrintStart [02:49:42]Write to MH i2c: 01 00 00 4E 19 67 [02:49:42]Write i2c OK [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: 01 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: 01 07 00 [02:49:42]MH_I2C_Read... [02:49:42]Read from MH i2c: 01 07 00 4E 19 00 00 00 00 00 FF 0F 7C [02:49:42]RasterBufferAndPrint [02:49:42]line Счет N : (3)220813 [02:49:42]line ИНН: 02508201610067 [02:49:42]line Контрольно-Кассовый Чек [02:49:42]line ПРОДАЖА [02:49:42]line Товар: 4700028325357 [02:49:42]line Водка Антивирус 0,5л [02:49:42]line 1.000 * 390.00 [02:49:42]line = 390.00 [02:49:42]line НДС 12% НСП 1% [02:49:42]line > о реализуемом товаре [02:49:42]line Товар: 4870001570071 [02:49:42]line Напиток Pepsi 1л [02:49:42]line 1.000 * 110.00 [02:49:42]line = 110.00 [02:49:42]line НДС 12% НСП 1% [02:49:42]line > о реализуемом товаре [02:49:42]line Товар: 48747059 [02:49:42]line Сигареты Winston Legend Blue [02:49:42]line 1.000 * 140.00 [02:49:42]line = 140.00 [02:49:42]line НДС 12% НСП 1% [02:49:42]line > о реализуемом товаре [02:49:42]line ИТОГО: 640.00 [02:49:42]line НСП 1% : 5.66 [02:49:42]line НДС 12% : 67.97 [02:49:42]line Наличными: 640.00 [02:49:42]line Безнал.: 0.00 [02:49:42]line Место: АЗС № 144 "Партнер Нефть" [02:49:42]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [02:49:42]line СНО: Общий режим [02:49:42]line Чек 11 21.06.2024 02:49 [02:49:42]line Смена: 394 ФФД: 1.0 [02:49:42]line ЗНМ: 0300000170 [02:49:42]line РНМ: 0000000000095696 [02:49:42]line Версия ККМ: 001 [02:49:42]line ФМ: 0000000000875009 [02:49:42]line ФД: 76693 [02:49:42]line ФПД: 89923586874262 [02:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T024944&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76693&fm=89923586874262&tin=02508201610067®Number=0000000000095696&sum=64000 [02:49:42]line 0 [02:49:42]written 0, free lines is 4095 [02:49:42]OFD Sender: Processing packet 76693 [packets to send 351, broken 350] [02:49:42]ProducePacketName [02:49:42]name=ofd_packets/00076693 [02:49:42]OFD Sender: To server: pG, [02:49:42]CommunicateWithHost lk.salyk.kg:30040 [02:49:42]ConnectInit lk.salyk.kg [02:49:43]Connected sock=10 [02:49:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 F0 01 00 00 30 A5 E8 01 3D 76 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 48 EA 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 95 2B 01 00 35 04 06 00 51 C8 F7 73 DB 96 7A E4 83 BF 0A 51 97 BF [02:49:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 72 C9 47 00 1D 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 95 2B 01 00 F4 03 04 00 E8 90 74 66 B6 04 01 00 00 C2 55 8F 65 B5 C4 C9 75 [02:49:43]CommunicateWithHost err = 0 [02:49:43]CheckOFDResponse [02:49:43]1017 (14) - 77093643461234 [02:49:43]1041 (16) - 0000000000875009 [02:49:43]1040 (4) - 76693 [02:49:43]1012 (4) - 20.06.2024 20:28 [02:49:43]1206 (1) - 0 [02:49:43]OFD Sender: Remove packet 76693 [02:49:43]ProducePacketName [02:49:43]name=ofd_packets/00076693 [02:49:43]NVStorageDeleteData [02:49:43]Write to MH i2c: 01 00 00 83 19 9C [02:49:43]Write i2c OK [02:49:43]MH_I2C_Read... [02:49:43]Read from MH i2c: 01 [02:49:43]MH_I2C_Read... [02:49:43]Read from MH i2c: 01 07 00 [02:49:43]MH_I2C_Read... [02:49:43]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 29 0C D8 [02:49:43]RasterBufferAndPrint [02:49:43]line [02:49:43]line [02:49:43]line [02:49:43]line [02:49:43]line [02:49:43]written 0, free lines is 3120 [02:49:43]MH_Cut [02:49:43]Write to MH i2c: D1 01 00 8A 19 01 75 [02:49:43]Write i2c OK [02:49:43]MH_I2C_Read... [02:49:43]Read from MH i2c: D1 [02:49:43]MH_I2C_Read... [02:49:43]Read from MH i2c: D1 01 00 [02:49:43]MH_I2C_Read... [02:49:43]Read from MH i2c: D1 01 00 8A 19 00 74 [02:49:43]Write to MH i2c: 01 00 00 8B 19 A4 [02:49:43]Write i2c OK [02:49:43]MH_I2C_Read... [02:49:43]OFD Sender: No OFD packet to send [02:49:44]*** Cut start [02:49:44]*** Partial cut [02:49:44]*** CUTSNS_PIN = 1 [02:49:44]*** CUTSNS_PIN = 0 [02:49:44]*** Brake cut motor [02:49:44]Read from MH i2c: 01 [02:49:44]MH_I2C_Read... [02:49:44]*** Stop cut motor [02:49:44]*** Cut end [02:49:44]Read from MH i2c: 01 07 00 [02:49:44]MH_I2C_Read... [02:49:44]Read from MH i2c: 01 07 00 8B 19 00 00 00 00 00 FF 0F B9 [02:49:44]process_action close_receipt done [02:49:44]requested_data is exist [02:49:44]produce_requested_data [02:49:44]requested_item fm.sn is exist - process it [02:49:44]wFMCommunicate request_size=4 [02:49:44]MH_SAM_APDU [02:49:44]CAPDU: 80 11 00 00 [02:49:44]Write to MH i2c: E2 08 00 8C 19 80 11 00 00 00 00 00 00 1F [02:49:44]Write i2c OK [02:49:44]MH_I2C_Read... [02:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:44]Read from MH i2c: E2 [02:49:44]MH_I2C_Read... [02:49:44]Read from MH i2c: E2 17 00 [02:49:44]MH_I2C_Read... [02:49:44]Read from MH i2c: E2 17 00 8C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6F [02:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:49:44]wFMCommunicate OK [02:49:44]requested_item fd.num is exist - process it [02:49:44]SAM_PROTO_GetFieldsCounters [02:49:44]wFMCommunicate request_size=4 [02:49:44]MH_SAM_APDU [02:49:44]CAPDU: 80 13 00 00 [02:49:44]Write to MH i2c: E2 08 00 8D 19 80 13 00 00 00 00 00 00 22 [02:49:44]Write i2c OK [02:49:44]MH_I2C_Read... [02:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:49:45]Read from MH i2c: E2 [02:49:45]MH_I2C_Read... [02:49:45]Read from MH i2c: E2 62 00 [02:49:45]MH_I2C_Read... [02:49:45]Read from MH i2c: E2 62 00 8D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 95 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [02:49:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 95 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:49:45]wFMCommunicate OK [02:49:45]SAM_PROTO_GetFieldsCounters done [02:49:45]requested_item shift.num is exist - process it [02:49:45]requested_item shift.opened is exist - process it [02:49:45]req_shift_opened [02:49:45]FM_GetShiftState [02:49:45]SAM_PROTO_GetShiftState [02:49:45]wFMCommunicate request_size=4 [02:49:45]MH_SAM_APDU [02:49:45]CAPDU: 80 13 01 00 [02:49:45]Write to MH i2c: E2 08 00 8E 19 80 13 01 00 00 00 00 00 24 [02:49:45]Write i2c OK [02:49:45]MH_I2C_Read... [02:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:45]Read from MH i2c: E2 [02:49:45]MH_I2C_Read... [02:49:45]Read from MH i2c: E2 0E 00 [02:49:45]MH_I2C_Read... [02:49:45]Read from MH i2c: E2 0E 00 8E 19 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 29 [02:49:45]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:49:45]wFMCommunicate OK [02:49:45]SAM_PROTO_GetShiftState done [02:49:45]FM_GetShiftState done [02:49:45]req_shift_opened done [02:49:45]requested_item shift.open_date is exist - process it [02:49:45]req_shift_open_date [02:49:45]req_shift_open_date done [02:49:45]produce_requested_data done [02:49:45]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76693,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [02:49:45]process_action_free close_receipt [02:49:45]json_value_free [02:49:45]json_value_free done [02:49:45]process_json_proto returns [02:49:45]Send response to host [02:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76693,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [02:49:45]free response buf [02:49:45]execute_script done [02:49:45]execute_script returns [02:49:45]free content buf [02:49:45]Sock 9.Close socket [02:49:45]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:19]accept exits with 7 [02:55:19]New connection [02:55:19]New thread 3066948964 created [02:55:19]Thread 3066805604 joined [02:55:19]Waiting for new connection... [02:55:19] Sock 7.Parse request [02:55:19]Sock 7.Check first char [02:55:19]Sock 7.First char is OK [02:55:19]request: POST /json_proto HTTP/1.0 [02:55:19]Method: POST [02:55:19]URL: /json_proto [02:55:19]Method is POST - this is cgi request [02:55:19]url: /json_proto [02:55:19]query_string will be loaded in cgi processing [02:55:19]execute_cgi json_proto POST (null) [02:55:19]execute_cgi path=json_proto method=POST [02:55:19]POST find Content-Length [02:55:19]Host: 172.17.39.195:8080 [02:55:19]Content-Length: 911 [02:55:19]Content-Type: application/json [02:55:19] [02:55:19]POST finish read [02:55:19]Found Content-Length = 911 [02:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220814", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 142.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:55:19]execute_script... [02:55: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 : (3)220814", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 142.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:55:19]POST & json_proto [02:55:19]process_json_proto [02:55:19]json parsed OK: [02:55:19]protocol is kg_v1.0 [02:55:19]action value=close_receipt [02:55:19]process_action close_receipt [02:55:19]cmd_close_receipt [02:55:19]MH_GetDate [02:55:19]Write to MH i2c: F0 00 00 8F 19 97 [02:55:19]Write i2c OK [02:55:19]MH_I2C_Read... [02:55:19]Read from MH i2c: F0 [02:55:19]MH_I2C_Read... [02:55:19]Read from MH i2c: F0 09 00 [02:55:19]MH_I2C_Read... [02:55:19]Read from MH i2c: F0 09 00 8F 19 00 9B EB 74 66 99 81 91 64 0F [02:55:19]GetLastDocTimeStamp 1718938184 [02:55:19]current date 1718938523 [02:55:19]FM_GetShiftState [02:55:19]SAM_PROTO_GetShiftState [02:55:19]wFMCommunicate request_size=4 [02:55:19]MH_SAM_APDU [02:55:19]CAPDU: 80 13 01 00 [02:55:19]Write to MH i2c: E2 08 00 90 19 80 13 01 00 00 00 00 00 26 [02:55:19]Write i2c OK [02:55:19]MH_I2C_Read... [02:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:55:19]Read from MH i2c: E2 [02:55:19]MH_I2C_Read... [02:55:19]Read from MH i2c: E2 0E 00 [02:55:19]MH_I2C_Read... [02:55:19]Read from MH i2c: E2 0E 00 90 19 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 2B [02:55:19]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:55:19]wFMCommunicate OK [02:55:19]SAM_PROTO_GetShiftState done [02:55:19]FM_GetShiftState done [02:55:19]opened in 1718930005 [02:55:19]opened+sec_in_day 1719016405 [02:55:19]quantity*price = 7200 [02:55:19]sum+1 = 7201 [02:55:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002082931 Водка Хорошая 0,1л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 142.00 НСП 1% : 1.26 НДС 12% : 15.08 Наличными: 142.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 12 21.06.2024 02:55 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76694 ФПД: 70383921058593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T025523&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76694&fm=70383921058593&tin=02508201610067®Number=0000000000095696&sum=14200 0 [02:55:20]StoreToDocumentArchive [02:55:20]shift 394 fd 76694 [02:55:20]save to /storage/0394/doc_00076694 [02:55:20]save last doc name /storage/0394/doc_00076694 to /storage/kkm_last_doc_name [02:55:20]save OK [02:55:20]Clear old archive folders... [02:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=397 [02:55:20]tlvbuf is 00F3DBE0 [02:55:20]SAM_PROTO_ClearQueue [02:55:20]wFMCommunicate request_size=4 [02:55:20]MH_SAM_APDU [02:55:20]CAPDU: 80 09 00 00 [02:55:20]Write to MH i2c: E2 08 00 9D 19 80 09 00 00 00 00 00 00 28 [02:55:20]Write i2c OK [02:55:20]MH_I2C_Read... [02:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:55:20]Read from MH i2c: E2 [02:55:20]MH_I2C_Read... [02:55:20]Read from MH i2c: E2 03 00 [02:55:20]MH_I2C_Read... [02:55:20]Read from MH i2c: E2 03 00 9D 19 00 90 00 2A [02:55:20]RAPDU: 90 00 [02:55:20]wFMCommunicate OK [02:55:20]SAM_PROTO_ClearQueue done [02:55:20]KKMCreateOFDPacket [02:55:20]OFDProtocolAddRootSTLVToBuf [02:55:20]FM_MakeSignedData [02:55:20]FM_MakeSignedData [02:55:20]SAM_PROTO_SignData [02:55:20]wFMCommunicate request_size=4 [02:55:20]MH_SAM_APDU [02:55:20]CAPDU: 80 0D 01 02 [02:55:20]Write to MH i2c: E2 08 00 9E 19 80 0D 01 02 00 00 00 00 30 [02:55:20]Write i2c OK [02:55:20]MH_I2C_Read... [02:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:55:20]Read from MH i2c: E2 [02:55:20]MH_I2C_Read... [02:55:20]Read from MH i2c: E2 03 00 [02:55:20]MH_I2C_Read... [02:55:20]Read from MH i2c: E2 03 00 9E 19 00 90 00 2B [02:55:20]RAPDU: 90 00 [02:55:20]wFMCommunicate OK [02:55:20]wFMCommunicate request_size=255 [02:55:20]MH_SAM_APDU [02:55:20]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 37 00 00 00 00 EB 03 26 00 [02:55:20]Write to MH i2c: E2 02 01 9F 19 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 37 00 00 00 00 EB 03 26 00 00 00 A8 [02:55:20]Write i2c OK [02:55:20]MH_I2C_Read... [02:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:55:21]Read from MH i2c: E2 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 03 00 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 03 00 9F 19 00 90 00 2C [02:55:21]RAPDU: 90 00 [02:55:21]wFMCommunicate OK [02:55:21]wFMCommunicate request_size=156 [02:55:21]MH_SAM_APDU [02:55:21]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 05 00 00 00 00 07 04 06 00 78 37 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 9B EB 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 96 2B 01 00 35 04 06 00 40 03 88 9C D3 21 [02:55:21]Write to MH i2c: E2 9F 00 A0 19 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 05 00 00 00 00 07 04 06 00 78 37 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 9B EB 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 96 2B 01 00 35 04 06 00 40 03 88 9C D3 21 00 00 BB [02:55:21]Write i2c OK [02:55:21]MH_I2C_Read... [02:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:55:21]Read from MH i2c: E2 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 03 00 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 03 00 A0 19 00 90 00 2D [02:55:21]RAPDU: 90 00 [02:55:21]wFMCommunicate OK [02:55:21]wFMCommunicate request_size=4 [02:55:21]MH_SAM_APDU [02:55:21]CAPDU: 80 0D 03 02 [02:55:21]Write to MH i2c: E2 08 00 A1 19 80 0D 03 02 00 00 00 00 35 [02:55:21]Write i2c OK [02:55:21]MH_I2C_Read... [02:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:55:21]Read from MH i2c: E2 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 0B 00 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 0B 00 A1 19 00 85 0A 08 2C 03 F2 DC C4 90 00 8E [02:55:21]RAPDU: 85 0A 08 2C 03 F2 DC C4 90 00 [02:55:21]wFMCommunicate OK [02:55:21]SAM_PROTO_SignData done [02:55:21]FM_MakeSignedData done [02:55:21]CreateOFDProtocolMessage [02:55:21]wFMCommunicate request_size=4 [02:55:21]MH_SAM_APDU [02:55:21]CAPDU: 80 11 00 00 [02:55:21]Write to MH i2c: E2 08 00 A2 19 80 11 00 00 00 00 00 00 35 [02:55:21]Write i2c OK [02:55:21]MH_I2C_Read... [02:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:55:21]Read from MH i2c: E2 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 17 00 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: E2 17 00 A2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 85 [02:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:55:21]wFMCommunicate OK [02:55:21]CreateOFDProtocolMessage done [02:55:21]OFDSenderStorePacket 76694 [02:55:21]StoreOFDPacket docnum=76694 [02:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A1 01 00 00 4F 1B 99 01 8E 95 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 05 00 00 00 00 07 04 06 00 78 37 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 9B EB 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 96 2B 01 00 35 04 06 00 40 03 88 9C D3 21 85 0A 08 2C 03 F2 DC C4 [02:55:21]CheckFolder [02:55:21]dirname=/storage/ofd_packets [02:55:21]CheckFolder done [02:55:21]ProducePacketName [02:55:21]name=ofd_packets/00076694 [02:55:21]NVStorageSaveData ofd_packets/00076694 [02:55:21]File name is /storage/ofd_packets/00076694 [02:55:21]Write 447 bytes [02:55:21]NVStorageSaveData done [02:55:21]OFDSenderStorePacket done [02:55:21]KKMCreateOFDPacket done [02:55:21]NVStorageSaveData kkm_last_timestamp [02:55:21]File name is /storage/kkm_last_timestamp [02:55:21]Write 4 bytes [02:55:21]NVStorageSaveData done [02:55:21]ExternCall_PrintAddStr [02:55:21]wPrintStart [02:55:21]Write to MH i2c: 01 00 00 A3 19 BC [02:55:21]Write i2c OK [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: 01 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: 01 07 00 [02:55:21]MH_I2C_Read... [02:55:21]Read from MH i2c: 01 07 00 A3 19 00 00 00 00 00 FF 0F D1 [02:55:21]RasterBufferAndPrint [02:55:21]line Счет N : (3)220814 [02:55:21]line ИНН: 02508201610067 [02:55:21]line Контрольно-Кассовый Чек [02:55:21]line ПРОДАЖА [02:55:21]line Товар: 4600682557456 [02:55:21]line Напиток FLash up energy эн ж/б 0,5/0,45л [02:55:21]line 1.000 * 72.00 [02:55:21]line = 72.00 [02:55:21]line НДС 12% НСП 1% [02:55:21]line > о реализуемом товаре [02:55:21]line Товар: 4700002082931 [02:55:21]line Водка Хорошая 0,1л [02:55:21]line 1.000 * 70.00 [02:55:21]line = 70.00 [02:55:21]line НДС 12% НСП 1% [02:55:21]line > о реализуемом товаре [02:55:21]line ИТОГО: 142.00 [02:55:21]line НСП 1% : 1.26 [02:55:21]line НДС 12% : 15.08 [02:55:21]line Наличными: 142.00 [02:55:21]line Безнал.: 0.00 [02:55:21]line Место: АЗС № 144 "Партнер Нефть" [02:55:21]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [02:55:21]line СНО: Общий режим [02:55:21]line Чек 12 21.06.2024 02:55 [02:55:21]line Смена: 394 ФФД: 1.0 [02:55:21]line ЗНМ: 0300000170 [02:55:21]line РНМ: 0000000000095696 [02:55:21]line Версия ККМ: 001 [02:55:21]line ФМ: 0000000000875009 [02:55:21]line ФД: 76694 [02:55:21]line ФПД: 70383921058593 [02:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T025523&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76694&fm=70383921058593&tin=02508201610067®Number=0000000000095696&sum=14200 [02:55:21]line 0 [02:55:21]OFD Sender: Processing packet 76694 [packets to send 351, broken 350] [02:55:21]ProducePacketName [02:55:21]name=ofd_packets/00076694 [02:55:21]OFD Sender: To server: pG, [02:55:21]CommunicateWithHost lk.salyk.kg:30040 [02:55:21]ConnectInit lk.salyk.kg [02:55:21]written 0, free lines is 4095 [02:55:21]Connected sock=10 [02:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A1 01 00 00 4F 1B 99 01 8E 95 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 05 00 00 00 00 07 04 06 00 78 37 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 9B EB 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 96 2B 01 00 35 04 06 00 40 03 88 9C D3 21 85 0A 08 2C 03 F2 DC C4 [02:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 48 9C 47 00 32 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 96 2B 01 00 F4 03 04 00 3A 92 74 66 B6 04 01 00 00 8A EB 23 10 E7 BB E4 F2 [02:55:21]CommunicateWithHost err = 0 [02:55:21]CheckOFDResponse [02:55:21]1017 (14) - 77093643461234 [02:55:21]1041 (16) - 0000000000875009 [02:55:21]1040 (4) - 76694 [02:55:21]1012 (4) - 20.06.2024 20:34 [02:55:21]1206 (1) - 0 [02:55:21]OFD Sender: Remove packet 76694 [02:55:21]ProducePacketName [02:55:21]name=ofd_packets/00076694 [02:55:21]NVStorageDeleteData [02:55:22]Write to MH i2c: 01 00 00 D2 19 EB [02:55:22]Write i2c OK [02:55:22]MH_I2C_Read... [02:55:22]Read from MH i2c: 01 [02:55:22]MH_I2C_Read... [02:55:22]Read from MH i2c: 01 07 00 [02:55:22]MH_I2C_Read... [02:55:22]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 93 0C 91 [02:55:22]RasterBufferAndPrint [02:55:22]line [02:55:22]line [02:55:22]line [02:55:22]line [02:55:22]line [02:55:22]written 0, free lines is 3227 [02:55:22]MH_Cut [02:55:22]Write to MH i2c: D1 01 00 D9 19 01 C4 [02:55:22]Write i2c OK [02:55:22]MH_I2C_Read... [02:55:22]Read from MH i2c: D1 [02:55:22]MH_I2C_Read... [02:55:22]Read from MH i2c: D1 01 00 [02:55:22]MH_I2C_Read... [02:55:22]Read from MH i2c: D1 01 00 D9 19 00 C3 [02:55:22]Write to MH i2c: 01 00 00 DA 19 F3 [02:55:22]Write i2c OK [02:55:22]MH_I2C_Read... [02:55:22]OFD Sender: No OFD packet to send [02:55:22]*** Cut start [02:55:22]*** Partial cut [02:55:22]*** CUTSNS_PIN = 1 [02:55:22]*** CUTSNS_PIN = 0 [02:55:23]*** Brake cut motor [02:55:23]Read from MH i2c: 01 [02:55:23]MH_I2C_Read... [02:55:23]*** Stop cut motor [02:55:23]*** Cut end [02:55:23]Read from MH i2c: 01 07 00 [02:55:23]MH_I2C_Read... [02:55:23]Read from MH i2c: 01 07 00 DA 19 00 00 00 00 00 FF 0F 08 [02:55:23]process_action close_receipt done [02:55:23]requested_data is exist [02:55:23]produce_requested_data [02:55:23]requested_item fm.sn is exist - process it [02:55:23]wFMCommunicate request_size=4 [02:55:23]MH_SAM_APDU [02:55:23]CAPDU: 80 11 00 00 [02:55:23]Write to MH i2c: E2 08 00 DB 19 80 11 00 00 00 00 00 00 6E [02:55:23]Write i2c OK [02:55:23]MH_I2C_Read... [02:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:55:23]Read from MH i2c: E2 [02:55:23]MH_I2C_Read... [02:55:23]Read from MH i2c: E2 17 00 [02:55:23]MH_I2C_Read... [02:55:23]Read from MH i2c: E2 17 00 DB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BE [02:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:55:23]wFMCommunicate OK [02:55:23]requested_item fd.num is exist - process it [02:55:23]SAM_PROTO_GetFieldsCounters [02:55:23]wFMCommunicate request_size=4 [02:55:23]MH_SAM_APDU [02:55:23]CAPDU: 80 13 00 00 [02:55:23]Write to MH i2c: E2 08 00 DC 19 80 13 00 00 00 00 00 00 71 [02:55:23]Write i2c OK [02:55:23]MH_I2C_Read... [02:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:55:23]Read from MH i2c: E2 [02:55:23]MH_I2C_Read... [02:55:23]Read from MH i2c: E2 62 00 [02:55:23]MH_I2C_Read... [02:55:23]Read from MH i2c: E2 62 00 DC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 96 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [02:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 96 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:55:23]wFMCommunicate OK [02:55:23]SAM_PROTO_GetFieldsCounters done [02:55:23]requested_item shift.num is exist - process it [02:55:23]requested_item shift.opened is exist - process it [02:55:23]req_shift_opened [02:55:23]FM_GetShiftState [02:55:23]SAM_PROTO_GetShiftState [02:55:23]wFMCommunicate request_size=4 [02:55:23]MH_SAM_APDU [02:55:23]CAPDU: 80 13 01 00 [02:55:23]Write to MH i2c: E2 08 00 DD 19 80 13 01 00 00 00 00 00 73 [02:55:23]Write i2c OK [02:55:23]MH_I2C_Read... [02:55:23]Read from MH i2c: E2 [02:55:23]MH_I2C_Read... [02:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:55:23]Read from MH i2c: E2 0E 00 [02:55:23]MH_I2C_Read... [02:55:23]Read from MH i2c: E2 0E 00 DD 19 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 78 [02:55:23]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [02:55:23]wFMCommunicate OK [02:55:23]SAM_PROTO_GetShiftState done [02:55:23]FM_GetShiftState done [02:55:23]req_shift_opened done [02:55:23]requested_item shift.open_date is exist - process it [02:55:23]req_shift_open_date [02:55:23]req_shift_open_date done [02:55:23]produce_requested_data done [02:55:23]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76694,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [02:55:23]process_action_free close_receipt [02:55:23]json_value_free [02:55:23]json_value_free done [02:55:23]process_json_proto returns [02:55:23]Send response to host [02:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76694,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [02:55:23]free response buf [02:55:23]execute_script done [02:55:23]execute_script returns [02:55:23]free content buf [02:55:23]Sock 7.Close socket [02:55:23]Sock 7.Thread stoped [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]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 [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:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [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:54]accept exits with 9 [03:06:54]New connection [03:06:54]New thread 3066805604 created [03:06:54]Thread 3066948964 joined [03:06:54]Waiting for new connection... [03:06:54] Sock 9.Parse request [03:06:54]Sock 9.Check first char [03:06:54]Sock 9.First char is OK [03:06:54]request: POST /json_proto HTTP/1.0 [03:06:54]Method: POST [03:06:54]URL: /json_proto [03:06:54]Method is POST - this is cgi request [03:06:54]url: /json_proto [03:06:54]query_string will be loaded in cgi processing [03:06:54]execute_cgi json_proto POST (null) [03:06:54]execute_cgi path=json_proto method=POST [03:06:54]POST find Content-Length [03:06:54]Host: 172.17.39.195:8080 [03:06:54]Content-Length: 1236 [03:06:54]Content-Type: application/json [03:06:54] [03:06:54]POST finish read [03:06:54]Found Content-Length = 1236 [03:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220815", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 588.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:54]execute_script... [03:06: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 : (3)220815", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 588.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:54]POST & json_proto [03:06:54]process_json_proto [03:06:54]json parsed OK: [03:06:54]protocol is kg_v1.0 [03:06:54]action value=close_receipt [03:06:54]process_action close_receipt [03:06:54]cmd_close_receipt [03:06:54]MH_GetDate [03:06:54]Write to MH i2c: F0 00 00 DE 19 E6 [03:06:54]Write i2c OK [03:06:54]MH_I2C_Read... [03:06:54]Read from MH i2c: F0 [03:06:54]MH_I2C_Read... [03:06:54]Read from MH i2c: F0 09 00 [03:06:54]MH_I2C_Read... [03:06:54]Read from MH i2c: F0 09 00 DE 19 00 52 EE 74 66 99 81 91 64 18 [03:06:54]GetLastDocTimeStamp 1718938523 [03:06:54]current date 1718939218 [03:06:54]FM_GetShiftState [03:06:54]SAM_PROTO_GetShiftState [03:06:54]wFMCommunicate request_size=4 [03:06:54]MH_SAM_APDU [03:06:54]CAPDU: 80 13 01 00 [03:06:54]Write to MH i2c: E2 08 00 DF 19 80 13 01 00 00 00 00 00 75 [03:06:54]Write i2c OK [03:06:54]MH_I2C_Read... [03:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:54]Read from MH i2c: E2 [03:06:54]MH_I2C_Read... [03:06:54]Read from MH i2c: E2 0E 00 [03:06:54]MH_I2C_Read... [03:06:54]Read from MH i2c: E2 0E 00 DF 19 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 7A [03:06:54]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [03:06:54]wFMCommunicate OK [03:06:54]SAM_PROTO_GetShiftState done [03:06:54]FM_GetShiftState done [03:06:54]opened in 1718930005 [03:06:54]opened+sec_in_day 1719016405 [03:06:54]quantity*price = 39000 [03:06:54]sum+1 = 39001 [03:06:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 588.00 НСП 1% : 5.20 НДС 12% : 62.45 Наличными: 588.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 13 21.06.2024 03:06 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76695 ФПД: 89808486393760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T030659&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76695&fm=89808486393760&tin=02508201610067®Number=0000000000095696&sum=58800 0 [03:06:55]StoreToDocumentArchive [03:06:55]shift 394 fd 76695 [03:06:55]save to /storage/0394/doc_00076695 [03:06:55]save last doc name /storage/0394/doc_00076695 to /storage/kkm_last_doc_name [03:06:55]save OK [03:06:55]Clear old archive folders... [03:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=510 [03:06:55]tlvbuf is 00F2F230 [03:06:55]SAM_PROTO_ClearQueue [03:06:55]wFMCommunicate request_size=4 [03:06:55]MH_SAM_APDU [03:06:55]CAPDU: 80 09 00 00 [03:06:55]Write to MH i2c: E2 08 00 EC 19 80 09 00 00 00 00 00 00 77 [03:06:55]Write i2c OK [03:06:55]MH_I2C_Read... [03:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:06:55]Read from MH i2c: E2 [03:06:55]MH_I2C_Read... [03:06:55]Read from MH i2c: E2 03 00 [03:06:55]MH_I2C_Read... [03:06:55]Read from MH i2c: E2 03 00 EC 19 00 90 00 79 [03:06:55]RAPDU: 90 00 [03:06:55]wFMCommunicate OK [03:06:55]SAM_PROTO_ClearQueue done [03:06:55]KKMCreateOFDPacket [03:06:55]OFDProtocolAddRootSTLVToBuf [03:06:55]FM_MakeSignedData [03:06:55]FM_MakeSignedData [03:06:55]SAM_PROTO_SignData [03:06:55]wFMCommunicate request_size=4 [03:06:55]MH_SAM_APDU [03:06:55]CAPDU: 80 0D 01 02 [03:06:55]Write to MH i2c: E2 08 00 ED 19 80 0D 01 02 00 00 00 00 7F [03:06:55]Write i2c OK [03:06:55]MH_I2C_Read... [03:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:06:55]Read from MH i2c: E2 [03:06:55]MH_I2C_Read... [03:06:55]Read from MH i2c: E2 03 00 [03:06:55]MH_I2C_Read... [03:06:55]Read from MH i2c: E2 03 00 ED 19 00 90 00 7A [03:06:55]RAPDU: 90 00 [03:06:55]wFMCommunicate OK [03:06:55]wFMCommunicate request_size=255 [03:06:55]MH_SAM_APDU [03:06:55]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [03:06:56]Write to MH i2c: E2 02 01 EE 19 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 39 [03:06:56]Write i2c OK [03:06:56]MH_I2C_Read... [03:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:56]Read from MH i2c: E2 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 03 00 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 03 00 EE 19 00 90 00 7B [03:06:56]RAPDU: 90 00 [03:06:56]wFMCommunicate OK [03:06:56]wFMCommunicate request_size=255 [03:06:56]MH_SAM_APDU [03:06:56]CAPDU: 80 0D 02 02 FA 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 18 00 00 00 00 07 04 06 00 B0 E5 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 53 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 [03:06:56]Write to MH i2c: E2 02 01 EF 19 80 0D 02 02 FA 00 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 18 00 00 00 00 07 04 06 00 B0 E5 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 53 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 00 00 07 [03:06:56]Write i2c OK [03:06:56]MH_I2C_Read... [03:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:56]Read from MH i2c: E2 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 03 00 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [03:06:56]RAPDU: 90 00 [03:06:56]wFMCommunicate OK [03:06:56]wFMCommunicate request_size=19 [03:06:56]MH_SAM_APDU [03:06:56]CAPDU: 80 0D 02 02 0E 97 2B 01 00 35 04 06 00 51 AE 2A ED E7 A0 [03:06:56]Write to MH i2c: E2 16 00 F0 19 80 0D 02 02 0E 00 97 2B 01 00 35 04 06 00 51 AE 2A ED E7 A0 00 00 3E [03:06:56]Write i2c OK [03:06:56]MH_I2C_Read... [03:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:56]Read from MH i2c: E2 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 03 00 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 03 00 F0 19 00 90 00 7D [03:06:56]RAPDU: 90 00 [03:06:56]wFMCommunicate OK [03:06:56]wFMCommunicate request_size=4 [03:06:56]MH_SAM_APDU [03:06:56]CAPDU: 80 0D 03 02 [03:06:56]Write to MH i2c: E2 08 00 F1 19 80 0D 03 02 00 00 00 00 85 [03:06:56]Write i2c OK [03:06:56]MH_I2C_Read... [03:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:06:56]Read from MH i2c: E2 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 0B 00 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 0B 00 F1 19 00 1E 60 71 6B 1D 7C EA 54 90 00 B7 [03:06:56]RAPDU: 1E 60 71 6B 1D 7C EA 54 90 00 [03:06:56]wFMCommunicate OK [03:06:56]SAM_PROTO_SignData done [03:06:56]FM_MakeSignedData done [03:06:56]CreateOFDProtocolMessage [03:06:56]wFMCommunicate request_size=4 [03:06:56]MH_SAM_APDU [03:06:56]CAPDU: 80 11 00 00 [03:06:56]Write to MH i2c: E2 08 00 F2 19 80 11 00 00 00 00 00 00 85 [03:06:56]Write i2c OK [03:06:56]MH_I2C_Read... [03:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:56]Read from MH i2c: E2 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 17 00 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: E2 17 00 F2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D5 [03:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:06:56]wFMCommunicate OK [03:06:56]CreateOFDProtocolMessage done [03:06:56]OFDSenderStorePacket 76695 [03:06:56]StoreOFDPacket docnum=76695 [03:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 12 02 00 00 92 AE 0A 02 6B 7B 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 18 00 00 00 00 07 04 06 00 B0 E5 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 53 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 97 2B 01 00 35 04 06 00 51 AE 2A ED E7 A0 1E 60 71 6B 1D 7C EA 54 [03:06:56]CheckFolder [03:06:56]dirname=/storage/ofd_packets [03:06:56]CheckFolder done [03:06:56]ProducePacketName [03:06:56]name=ofd_packets/00076695 [03:06:56]NVStorageSaveData ofd_packets/00076695 [03:06:56]File name is /storage/ofd_packets/00076695 [03:06:56]Write 560 bytes [03:06:56]NVStorageSaveData done [03:06:56]OFDSenderStorePacket done [03:06:56]KKMCreateOFDPacket done [03:06:56]NVStorageSaveData kkm_last_timestamp [03:06:56]File name is /storage/kkm_last_timestamp [03:06:56]Write 4 bytes [03:06:56]NVStorageSaveData done [03:06:56]ExternCall_PrintAddStr [03:06:56]wPrintStart [03:06:56]Write to MH i2c: 01 00 00 F3 19 0C [03:06:56]Write i2c OK [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: 01 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: 01 07 00 [03:06:56]MH_I2C_Read... [03:06:56]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FF 0F 21 [03:06:56]RasterBufferAndPrint [03:06:56]line Счет N : (3)220815 [03:06:56]line ИНН: 02508201610067 [03:06:56]line Контрольно-Кассовый Чек [03:06:56]line ПРОДАЖА [03:06:56]line Товар: 4700028325357 [03:06:56]line Водка Антивирус 0,5л [03:06:56]line 1.000 * 390.00 [03:06:56]line = 390.00 [03:06:56]line НДС 12% НСП 1% [03:06:56]line > о реализуемом товаре [03:06:56]line Товар: 4870001571030 [03:06:56]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [03:06:56]line 1.000 * 85.00 [03:06:56]line = 85.00 [03:06:56]line НДС 12% НСП 1% [03:06:56]line > о реализуемом товаре [03:06:56]line Товар: 5449000006271 [03:06:56]line Напиток Фанта 1л [03:06:56]line 1.000 * 113.00 [03:06:56]line = 113.00 [03:06:56]line НДС 12% НСП 1% [03:06:56]line > о реализуемом товаре [03:06:56]line ИТОГО: 588.00 [03:06:56]line НСП 1% : 5.20 [03:06:56]line НДС 12% : 62.45 [03:06:56]line Наличными: 588.00 [03:06:56]line Безнал.: 0.00 [03:06:56]line Место: АЗС № 144 "Партнер Нефть" [03:06:56]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [03:06:56]line СНО: Общий режим [03:06:56]line Чек 13 21.06.2024 03:06 [03:06:56]line Смена: 394 ФФД: 1.0 [03:06:56]line ЗНМ: 0300000170 [03:06:56]line РНМ: 0000000000095696 [03:06:56]line Версия ККМ: 001 [03:06:56]line ФМ: 0000000000875009 [03:06:56]line ФД: 76695 [03:06:56]line ФПД: 89808486393760 [03:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T030659&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76695&fm=89808486393760&tin=02508201610067®Number=0000000000095696&sum=58800 [03:06:56]line 0 [03:06:57]written 0, free lines is 4095 [03:06:57]OFD Sender: Processing packet 76695 [packets to send 351, broken 350] [03:06:57]ProducePacketName [03:06:57]name=ofd_packets/00076695 [03:06:57]OFD Sender: To server: pG, [03:06:57]CommunicateWithHost lk.salyk.kg:30040 [03:06:57]ConnectInit lk.salyk.kg [03:06:57]Connected sock=11 [03:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 12 02 00 00 92 AE 0A 02 6B 7B 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 18 00 00 00 00 07 04 06 00 B0 E5 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 53 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 97 2B 01 00 35 04 06 00 51 AE 2A ED E7 A0 1E 60 71 6B 1D 7C EA 54 [03:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E9 25 47 00 9A E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 97 2B 01 00 F4 03 04 00 F2 94 74 66 B6 04 01 00 00 B9 7B 49 1E 8B 9B 18 50 [03:06:57]CommunicateWithHost err = 0 [03:06:57]CheckOFDResponse [03:06:57]1017 (14) - 77093643461234 [03:06:57]1041 (16) - 0000000000875009 [03:06:57]1040 (4) - 76695 [03:06:57]1012 (4) - 20.06.2024 20:45 [03:06:57]1206 (1) - 0 [03:06:57]OFD Sender: Remove packet 76695 [03:06:57]ProducePacketName [03:06:57]name=ofd_packets/00076695 [03:06:57]NVStorageDeleteData [03:06:57]Write to MH i2c: 01 00 00 28 1A 42 [03:06:57]Write i2c OK [03:06:57]MH_I2C_Read... [03:06:57]Read from MH i2c: 01 [03:06:57]MH_I2C_Read... [03:06:57]Read from MH i2c: 01 07 00 [03:06:57]MH_I2C_Read... [03:06:57]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 36 0C 8B [03:06:57]RasterBufferAndPrint [03:06:57]line [03:06:57]line [03:06:57]line [03:06:57]line [03:06:57]line [03:06:57]written 0, free lines is 3133 [03:06:57]MH_Cut [03:06:57]Write to MH i2c: D1 01 00 2F 1A 01 1B [03:06:57]Write i2c OK [03:06:57]MH_I2C_Read... [03:06:57]Read from MH i2c: D1 [03:06:57]MH_I2C_Read... [03:06:57]Read from MH i2c: D1 01 00 [03:06:57]MH_I2C_Read... [03:06:57]Read from MH i2c: D1 01 00 2F 1A 00 1A [03:06:57]Write to MH i2c: 01 00 00 30 1A 4A [03:06:57]Write i2c OK [03:06:57]MH_I2C_Read... [03:06:58]OFD Sender: No OFD packet to send [03:06:58]*** Cut start [03:06:58]*** Partial cut [03:06:58]*** CUTSNS_PIN = 1 [03:06:58]*** CUTSNS_PIN = 0 [03:06:58]*** Brake cut motor [03:06:59]Read from MH i2c: 01 [03:06:59]MH_I2C_Read... [03:06:59]*** Stop cut motor [03:06:59]*** Cut end [03:06:59]Read from MH i2c: 01 07 00 [03:06:59]MH_I2C_Read... [03:06:59]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 FF 0F 5F [03:06:59]process_action close_receipt done [03:06:59]requested_data is exist [03:06:59]produce_requested_data [03:06:59]requested_item fm.sn is exist - process it [03:06:59]wFMCommunicate request_size=4 [03:06:59]MH_SAM_APDU [03:06:59]CAPDU: 80 11 00 00 [03:06:59]Write to MH i2c: E2 08 00 31 1A 80 11 00 00 00 00 00 00 C5 [03:06:59]Write i2c OK [03:06:59]MH_I2C_Read... [03:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:59]Read from MH i2c: E2 [03:06:59]MH_I2C_Read... [03:06:59]Read from MH i2c: E2 17 00 [03:06:59]MH_I2C_Read... [03:06:59]Read from MH i2c: E2 17 00 31 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 15 [03:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:06:59]wFMCommunicate OK [03:06:59]requested_item fd.num is exist - process it [03:06:59]SAM_PROTO_GetFieldsCounters [03:06:59]wFMCommunicate request_size=4 [03:06:59]MH_SAM_APDU [03:06:59]CAPDU: 80 13 00 00 [03:06:59]Write to MH i2c: E2 08 00 32 1A 80 13 00 00 00 00 00 00 C8 [03:06:59]Write i2c OK [03:06:59]MH_I2C_Read... [03:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:06:59]Read from MH i2c: E2 [03:06:59]MH_I2C_Read... [03:06:59]Read from MH i2c: E2 62 00 [03:06:59]MH_I2C_Read... [03:06:59]Read from MH i2c: E2 62 00 32 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 97 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [03:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 97 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:06:59]wFMCommunicate OK [03:06:59]SAM_PROTO_GetFieldsCounters done [03:06:59]requested_item shift.num is exist - process it [03:06:59]requested_item shift.opened is exist - process it [03:06:59]req_shift_opened [03:06:59]FM_GetShiftState [03:06:59]SAM_PROTO_GetShiftState [03:06:59]wFMCommunicate request_size=4 [03:06:59]MH_SAM_APDU [03:06:59]CAPDU: 80 13 01 00 [03:06:59]Write to MH i2c: E2 08 00 33 1A 80 13 01 00 00 00 00 00 CA [03:06:59]Write i2c OK [03:06:59]MH_I2C_Read... [03:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:59]Read from MH i2c: E2 [03:06:59]MH_I2C_Read... [03:06:59]Read from MH i2c: E2 0E 00 [03:06:59]MH_I2C_Read... [03:06:59]Read from MH i2c: E2 0E 00 33 1A 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 CF [03:06:59]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [03:06:59]wFMCommunicate OK [03:06:59]SAM_PROTO_GetShiftState done [03:06:59]FM_GetShiftState done [03:06:59]req_shift_opened done [03:06:59]requested_item shift.open_date is exist - process it [03:06:59]req_shift_open_date [03:06:59]req_shift_open_date done [03:06:59]produce_requested_data done [03:06:59]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76695,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [03:06:59]process_action_free close_receipt [03:06:59]json_value_free [03:06:59]json_value_free done [03:06:59]process_json_proto returns [03:06:59]Send response to host [03:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76695,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [03:06:59]free response buf [03:06:59]execute_script done [03:06:59]execute_script returns [03:06:59]free content buf [03:06:59]Sock 9.Close socket [03:06:59]Sock 9.Thread stoped [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:51]accept exits with 7 [03:08:51]New connection [03:08:51]New thread 3066948964 created [03:08:51]Thread 3066805604 joined [03:08:51]Waiting for new connection... [03:08:51] Sock 7.Parse request [03:08:51]Sock 7.Check first char [03:08:51]Sock 7.First char is OK [03:08:51]request: POST /json_proto HTTP/1.0 [03:08:51]Method: POST [03:08:51]URL: /json_proto [03:08:51]Method is POST - this is cgi request [03:08:51]url: /json_proto [03:08:51]query_string will be loaded in cgi processing [03:08:51]execute_cgi json_proto POST (null) [03:08:51]execute_cgi path=json_proto method=POST [03:08:51]POST find Content-Length [03:08:51]Host: 172.17.39.195:8080 [03:08:51]Content-Length: 1184 [03:08:51]Content-Type: application/json [03:08:51] [03:08:51]POST finish read [03:08:51]Found Content-Length = 1184 [03:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220816", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 3.000, "sum" : 12.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 123.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:51]execute_script... [03:08:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220816", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 3.000, "sum" : 12.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420152", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 20\u0448\u0442", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 123.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:51]POST & json_proto [03:08:51]process_json_proto [03:08:51]json parsed OK: [03:08:51]protocol is kg_v1.0 [03:08:51]action value=close_receipt [03:08:51]process_action close_receipt [03:08:51]cmd_close_receipt [03:08:51]MH_GetDate [03:08:51]Write to MH i2c: F0 00 00 34 1A 3D [03:08:51]Write i2c OK [03:08:51]MH_I2C_Read... [03:08:51]Read from MH i2c: F0 [03:08:51]MH_I2C_Read... [03:08:51]Read from MH i2c: F0 09 00 [03:08:51]MH_I2C_Read... [03:08:51]Read from MH i2c: F0 09 00 34 1A 00 C8 EE 74 66 99 81 91 64 E5 [03:08:51]GetLastDocTimeStamp 1718939219 [03:08:51]current date 1718939336 [03:08:51]FM_GetShiftState [03:08:51]SAM_PROTO_GetShiftState [03:08:51]wFMCommunicate request_size=4 [03:08:51]MH_SAM_APDU [03:08:51]CAPDU: 80 13 01 00 [03:08:51]Write to MH i2c: E2 08 00 35 1A 80 13 01 00 00 00 00 00 CC [03:08:51]Write i2c OK [03:08:51]MH_I2C_Read... [03:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:08:51]Read from MH i2c: E2 [03:08:51]MH_I2C_Read... [03:08:51]Read from MH i2c: E2 0E 00 [03:08:51]MH_I2C_Read... [03:08:51]Read from MH i2c: E2 0E 00 35 1A 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 D1 [03:08:51]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [03:08:51]wFMCommunicate OK [03:08:51]SAM_PROTO_GetShiftState done [03:08:51]FM_GetShiftState done [03:08:51]opened in 1718930005 [03:08:51]opened+sec_in_day 1719016405 [03:08:51]quantity*price = 1200 [03:08:51]sum+1 = 1201 [03:08:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700041420152 Салфетки влажн BEST GOLD 20шт 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 123.00 НСП 1% : 1.09 НДС 12% : 13.06 Наличными: 123.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 14 21.06.2024 03:08 Смена: 394 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76696 ФПД: 168772486921963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T030856&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76696&fm=168772486921963&tin=02508201610067®Number=0000000000095696&sum=12300 0 [03:08:52]StoreToDocumentArchive [03:08:52]shift 394 fd 76696 [03:08:52]save to /storage/0394/doc_00076696 [03:08:52]save last doc name /storage/0394/doc_00076696 to /storage/kkm_last_doc_name [03:08:52]save OK [03:08:52]Clear old archive folders... [03:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=495 [03:08:52]tlvbuf is 00F2D1B0 [03:08:52]SAM_PROTO_ClearQueue [03:08:52]wFMCommunicate request_size=4 [03:08:52]MH_SAM_APDU [03:08:52]CAPDU: 80 09 00 00 [03:08:52]Write to MH i2c: E2 08 00 42 1A 80 09 00 00 00 00 00 00 CE [03:08:52]Write i2c OK [03:08:52]MH_I2C_Read... [03:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:08:52]Read from MH i2c: E2 [03:08:52]MH_I2C_Read... [03:08:52]Read from MH i2c: E2 03 00 [03:08:52]MH_I2C_Read... [03:08:52]Read from MH i2c: E2 03 00 42 1A 00 90 00 D0 [03:08:52]RAPDU: 90 00 [03:08:52]wFMCommunicate OK [03:08:52]SAM_PROTO_ClearQueue done [03:08:52]KKMCreateOFDPacket [03:08:52]OFDProtocolAddRootSTLVToBuf [03:08:52]FM_MakeSignedData [03:08:52]FM_MakeSignedData [03:08:52]SAM_PROTO_SignData [03:08:52]wFMCommunicate request_size=4 [03:08:52]MH_SAM_APDU [03:08:52]CAPDU: 80 0D 01 02 [03:08:52]Write to MH i2c: E2 08 00 43 1A 80 0D 01 02 00 00 00 00 D6 [03:08:52]Write i2c OK [03:08:52]MH_I2C_Read... [03:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:08:52]Read from MH i2c: E2 [03:08:52]MH_I2C_Read... [03:08:52]Read from MH i2c: E2 03 00 [03:08:52]MH_I2C_Read... [03:08:52]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [03:08:52]RAPDU: 90 00 [03:08:52]wFMCommunicate OK [03:08:52]wFMCommunicate request_size=255 [03:08:52]MH_SAM_APDU [03:08:52]CAPDU: 80 0D 02 02 FA 03 00 EF 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 B0 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 [03:08:53]Write to MH i2c: E2 02 01 44 1A 80 0D 02 02 FA 00 03 00 EF 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 B0 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 00 00 74 [03:08:53]Write i2c OK [03:08:53]MH_I2C_Read... [03:08:53]OFD Sender: No OFD packet to send [03:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:53]Read from MH i2c: E2 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 03 00 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [03:08:53]RAPDU: 90 00 [03:08:53]wFMCommunicate OK [03:08:53]wFMCommunicate request_size=254 [03:08:53]MH_SAM_APDU [03:08:53]CAPDU: 80 0D 02 02 F9 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 05 00 00 00 00 07 04 06 00 0C 30 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 C8 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 98 2B 01 00 35 04 06 00 99 7F 68 21 7E EB [03:08:53]Write to MH i2c: E2 01 01 45 1A 80 0D 02 02 F9 00 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 05 00 00 00 00 07 04 06 00 0C 30 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 C8 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 98 2B 01 00 35 04 06 00 99 7F 68 21 7E EB 00 00 08 [03:08:53]Write i2c OK [03:08:53]MH_I2C_Read... [03:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:53]Read from MH i2c: E2 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 03 00 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [03:08:53]RAPDU: 90 00 [03:08:53]wFMCommunicate OK [03:08:53]wFMCommunicate request_size=4 [03:08:53]MH_SAM_APDU [03:08:53]CAPDU: 80 0D 03 02 [03:08:53]Write to MH i2c: E2 08 00 46 1A 80 0D 03 02 00 00 00 00 DB [03:08:53]Write i2c OK [03:08:53]MH_I2C_Read... [03:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:08:53]Read from MH i2c: E2 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 0B 00 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 0B 00 46 1A 00 BA A7 9A A6 84 24 D1 F9 90 00 EF [03:08:53]RAPDU: BA A7 9A A6 84 24 D1 F9 90 00 [03:08:53]wFMCommunicate OK [03:08:53]SAM_PROTO_SignData done [03:08:53]FM_MakeSignedData done [03:08:53]CreateOFDProtocolMessage [03:08:53]wFMCommunicate request_size=4 [03:08:53]MH_SAM_APDU [03:08:53]CAPDU: 80 11 00 00 [03:08:53]Write to MH i2c: E2 08 00 47 1A 80 11 00 00 00 00 00 00 DB [03:08:53]Write i2c OK [03:08:53]MH_I2C_Read... [03:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:08:53]Read from MH i2c: E2 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 17 00 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: E2 17 00 47 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2B [03:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:08:53]wFMCommunicate OK [03:08:53]CreateOFDProtocolMessage done [03:08:53]OFDSenderStorePacket 76696 [03:08:53]StoreOFDPacket docnum=76696 [03:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 03 02 00 00 EC AB FB 01 42 89 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 B0 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 05 00 00 00 00 07 04 06 00 0C 30 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 C8 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 98 2B 01 00 35 04 06 00 99 7F 68 21 7E EB BA A7 9A A6 84 24 D1 F9 [03:08:53]CheckFolder [03:08:53]dirname=/storage/ofd_packets [03:08:53]CheckFolder done [03:08:53]ProducePacketName [03:08:53]name=ofd_packets/00076696 [03:08:53]NVStorageSaveData ofd_packets/00076696 [03:08:53]File name is /storage/ofd_packets/00076696 [03:08:53]Write 545 bytes [03:08:53]NVStorageSaveData done [03:08:53]OFDSenderStorePacket done [03:08:53]KKMCreateOFDPacket done [03:08:53]NVStorageSaveData kkm_last_timestamp [03:08:53]File name is /storage/kkm_last_timestamp [03:08:53]Write 4 bytes [03:08:53]NVStorageSaveData done [03:08:53]ExternCall_PrintAddStr [03:08:53]wPrintStart [03:08:53]Write to MH i2c: 01 00 00 48 1A 62 [03:08:53]Write i2c OK [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: 01 [03:08:53]MH_I2C_Read... [03:08:53]OFD Sender: Processing packet 76696 [packets to send 351, broken 350] [03:08:53]ProducePacketName [03:08:53]name=ofd_packets/00076696 [03:08:53]OFD Sender: To server: pG, [03:08:53]CommunicateWithHost lk.salyk.kg:30040 [03:08:53]ConnectInit lk.salyk.kg [03:08:53]Read from MH i2c: 01 07 00 [03:08:53]MH_I2C_Read... [03:08:53]Read from MH i2c: 01 07 00 48 1A 00 00 00 00 00 FF 0F 77 [03:08:53]RasterBufferAndPrint [03:08:53]line Счет N : (3)220816 [03:08:53]line ИНН: 02508201610067 [03:08:53]line Контрольно-Кассовый Чек [03:08:53]line ПРОДАЖА [03:08:53]line Товар: 2000031750019 [03:08:53]line Пакет Партнер Нефть [03:08:53]line 3.000 * 4.00 [03:08:53]line = 12.00 [03:08:53]line НДС 12% НСП 1% [03:08:53]line > о реализуемом товаре [03:08:53]line Товар: 4700000160204 [03:08:53]line Вода Легенда 1,5л [03:08:53]line 1.000 * 60.00 [03:08:53]line = 60.00 [03:08:53]line НДС 12% НСП 1% [03:08:53]line > о реализуемом товаре [03:08:53]line Товар: 4700041420152 [03:08:53]line Салфетки влажн BEST GOLD 20шт [03:08:53]line 1.000 * 51.00 [03:08:53]line = 51.00 [03:08:53]line НДС 12% НСП 1% [03:08:53]line > о реализуемом товаре [03:08:53]line ИТОГО: 123.00 [03:08:53]line НСП 1% : 1.09 [03:08:53]line НДС 12% : 13.06 [03:08:53]line Наличными: 123.00 [03:08:53]line Безнал.: 0.00 [03:08:53]line Место: АЗС № 144 "Партнер Нефть" [03:08:53]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [03:08:53]line СНО: Общий режим [03:08:53]line Чек 14 21.06.2024 03:08 [03:08:53]line Смена: 394 ФФД: 1.0 [03:08:53]line ЗНМ: 0300000170 [03:08:53]line РНМ: 0000000000095696 [03:08:53]line Версия ККМ: 001 [03:08:53]line ФМ: 0000000000875009 [03:08:53]line ФД: 76696 [03:08:53]line ФПД: 168772486921963 [03:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T030856&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76696&fm=168772486921963&tin=02508201610067®Number=0000000000095696&sum=12300 [03:08:53]line 0 [03:08:53]written 0, free lines is 4095 [03:08:54]Connected sock=10 [03:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 03 02 00 00 EC AB FB 01 42 89 5A 03 01 00 03 00 EF 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 B0 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 35 32 06 04 2C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 32 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 05 00 00 00 00 07 04 06 00 0C 30 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 C8 EE 74 66 0E 04 04 00 8A 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 98 2B 01 00 35 04 06 00 99 7F 68 21 7E EB BA A7 9A A6 84 24 D1 F9 [03:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 4D D1 47 00 40 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 98 2B 01 00 F4 03 04 00 67 95 74 66 B6 04 01 00 00 3E 2B 1A 02 56 D4 BB 91 [03:08:54]CommunicateWithHost err = 0 [03:08:54]CheckOFDResponse [03:08:54]1017 (14) - 77093643461234 [03:08:54]1041 (16) - 0000000000875009 [03:08:54]1040 (4) - 76696 [03:08:54]1012 (4) - 20.06.2024 20:47 [03:08:54]1206 (1) - 0 [03:08:54]OFD Sender: Remove packet 76696 [03:08:54]ProducePacketName [03:08:54]name=ofd_packets/00076696 [03:08:54]NVStorageDeleteData [03:08:54]Write to MH i2c: 01 00 00 7D 1A 97 [03:08:54]Write i2c OK [03:08:54]MH_I2C_Read... [03:08:54]Read from MH i2c: 01 [03:08:54]MH_I2C_Read... [03:08:54]Read from MH i2c: 01 07 00 [03:08:54]MH_I2C_Read... [03:08:54]Read from MH i2c: 01 07 00 7D 1A 00 00 00 00 00 39 0C E3 [03:08:54]RasterBufferAndPrint [03:08:54]line [03:08:54]line [03:08:54]line [03:08:54]line [03:08:54]line [03:08:54]written 0, free lines is 3135 [03:08:54]MH_Cut [03:08:54]Write to MH i2c: D1 01 00 84 1A 01 70 [03:08:54]Write i2c OK [03:08:54]MH_I2C_Read... [03:08:54]Read from MH i2c: D1 [03:08:54]MH_I2C_Read... [03:08:54]Read from MH i2c: D1 01 00 [03:08:54]MH_I2C_Read... [03:08:54]Read from MH i2c: D1 01 00 84 1A 00 6F [03:08:54]Write to MH i2c: 01 00 00 85 1A 9F [03:08:54]Write i2c OK [03:08:54]MH_I2C_Read... [03:08:54]OFD Sender: No OFD packet to send [03:08:55]*** Cut start [03:08:55]*** Partial cut [03:08:55]*** CUTSNS_PIN = 1 [03:08:55]*** CUTSNS_PIN = 0 [03:08:55]*** Brake cut motor [03:08:56]Read from MH i2c: 01 [03:08:56]MH_I2C_Read... [03:08:56]*** Stop cut motor [03:08:56]*** Cut end [03:08:56]Read from MH i2c: 01 07 00 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 FF 0F B4 [03:08:56]process_action close_receipt done [03:08:56]requested_data is exist [03:08:56]produce_requested_data [03:08:56]requested_item fm.sn is exist - process it [03:08:56]wFMCommunicate request_size=4 [03:08:56]MH_SAM_APDU [03:08:56]CAPDU: 80 11 00 00 [03:08:56]Write to MH i2c: E2 08 00 86 1A 80 11 00 00 00 00 00 00 1A [03:08:56]Write i2c OK [03:08:56]MH_I2C_Read... [03:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:08:56]Read from MH i2c: E2 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 17 00 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 17 00 86 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6A [03:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:08:56]wFMCommunicate OK [03:08:56]requested_item fd.num is exist - process it [03:08:56]SAM_PROTO_GetFieldsCounters [03:08:56]wFMCommunicate request_size=4 [03:08:56]MH_SAM_APDU [03:08:56]CAPDU: 80 13 00 00 [03:08:56]Write to MH i2c: E2 08 00 87 1A 80 13 00 00 00 00 00 00 1D [03:08:56]Write i2c OK [03:08:56]MH_I2C_Read... [03:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:08:56]Read from MH i2c: E2 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 62 00 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 62 00 87 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 98 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [03:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 98 2B 01 00 0E 04 04 00 8A 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:08:56]wFMCommunicate OK [03:08:56]SAM_PROTO_GetFieldsCounters done [03:08:56]requested_item shift.num is exist - process it [03:08:56]requested_item shift.opened is exist - process it [03:08:56]req_shift_opened [03:08:56]FM_GetShiftState [03:08:56]SAM_PROTO_GetShiftState [03:08:56]wFMCommunicate request_size=4 [03:08:56]MH_SAM_APDU [03:08:56]CAPDU: 80 13 01 00 [03:08:56]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [03:08:56]Write i2c OK [03:08:56]MH_I2C_Read... [03:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:08:56]Read from MH i2c: E2 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 0E 00 [03:08:56]MH_I2C_Read... [03:08:56]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 55 CA 74 66 00 00 00 00 90 00 24 [03:08:56]RAPDU: 09 00 01 55 CA 74 66 00 00 00 00 90 00 [03:08:56]wFMCommunicate OK [03:08:56]SAM_PROTO_GetShiftState done [03:08:56]FM_GetShiftState done [03:08:56]req_shift_opened done [03:08:56]requested_item shift.open_date is exist - process it [03:08:56]req_shift_open_date [03:08:56]req_shift_open_date done [03:08:56]produce_requested_data done [03:08:56]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76696,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005} [03:08:56]process_action_free close_receipt [03:08:56]json_value_free [03:08:56]json_value_free done [03:08:56]process_json_proto returns [03:08:56]Send response to host [03:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76696,"shift.num":394,"shift.opened":1,"shift.open_date":1718930005}}} [03:08:56]free response buf [03:08:56]execute_script done [03:08:56]execute_script returns [03:08:56]free content buf [03:08:56]Sock 7.Close socket [03:08:56]Sock 7.Thread stoped [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send